mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-01 18:32:58 +02:00
busybox: make build reproducable.
This commit is contained in:
parent
e47bcaa55a
commit
635019ead4
1 changed files with 9 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
# Build template for 'busybox'.
|
# Build template for 'busybox'.
|
||||||
pkgname=busybox
|
pkgname=busybox
|
||||||
version=1.24.1
|
version=1.24.1
|
||||||
revision=3
|
revision=4
|
||||||
hostmakedepends="perl"
|
hostmakedepends="perl"
|
||||||
short_desc="The Swiss Army Knife of Embedded Linux"
|
short_desc="The Swiss Army Knife of Embedded Linux"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
||||||
|
@ -27,7 +27,7 @@ _cflags() {
|
||||||
echo "$c"
|
echo "$c"
|
||||||
}
|
}
|
||||||
|
|
||||||
pre_build() {
|
do_configure() {
|
||||||
mkdir -p src
|
mkdir -p src
|
||||||
mv * src || true
|
mv * src || true
|
||||||
|
|
||||||
|
@ -49,9 +49,15 @@ pre_build() {
|
||||||
"s,\(CONFIG_CROSS_COMPILER_PREFIX\).*,\1=\"${XBPS_CROSS_TRIPLET}-\",g" \
|
"s,\(CONFIG_CROSS_COMPILER_PREFIX\).*,\1=\"${XBPS_CROSS_TRIPLET}-\",g" \
|
||||||
-i ${t}/.config
|
-i ${t}/.config
|
||||||
fi
|
fi
|
||||||
#make -C $t oldconfig
|
make -C $t prepare ${makejobs}
|
||||||
done
|
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() {
|
do_build() {
|
||||||
local t
|
local t
|
||||||
for t in busybox busybox-static; do
|
for t in busybox busybox-static; do
|
||||||
|
|
Loading…
Add table
Reference in a new issue