commit: 866ab4db4fbdb6a2768152e82137edc6e4a9c9bc
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 10 16:05:26 2020 +0000
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
CommitDate: Mon Feb 10 16:06:56 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=866ab4db
sys-devel/distcc: Revbump adding TMPDIR handling to init script
With kind permission from mgorny
Committed straight to stable as we don't change upstream default
without action from the user
Package-Manager: Portage-2.3.88, Repoman-2.3.20
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org>
sys-devel/distcc/{distcc-3.3.3.ebuild => distcc-3.3.3-r1.ebuild} | 0
sys-devel/distcc/files/distccd.confd | 5 +++++
sys-devel/distcc/files/distccd.initd | 4 +++-
3 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/sys-devel/distcc/distcc-3.3.3.ebuild
b/sys-devel/distcc/distcc-3.3.3-r1.ebuild
similarity index 100%
rename from sys-devel/distcc/distcc-3.3.3.ebuild
rename to sys-devel/distcc/distcc-3.3.3-r1.ebuild
diff --git a/sys-devel/distcc/files/distccd.confd
b/sys-devel/distcc/files/distccd.confd
index bc08d40777d..736527a4a89 100644
--- a/sys-devel/distcc/files/distccd.confd
+++ b/sys-devel/distcc/files/distccd.confd
@@ -35,3 +35,8 @@ DISTCCD_OPTS="${DISTCCD_OPTS} --allow 192.168.0.0/24"
# set this for niceness
# Default is 15
DISTCCD_OPTS="${DISTCCD_OPTS} -N 15"
+
+# By default distccd stores temporary files in /tmp
+# Make sure to give distcc user write permission to
+# the given TMPDIR
+#TMPDIR="/tmp"
diff --git a/sys-devel/distcc/files/distccd.initd
b/sys-devel/distcc/files/distccd.initd
index 7673ff2cf42..963f7b74c12 100644
--- a/sys-devel/distcc/files/distccd.initd
+++ b/sys-devel/distcc/files/distccd.initd
@@ -1,5 +1,5 @@
#!/sbin/openrc-run
-# Copyright 1999-2018 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
depend() {
@@ -11,3 +11,5 @@ command="${DISTCCD_EXEC:-usr/bin/distccd}"
command_args="--user distcc --daemon --no-detach ${DISTCCD_OPTS}"
command_background="true"
pidfile="/run/${RC_SVCNAME}.pid"
+
+export TMPDIR="${TMPDIR:-/tmp}"