Your message dated Sun, 22 May 2016 11:53:04 +0200
with message-id <[email protected]>
and subject line Re: rocksdb: please make the build reproducible
has caused the Debian Bug report #814214,
regarding rocksdb: please make the build reproducible
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
814214: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=814214
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: rocksdb
Version: 4.1-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: timestamps
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the "reproducible builds" effort [0], we noticed that rocksdb
could not be built reproducibly.
Patch attached.
[0] https://wiki.debian.org/ReproducibleBuilds
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
diff --git a/Makefile b/Makefile
index a98aa5b..e58088d 100644
--- a/Makefile
+++ b/Makefile
@@ -184,7 +184,12 @@ CXXFLAGS += $(WARNING_FLAGS) -I. -I./include
$(PLATFORM_CXXFLAGS) $(OPT) -Woverl
LDFLAGS += $(PLATFORM_LDFLAGS)
-date := $(shell date +%F)
+DATE_FMT = %Y-%m-%d
+ifdef SOURCE_DATE_EPOCH
+ DATE ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "+$(DATE_FMT)"
2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "+$(DATE_FMT)" 2>/dev/null ||
date -u "+$(DATE_FMT)")
+else
+ DATE ?= $(shell date "+$(DATE_FMT)")
+endif
ifdef FORCE_GIT_SHA
git_sha := $(FORCE_GIT_SHA)
else
--- End Message ---
--- Begin Message ---
Version: 4.5.1-1
The patch has been applied and it builds now reproducibly.
signature.asc
Description: Digital signature
--- End Message ---