From 9f7e744f66e42824cd7d66063b8ebcab915733e7 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 24 Jul 2015 13:13:05 +0200 Subject: reproducible freebsd: run 'make buildworld' with sudo as it needs to write to /usr/obj --- hosts/freebsd-jenkins/usr/local/etc/sudoers | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'hosts/freebsd-jenkins/usr/local/etc/sudoers') diff --git a/hosts/freebsd-jenkins/usr/local/etc/sudoers b/hosts/freebsd-jenkins/usr/local/etc/sudoers index b6670c1a..3999cde4 100644 --- a/hosts/freebsd-jenkins/usr/local/etc/sudoers +++ b/hosts/freebsd-jenkins/usr/local/etc/sudoers @@ -34,7 +34,7 @@ ## ## Uncomment if needed to preserve environmental variables related to the ## FreeBSD pkg_* utilities and fetch. -# Defaults env_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR FTP_PASSIVE_MODE" +Defaults env_keep += "PKG_PATH PKG_DBDIR PKG_TMPDIR TMPDIR PACKAGEROOT PACKAGESITE PKGDIR FTP_PASSIVE_MODE" ## ## Additionally uncomment if needed to preserve environmental variables ## related to portupgrade @@ -44,7 +44,9 @@ ## when running commands via sudo. ## ## Locale settings -# Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET" +Defaults env_keep += "LANG LANGUAGE LINGUAS LC_* _XKB_CHARSET" +# for reproducible builds: +Defaults env_keep += "TZ" ## ## Run X applications through sudo; HOME is used to find the ## .Xauthority file. Note that other programs use HOME to find @@ -89,6 +91,9 @@ root ALL=(ALL) ALL ## Uncomment to allow members of group sudo to execute any command # %sudo ALL=(ALL) ALL +# for reproducible builds: +jenkins ALL= NOPASSWD: /usr/bin/make buildworld + ## Uncomment to allow any user to run sudo if they know the password ## of the user they are running the command as (root by default). # Defaults targetpw # Ask for the password of the target user -- cgit v1.2.3-70-g09d2