Source: xxhash
Version: 0.7.3-1
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: buildpath
X-Debbugs-Cc: [email protected]
Hi,
Whilst working on the Reproducible Builds effort [0] we noticed that
xxhash could not be built reproducibly.
This is because the shipped pkg-config file embeds the path the
package was built in. Patch attached that changes this prefix value to
"/usr" which I *think* is right, but it's at least no worse than the
current shipped value which will never resolve on a user's machine.
@@ -1,11 +1,11 @@
# xxHash - Extremely fast hash algorithm
# BSD 2-Clause License
(https://www.opensource.org/licenses/bsd-license.php)
-prefix=/build/1st/xxhash-0.7.3/debian/tmp/usr
+prefix=/build/2/xxhash-0.7.3/2nd/debian/tmp/usr
[0] https://reproducible-builds.org/
Regards,
--
,''`.
: :' : Chris Lamb
`. `'` [email protected] / chris-lamb.co.uk
`-
--- a/debian/patches/reproducible-build.patch 1970-01-01 01:00:00.000000000
+0100
--- b/debian/patches/reproducible-build.patch 2020-04-13 10:40:21.112307341
+0100
@@ -0,0 +1,15 @@
+Description: Make the build reproducible
+Author: Chris Lamb <[email protected]>
+Last-Update: 2020-04-13
+
+--- xxhash-0.7.3.orig/libxxhash.pc.in
++++ xxhash-0.7.3/libxxhash.pc.in
+@@ -1,7 +1,7 @@
+ # xxHash - Extremely fast hash algorithm
+ # BSD 2-Clause License (https://www.opensource.org/licenses/bsd-license.php)
+
+-prefix=@PREFIX@
++prefix=/usr
+ exec_prefix=${prefix}
+ includedir=${prefix}/include
+ libdir=${exec_prefix}/lib
--- a/debian/patches/series 1970-01-01 01:00:00.000000000 +0100
--- b/debian/patches/series 2020-04-13 10:40:20.056300166 +0100
@@ -0,0 +1 @@
+reproducible-build.patch