From f81c6b778a9057e54d633c66bdd6de24c028faea Mon Sep 17 00:00:00 2001 From: Kevin Mihelich Date: Sun, 28 Dec 2014 22:32:15 -0700 Subject: [PATCH 3/6] makechrootpkg: distcc --- makechrootpkg.in | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makechrootpkg.in b/makechrootpkg.in index 64bdbcb..ae2b3a3 100644 --- a/makechrootpkg.in +++ b/makechrootpkg.in @@ -290,7 +290,10 @@ _chrootbuild() { exit 1 fi - sudo -u builduser makepkg "$@" + mkdir /build/.distcc + chown builduser /build/.distcc + + sudo -u builduser DISTCC_IO_TIMEOUT=0 DISTCC_DIR='/build/.distcc' makepkg "$@" } move_products() { -- 2.6.2