Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F137869732
D4385.id54425.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1017 B
Referenced Files
None
Subscribers
None
D4385.id54425.diff
View Options
Index: Mk/bsd.port.mk
===================================================================
--- Mk/bsd.port.mk
+++ Mk/bsd.port.mk
@@ -2051,6 +2051,14 @@
DISTINFO_FILE?= ${MASTERDIR}/distinfo
+# Timestamp for package archive metadata, for reproducible builds, with a
+# default for ports that do not override it via distinfo.
+TIMESTAMP= 1500000000
+.if !make(*depends*) && empty(.MAKEFLAGS:M-V) && \
+ empty(.MAKEFLAGS:MTIMESTAMP) && exists(${DISTINFO_FILE})
+TIMESTAMP!= ${AWK} -F' = ' -v ts=${TIMESTAMP} '/^TIMESTAMP/ { ts=$$2 } END { print ts}' ${DISTINFO_FILE}
+.endif
+
MAKE_FLAGS?= -f
MAKEFILE?= Makefile
MAKE_CMD?= ${BSDMAKE}
@@ -2062,6 +2070,9 @@
LDFLAGS="${LDFLAGS}" LIBS="${LIBS}" \
CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
MANPREFIX="${MANPREFIX}"
+.if empty(USES:Mpython*)
+PKG_ENV+= SOURCE_DATE_EPOCH=${TIMESTAMP}
+.endif
# Add -fno-strict-aliasing to CFLAGS with optimization level -O2 or higher.
# gcc 4.x enable strict aliasing optimization with -O2 which is known to break
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 27, 4:14 PM (5 h, 36 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
26258835
Default Alt Text
D4385.id54425.diff (1017 B)
Attached To
Mode
D4385: Prepare the ports tree for reproducible builds
Attached
Detach File
Event Timeline
Log In to Comment