From 186e4609f2e87687503b5ea79480ea8440d73d35 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Thu, 19 Mar 2015 17:33:04 +0100 Subject: reproducible: use linux64 --uname-2.6 correctly, thanks lunar --- bin/reproducible_build.sh | 2 +- etc/pbuilder/rebuild-hooks/D01_modify_environment | 2 -- etc/sudoers.d/jenkins | 2 +- 3 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bin/reproducible_build.sh b/bin/reproducible_build.sh index c58414d6..d76e52ed 100755 --- a/bin/reproducible_build.sh +++ b/bin/reproducible_build.sh @@ -254,7 +254,7 @@ else TZ="/usr/share/zoneinfo/Etc/GMT-14" \ LANG="fr_CH.UTF-8" \ LC_ALL="fr_CH.UTF-8" \ - unshare --uts -- /usr/sbin/pbuilder --build --configfile $TMPCFG --hookdir /etc/pbuilder/rebuild-hooks \ + /usr/bin/linux64 --uname-2.6 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile $TMPCFG --hookdir /etc/pbuilder/rebuild-hooks \ --debbuildopts "-b" --basetgz /var/cache/pbuilder/$SUITE-reproducible-base.tgz --distribution ${SUITE} ${SRCPACKAGE}_${EVERSION}.dsc ) 2>&1 | tee -a ${RBUILDLOG} set +x diff --git a/etc/pbuilder/rebuild-hooks/D01_modify_environment b/etc/pbuilder/rebuild-hooks/D01_modify_environment index db71ccf4..57c785b3 100755 --- a/etc/pbuilder/rebuild-hooks/D01_modify_environment +++ b/etc/pbuilder/rebuild-hooks/D01_modify_environment @@ -9,5 +9,3 @@ echo "I: Changing hostname to test build reproducibility" >&2 sed -e '/^127.0.0.1/s/$/ i-capture-the-hostname i-capture-the-hostname.i-capture-the-domain/' -i /etc/hosts hostname i-capture-the-hostname domainname i-capture-the-domain -# let's pretend we're using a different kernel version -linux64 --uname-2.6 diff --git a/etc/sudoers.d/jenkins b/etc/sudoers.d/jenkins index 34dbabf7..103841a6 100644 --- a/etc/sudoers.d/jenkins +++ b/etc/sudoers.d/jenkins @@ -30,7 +30,7 @@ jenkins ALL= \ /bin/cp -rv /media/*, \ /bin/chown -R jenkins\:jenkins /var/lib/jenkins/jobs/*,\ SETENV: NOPASSWD: /usr/sbin/pbuilder *, \ - SETENV: NOPASSWD: /usr/bin/unshare --uts -- /usr/sbin/pbuilder *, \ + SETENV: NOPASSWD: /usr/bin/linux64 --uname-2.6 /usr/bin/unshare --uts -- /usr/sbin/pbuilder *, \ /bin/mv /var/cache/pbuilder/*base*.tgz /var/cache/pbuilder/*base*.tgz, \ /bin/rm /var/cache/pbuilder/*base*.tgz, \ /bin/rm -v /var/cache/pbuilder/*base*.tgz, \ -- cgit v1.2.3-70-g09d2