PKGBUILDs/alarm/devtools-alarm/0003-makechrootpkg-distcc.patch

29 lines
704 B
Diff
Raw Normal View History

2016-06-06 01:37:44 +00:00
From a94a490e14cadde174ca0a31fe7ae01323bb6116 Mon Sep 17 00:00:00 2001
2014-12-30 02:41:19 +00:00
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Sun, 28 Dec 2014 22:32:15 -0700
2016-07-04 03:33:59 +00:00
Subject: [PATCH 3/7] makechrootpkg: distcc
2014-12-30 02:41:19 +00:00
---
makechrootpkg.in | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/makechrootpkg.in b/makechrootpkg.in
2016-06-06 01:37:44 +00:00
index 2c4a926..4b86084 100644
2014-12-30 02:41:19 +00:00
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
2016-06-06 01:37:44 +00:00
@@ -202,7 +202,10 @@ _chrootbuild() {
. /etc/profile
export HOME=/build
cd /startdir
2014-12-30 02:41:19 +00:00
- sudo -u builduser makepkg "$@"
+ mkdir /build/.distcc
2014-12-30 02:41:19 +00:00
+ chown builduser /build/.distcc
+
+ sudo -u builduser DISTCC_IO_TIMEOUT=0 DISTCC_DIR='/build/.distcc' makepkg "$@"
}
2013-05-31 18:39:05 +00:00
2016-06-06 01:37:44 +00:00
_chrootnamcap() {
2014-12-30 02:41:19 +00:00
--
2016-07-04 03:33:59 +00:00
2.9.0
2014-12-30 02:41:19 +00:00