From d54aa7f4677fabb95709d86f4965bd64b875e946 Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Wed, 22 Feb 2017 09:18:37 -0500 Subject: reproducible FreeBSD: set pkg base timestamp Packaged base is the work-in-progress distribution method for FreeBSD 12.x, and is not yet completely connected into the FreeBSD release build mechanism. For now explicitly set the pkg metadata timestamp via SOURCE_DATE_EPOCH in the environment, until we have the mechanism to set it via the release build scripts. Signed-off-by: Holger Levsen --- bin/reproducible_freebsd.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh index f6becdc3..e2a5362f 100755 --- a/bin/reproducible_freebsd.sh +++ b/bin/reproducible_freebsd.sh @@ -128,7 +128,7 @@ for FREEBSD_TARGET in ${FREEBSD_TARGETS} ;do # actually build everything if ( $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG sudo make -j $NUM_CPU WITH_REPRODUCIBLE_BUILD=yes buildworld" && \ $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG sudo make -j $NUM_CPU WITH_REPRODUCIBLE_BUILD=yes buildkernel" && \ - $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG sudo make -j $NUM_CPU PKG_VERSION=current packages" && \ + $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG sudo SOURCE_DATE_EPOCH=$START make -j $NUM_CPU PKG_VERSION=current packages" && \ $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG DESTDIR=$TMPDIR sudo make -j $NUM_CPU installworld" && \ $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG DESTDIR=$TMPDIR sudo make -j $NUM_CPU installkernel" && \ $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG DESTDIR=$TMPDIR sudo make -j $NUM_CPU distribution" ) ; then @@ -159,7 +159,7 @@ for FREEBSD_TARGET in ${FREEBSD_TARGETS} ;do # actually build everything if ( $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG LC_ALL=$LC_ALL sudo make -j $NEW_NUM_CPU WITH_REPRODUCIBLE_BUILD=yes buildworld" && \ $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG LC_ALL=$LC_ALL sudo make -j $NEW_NUM_CPU WITH_REPRODUCIBLE_BUILD=yes buildkernel" && \ - $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG LC_ALL=$LC_ALL sudo make -j $NEW_NUM_CPU PKG_VERSION=current packages" && \ + $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG LC_ALL=$LC_ALL sudo SOURCE_DATE_EPOCH=$START make -j $NEW_NUM_CPU PKG_VERSION=current packages" && \ $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG LC_ALL=$LC_ALL DESTDIR=$TMPDIR sudo make -j $NEW_NUM_CPU installworld" && \ $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG LC_ALL=$LC_ALL DESTDIR=$TMPDIR sudo make -j $NEW_NUM_CPU installkernel" && \ $RSSH "cd $TMPBUILDDIR ; TZ=$TZ LANG=$LANG LC_ALL=$LC_ALL DESTDIR=$TMPDIR sudo make -j $NEW_NUM_CPU distribution" ) ; then -- cgit v1.2.3-70-g09d2