Bug#1028515: accel-config: please make the build reproducible
Chris Lamb
lamby at debian.org
Thu Jan 12 08:02:42 GMT 2023
Source: accel-config
Version: 3.5.0-1
Severity: wishlist
Tags: patch
User: reproducible-builds at lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-bugs at lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0] we noticed that
accel-config could not be built reproducibly.
This is because debian/rules was overriding CFLAGS on the command-line
call to ./configure. This could be replaced with "$(shell
dpkg-buildflags --export=cmdline)" but it also can be replaced with
the attached patch.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` lamby at debian.org / chris-lamb.co.uk
`-
-------------- next part --------------
--- a/debian/rules 2023-01-12 07:54:17.129640378 +0000
--- b/debian/rules 2023-01-12 07:58:20.452930026 +0000
@@ -5,6 +5,9 @@
export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
+DPKG_EXPORT_BUILDFLAGS = 1
+include /usr/share/dpkg/buildflags.mk
+
%:
dh $@
@@ -12,7 +15,7 @@
dh_autoreconf ./autogen.sh
override_dh_auto_configure:
- dh_auto_configure -- CFLAGS='-g -O2' --prefix=/usr --sysconfdir=/etc --enable-test=yes
+ dh_auto_configure -- --prefix=/usr --sysconfdir=/etc --enable-test=yes
override_dh_clean:
#removing files generated by autogen.sh
More information about the Reproducible-bugs
mailing list