Source: perl-tk
Version: 1:804.033-1
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 perl-tk could not be built reproducibly.
It does not use dpkg-buildflags while compiling C sources, which causes
the build path to be embedded in debug symbols, as -fdebug-prefix-map is
not specified.

The attached patch fixes this by passing the CFLAGS to the build process.

Regards,
 Reiner

[1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/rules b/debian/rules
index 3a650b2..ff16864 100755
--- a/debian/rules
+++ b/debian/rules
@@ -30,7 +30,7 @@ build-indep: build
 
 build:	build-stamp
 build-stamp:	config-stamp
-	$(MAKE) LD_RUN_PATH=
+	$(MAKE) LD_RUN_PATH= OPTIMIZE="$(CFLAGS)"
 	touch $@
 
 clean:	checkroot

Attachment: signature.asc
Description: PGP signature

_______________________________________________
Reproducible-builds mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds

Reply via email to