Source: ndisc6
Version: 1.0.4-1
Severity: wishlist
Tags: patch
User: reproducible-bui...@lists.alioth.debian.org
Usertags: buildpath
X-Debbugs-Cc: reproducible-b...@lists.alioth.debian.org
Hi,
Whilst working on the Reproducible Builds effort [0] we noticed that
ndisc6 could not be built reproducibly.
This is because it includes the CFLAGS used to build the package in
the binary via PACKAGE_CONFIGURE_INVOCATION which then includes the
absolute build path via (eg.) the -ffile-prefix-map flag.
I see you already patch out the hostname, etc. and you could follow
this approach and remove the CFLAGS too, but just in case they might
be useful I've attached a patch that strips out the -fdebug-prefix-map
(etc.) calls instead.
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` la...@debian.org / chris-lamb.co.uk
`-
--- a/debian/patches/reproducible-build2.patch 1969-12-31 16:00:00.0
-0800
--- b/debian/patches/reproducible-build2.patch 2020-03-03 17:44:08.283963589
-0800
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb
+Last-Update: 2020-03-03
+
+--- ndisc6-1.0.4.orig/configure.ac
ndisc6-1.0.4/configure.ac
+@@ -21,7 +21,7 @@ dnl
+ AC_COPYRIGHT([Copyright (C) 2005-2016 Remi Denis-Courmont])
+ AC_INIT(ndisc6, 1.0.4, remi_no_bulk_m...@remlab.net)
+ AC_PREREQ(2.62)
+-INVOCATION="`echo "$0 $ac_configure_args" | sed -e 's/\\\/\\\/g'`"
++INVOCATION="`echo "$0 $ac_configure_args" | sed -e 's/\\\/\\\/g' -e 's@
[[^ ]]*-f\(file\|debug\)-prefix-map=[[^ ]]*@@g'`"
+
+ AS_MESSAGE(checking system...)
+ AC_CONFIG_SRCDIR(configure.ac)
--- a/debian/patches/series 2020-03-03 17:27:41.254772042 -0800
--- b/debian/patches/series 2020-03-03 17:38:05.811926815 -0800
@@ -1,2 +1,3 @@
resolvconf-rdnssd-hook.patch
reproducible-build.patch
+reproducible-build2.patch