Source: libtext-charwidth-perl Version: 0.04-7 Severity: wishlist Tags: patch User: [email protected] Usertags: buildpath X-Debbugs-Cc: [email protected]
Hi! While working on the "reproducible builds" effort [1], we have noticed that libtext-charwidth-perl could not be built reproducibly. For compilation of a C file the dpkg-buildflags are not used, which causes build path differences, as -fdebug-prefix-map won't be used. The attached patch fixes this. There also was a call to "dh $@" in the install target, which caused a second build (that ignored the steps from the build target), which is also removed. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules index ed73c95..a59ecdc 100755 --- a/debian/rules +++ b/debian/rules @@ -7,7 +7,7 @@ # Uncomment this to turn on verbose mode. export DH_VERBOSE=1 -CFLAGS = -Wall -g +CFLAGS = $(shell dpkg-buildflags --get CFLAGS) -Wall ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 @@ -59,7 +59,6 @@ ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) exit 1 ;\ fi endif - dh $@ dh_testdir dh_testroot dh_prep
signature.asc
Description: PGP signature

