Source: funnelweb
Version: 3.2-5
Severity: wishlist
Tags: patch
User: reproducible-builds@lists.alioth.debian.org
Usertags: locale
X-Debbugs-Cc: reproducible-builds@lists.alioth.debian.org

Hi!

While working on the "reproducible builds" effort [1], we have noticed
that funnelweb could not be built reproducibly.
It uses a wildcard to collect object files, which are sorted differently
depending on the locale.

The attached patch fixes this by printing the files with LC_ALL set to C.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules
index 8e4996b..d7a13e5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -15,7 +15,7 @@ LDFLAGS  ?= $(shell dpkg-buildflags --get LDFLAGS)
 override_dh_auto_build:
 	(cd source && \
 	 $(CC) $(CPPFLAGS) $(CFLAGS) -c *.c && \
-	 $(CC) $(CFLAGS) $(LDFLAGS) -o fw *.o)
+	 $(CC) $(CFLAGS) $(LDFLAGS) -o fw `LC_ALL=C ls *.o`)
 
 override_dh_auto_clean:
 	rm -f source/fw source/*.o

Attachment: signature.asc
Description: PGP 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