2022-08-12 02:04:10 +00:00
|
|
|
From 20af170ed679522bb78ffec04f9f4234209dab00 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
|
2021-10-01 23:34:58 +00:00
|
|
|
Subject: [PATCH 3/8] makechrootpkg: distcc
|
2014-12-30 02:41:19 +00:00
|
|
|
|
|
|
|
---
|
2017-12-13 01:42:01 +00:00
|
|
|
makechrootpkg.in | 4 +++-
|
|
|
|
1 file changed, 3 insertions(+), 1 deletion(-)
|
2014-12-30 02:41:19 +00:00
|
|
|
|
|
|
|
diff --git a/makechrootpkg.in b/makechrootpkg.in
|
2022-08-12 02:04:10 +00:00
|
|
|
index aef2702..0929df1 100644
|
2014-12-30 02:41:19 +00:00
|
|
|
--- a/makechrootpkg.in
|
|
|
|
+++ b/makechrootpkg.in
|
2022-08-12 02:04:10 +00:00
|
|
|
@@ -208,10 +208,12 @@ _chrootbuild() {
|
2017-12-13 01:42:01 +00:00
|
|
|
# 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
|
2013-06-27 17:15:42 +00:00
|
|
|
+ mkdir /build/.distcc
|
2014-12-30 02:41:19 +00:00
|
|
|
+ chown builduser /build/.distcc
|
2022-08-12 02:04:10 +00:00
|
|
|
sudo --preserve-env=SOURCE_DATE_EPOCH \
|
|
|
|
--preserve-env=BUILDTOOL \
|
|
|
|
--preserve-env=BUILDTOOLVER \
|
|
|
|
- -iu builduser bash -c 'cd /startdir; makepkg "$@"' -bash "$@"
|
|
|
|
+ -iu builduser DISTCC_IO_TIMEOUT=1200 DISTCC_DIR='/build/.distcc' bash -c 'cd /startdir; makepkg "$@"' -bash "$@"
|
2018-05-31 18:51:19 +00:00
|
|
|
ret=$?
|
|
|
|
case $ret in
|
|
|
|
0|14)
|
2014-12-30 02:41:19 +00:00
|
|
|
--
|
2022-08-12 02:04:10 +00:00
|
|
|
2.36.1
|
2014-12-30 02:41:19 +00:00
|
|
|
|