Source: icebreaker
Version: 1.21-11
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: timestamps
X-Debbugs-CC: reproducible-builds@lists.alioth.debian.org

Hi!

While working on Debian's “reproducible builds” effort [1], we have
noticed that icebreaker doesn't build reproducibly.
The date embedded into the manpage can vary depending on the timezone.

The attached patch fixes this by setting the timezone to UTC and
generating locale-independent names for the month.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds

diff --git a/Makefile b/Makefile
index f0f139b..1d7b7f1 100644
--- a/Makefile
+++ b/Makefile
@@ -35,7 +35,7 @@ SDL_LIB=$(SDL_LDFLAGS) $(SDL_MIXER)
 SDL_CFLAGS := $(shell $(SDLCONFIG) --cflags)
 SDL_LDFLAGS := $(shell $(SDLCONFIG) --libs)
 VERSION := $(shell awk '/^\#define VERSION/ { print $$3 }' icebreaker.h)
-VERDATE := $(shell date -r icebreaker.h +"%d %B %Y")
+VERDATE := $(shell LC_ALL=C date -u -r icebreaker.h +"%d %B %Y")
 
 ifneq ($(VERSION),$(shell awk '/^Version:/ { print $$2 }' icebreaker.spec))
   $(error "Version in spec file doesn't match version in icebreaker.h!")

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Reproducible-builds mailing list
Reproducible-builds@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to