From 866ab4db4fbdb6a2768152e82137edc6e4a9c9bc Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Mon, 10 Feb 2020 17:05:26 +0100 Subject: [PATCH] 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 --- .../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(-) rename sys-devel/distcc/{distcc-3.3.3.ebuild => distcc-3.3.3-r1.ebuild} (100%) 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 bc08d40777d3..736527a4a899 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 7673ff2cf429..963f7b74c12e 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}" -- 2.26.2