Reproducible tar balls (current) commit c9e08c0fdc21b0d8c49742ab9fd9caffdbf00fd1 Author: Fabian Keil Date: Sun May 24 18:01:31 2015 +0200 Fake modification time smarter for everything but EXTRA_PACKAGES [...] diff --git a/Makefile.inc1 b/Makefile.inc1 index ab8db10..de458b0 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -1010,6 +1010,13 @@ distributeworld installworld: _installcheck_world find ${DESTDIR}/${DISTDIR}/${dist} -mindepth 1 -empty -delete .endfor .if defined(NO_ROOT) + @# Post process METALOG: add fake timestamps and, if necessary, + @# remove duplicated slashes which can occur if DISTDIR is undefined. + @# Keeping them results in missing files in the distribution tarballs. +.if defined(EPOCH_DATE) + sed -E -e 's@time=[0-9]+.0@@' -e 's@(type=)@time=${EPOCH_DATE}.0 \1@' \ + -e 's@//@/@' -i '.bak' ${METALOG} +.endif [...] diff --git a/release/Makefile b/release/Makefile index 367dd03..4c2b530 100644 --- a/release/Makefile +++ b/release/Makefile @@ -56,6 +56,10 @@ TARGET_ARCH= ${TARGET} IMAKE= ${MAKE} TARGET_ARCH=${TARGET_ARCH} TARGET=${TARGET} DISTDIR= dist +# Enable mtree spec usage so we can fake the modification time. +NO_ROOT=1 +.export NO_ROOT