PKGBUILDs/alarm/devtools-alarm/0003-makechrootpkg-distcc.patch
2018-05-31 18:51:19 +00:00

27 lines
948 B
Diff

From 71c1a2307f07d6ddb10c876c532e92827b7eae2c Mon Sep 17 00:00:00 2001
From: Kevin Mihelich <kevin@archlinuxarm.org>
Date: Sun, 28 Dec 2014 22:32:15 -0700
Subject: [PATCH 3/7] makechrootpkg: distcc
---
makechrootpkg.in | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/makechrootpkg.in b/makechrootpkg.in
index 8e8e4f5..a920c19 100644
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
@@ -226,7 +226,9 @@ _chrootbuild() {
# use "$" in arguments to commands with "sudo -i". ${foo} or
# ${1} is OK, but $foo or $1 isn't.
# https://bugzilla.sudo.ws/show_bug.cgi?id=765
- sudo --preserve-env=SOURCE_DATE_EPOCH -iu builduser bash -c 'cd /startdir; makepkg "$@"' -bash "$@"
+ mkdir /build/.distcc
+ chown builduser /build/.distcc
+ sudo --preserve-env=SOURCE_DATE_EPOCH -iu builduser DISTCC_IO_TIMEOUT=1200 DISTCC_DIR='/build/.distcc' bash -c 'cd /startdir; makepkg "$@"' -bash "$@"
ret=$?
case $ret in
0|14)
--
2.16.2