mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-26 08:52:16 +00:00
abuild: set SOURCE_DATE_EPOCH from rootpkg
This commit is contained in:
parent
918b7b1920
commit
80a2e6f8cf
@ -106,7 +106,9 @@ want_check() {
|
|||||||
|
|
||||||
set_source_date() {
|
set_source_date() {
|
||||||
# set time stamp for reproducible builds
|
# set time stamp for reproducible builds
|
||||||
|
if [ -z "$ABUILD_LAST_COMMIT" ]; then
|
||||||
export ABUILD_LAST_COMMIT="$(git_last_commit)$(git_dirty)"
|
export ABUILD_LAST_COMMIT="$(git_last_commit)$(git_dirty)"
|
||||||
|
fi
|
||||||
if [ -z "$SOURCE_DATE_EPOCH" ] && [ "${ABUILD_LAST_COMMIT%-dirty}" = "$ABUILD_LAST_COMMIT" ]; then
|
if [ -z "$SOURCE_DATE_EPOCH" ] && [ "${ABUILD_LAST_COMMIT%-dirty}" = "$ABUILD_LAST_COMMIT" ]; then
|
||||||
SOURCE_DATE_EPOCH=$(git_last_commit_epoch $ABUILD_LAST_COMMIT)
|
SOURCE_DATE_EPOCH=$(git_last_commit_epoch $ABUILD_LAST_COMMIT)
|
||||||
fi
|
fi
|
||||||
@ -1898,6 +1900,7 @@ check_fakeroot() {
|
|||||||
rootpkg() {
|
rootpkg() {
|
||||||
cd "$startdir"
|
cd "$startdir"
|
||||||
rm -rf "$pkgdir"
|
rm -rf "$pkgdir"
|
||||||
|
set_source_date
|
||||||
[ -n "$FAKEROOT" ] && msg "Entering fakeroot..."
|
[ -n "$FAKEROOT" ] && msg "Entering fakeroot..."
|
||||||
|
|
||||||
do_fakeroot "$abuild_path" $forceroot $color_opt $keep_build \
|
do_fakeroot "$abuild_path" $forceroot $color_opt $keep_build \
|
||||||
|
Loading…
Reference in New Issue
Block a user