pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/mk/repro



Module Name:    pkgsrc
Committed By:   nikita
Date:           Mon May 15 17:16:58 UTC 2023

Modified Files:
        pkgsrc/mk/repro: repro.mk

Log Message:
mk: fix repro.mk, add initial SOURCE_DATE_EPOCH support.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/mk/repro/repro.mk

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/mk/repro/repro.mk
diff -u pkgsrc/mk/repro/repro.mk:1.1 pkgsrc/mk/repro/repro.mk:1.2
--- pkgsrc/mk/repro/repro.mk:1.1        Sun Nov 12 13:34:14 2017
+++ pkgsrc/mk/repro/repro.mk    Mon May 15 17:16:58 2023
@@ -1,15 +1,20 @@
-# $NetBSD: repro.mk,v 1.1 2017/11/12 13:34:14 khorben Exp $
+# $NetBSD: repro.mk,v 1.2 2023/05/15 17:16:58 nikita Exp $
 #
 # Infrastructure support for PKGSRC_MKREPRO.
 #
 # Keywords: reproducible
 #
 
-.if ${_PKGSRC_MKREPRO} == "yes"
+.if ${PKGSRC_MKREPRO} == "yes"
 
 # force ar(1) to be deterministic
 TOOLS_CREATE+= ar
 TOOLS_PATH.ar?=        ${PKGSRCDIR}/mk/repro/ar
 TOOLS_ARGS.ar?=        D
 
+# force SOURCE_DATE_EPOCH
+# https://reproducible-builds.org/docs/source-date-epoch/
+# TODO: is this exported in all necessary envs?
+PKGSRC_MAKE_ENV+= SOURCE_DATE_EPOCH=1
+
 .endif



Home | Main Index | Thread Index | Old Index