Package: pkg-config Version: 0.28-1 Severity: wishlist Tags: patch User: reproducible-bui...@lists.alioth.debian.org Usertags: locale
Hi! While working on the "reproducible builds" effort [1], we have noticed that pkg-config could not be built reproducibly. The attached patch set the environment variable LC_ALL=C for the sort command in debian/rules whose output changes depending on the locale. Once applied, pkg-config can be built reproducibly in our current experimental framework. [1]: https://wiki.debian.org/ReproducibleBuilds
diff -urNp pkg-config-0.28.orig/debian/rules pkg-config-0.28/debian/rules --- pkg-config-0.28.orig/debian/rules 2015-07-18 17:04:57.000000000 -0300 +++ pkg-config-0.28/debian/rules 2015-07-18 17:10:01.381537676 -0300 @@ -14,7 +14,7 @@ endif SYSTEM_LIBDIRS := $(shell for opt in '' $$($${CC-$(GCC)} -print-multi-lib | sed -n -e's/.*;@/-/p'); do \ $(GCC) $$opt -print-search-dirs | sed -n -e's/^libraries: =//p' \ | sed -e's/:/\n/g' | xargs -n1 readlink -f | grep -v 'gcc\|/[0-9.]\+$$'; \ - done | sort -u | tr '\n' : | sed 's/:$$//') + done | LC_ALL=C sort -u | tr '\n' : | sed 's/:$$//') %: dh $@ --with autoreconf