Source: libapt-pkg-perl
Version: 0.1.29
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 libapt-pkg-perl could not be built reproducibly.
It doesn't use dpkg-buildflags for compiling a C file, which causes the
build path to be embedded in debugging symbols (as -fdebug-prefix-map
won't be used).

The attached patch fixes this.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules
index c20a9c1..1d1bf9b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,7 @@ build-indep: build-stamp
 build-stamp:
 	dh_testdir
 	perl Makefile.PL INSTALLDIRS=vendor
-	$(MAKE) OPTIMIZE="-O2 -g -Wall"
+	$(MAKE) OPTIMIZE="$(shell dpkg-buildflags --get CFLAGS) -Wall"
 	touch build-stamp
 
 clean:

Attachment: signature.asc
Description: PGP signature

Reply via email to