Source: icebreaker
Version: 1.21-11
Severity: wishlist
Tags: patch
Usertags: timestamps


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.



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

Reply via email to