busybox: make build reproducable.
This commit is contained in:
parent
e47bcaa55a
commit
635019ead4
|
@ -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 <xtraeme@voidlinux.eu>"
|
||||
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue