Module Name: src Committed By: christos Date: Wed Mar 20 00:31:54 UTC 2024
Modified Files: src/distrib/common: Makefile.image Log Message: Fix reproducible builds (Jan-Benedict Glaw) To generate a diff of this commit: cvs rdiff -u -r1.40 -r1.41 src/distrib/common/Makefile.image Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/common/Makefile.image diff -u src/distrib/common/Makefile.image:1.40 src/distrib/common/Makefile.image:1.41 --- src/distrib/common/Makefile.image:1.40 Fri Feb 10 22:07:06 2017 +++ src/distrib/common/Makefile.image Tue Mar 19 20:31:54 2024 @@ -1,4 +1,4 @@ -# $NetBSD: Makefile.image,v 1.40 2017/02/11 03:07:06 christos Exp $ +# $NetBSD: Makefile.image,v 1.41 2024/03/20 00:31:54 christos Exp $ # # Makefile snippet to build a tree from the provided lists, # and make an ffs file system image from that tree @@ -39,13 +39,14 @@ WORKBUILT?= work.built PARSELISTENV+= TARGETDIR=${.OBJDIR}/${WORKDIR:Q} -GZIP_FLAGS= -9 ${GZIP_N_FLAG} - .if ${MKREPRO_TIMESTAMP:Uno} != "no" MAKEFS_TIMESTAMP=-T "${MKREPRO_TIMESTAMP}" PAX_TIMESTAMP=--timestamp "${MKREPRO_TIMESTAMP}" +GZIP_N_FLAG=-n .endif +GZIP_FLAGS= -9 ${GZIP_N_FLAG} + .if !target(${WORKBUILT}) # { ${WORKBUILT}: ${IMAGEDEPENDS} ${WORKSPEC} ${PARSELISTDEP} ${LISTS} # There is a .PHONY ${CRUNCHBIN}, so check if out of date by hand