From 635019ead473ae603871aacf52eea9b38e7db160 Mon Sep 17 00:00:00 2001 From: Enno Boland Date: Thu, 3 Mar 2016 16:51:58 +0100 Subject: [PATCH] busybox: make build reproducable. --- srcpkgs/busybox/template | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/srcpkgs/busybox/template b/srcpkgs/busybox/template index e5472598e75..e9534ad0e10 100644 --- a/srcpkgs/busybox/template +++ b/srcpkgs/busybox/template @@ -1,7 +1,7 @@ # Build template for 'busybox'. pkgname=busybox version=1.24.1 -revision=3 +revision=4 hostmakedepends="perl" short_desc="The Swiss Army Knife of Embedded Linux" maintainer="Juan RP " @@ -27,7 +27,7 @@ _cflags() { echo "$c" } -pre_build() { +do_configure() { mkdir -p src mv * src || true @@ -49,9 +49,15 @@ pre_build() { "s,\(CONFIG_CROSS_COMPILER_PREFIX\).*,\1=\"${XBPS_CROSS_TRIPLET}-\",g" \ -i ${t}/.config fi - #make -C $t oldconfig + make -C $t prepare ${makejobs} done + if [ "$SOURCE_DATE_EPOCH" ]; then + # rewrite date with the one from the date wrapper. + d=$(date +"%F %T %Z") + sed -i "s/\(#define AUTOCONF_TIMESTAMP\).*/\1 \"$d\"/" */include/autoconf.h + fi } + do_build() { local t for t in busybox busybox-static; do