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

28 lines
873 B
Diff
Raw Normal View History

2017-12-13 01:42:01 +00:00
From 6cdbb9492c27ba80a7120266817775880f273046 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
2017-12-13 01:42:01 +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
2017-12-13 01:42:01 +00:00
index bf81573..6f201b2 100644
2014-12-30 02:41:19 +00:00
--- a/makechrootpkg.in
+++ b/makechrootpkg.in
2017-12-13 01:42:01 +00:00
@@ -232,7 +232,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 -iu builduser bash -c 'cd /startdir; makepkg "$@"' -bash "$@"
+ mkdir /build/.distcc
2014-12-30 02:41:19 +00:00
+ chown builduser /build/.distcc
2017-12-13 01:42:01 +00:00
+ sudo -iu builduser DISTCC_IO_TIMEOUT=1200 DISTCC_DIR='/build/.distcc' bash -c 'cd /startdir; makepkg "$@"' -bash "$@"
2014-12-30 02:41:19 +00:00
}
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
--
2017-12-13 01:42:01 +00:00
2.14.1
2014-12-30 02:41:19 +00:00