improve reproducibility
authorMichael R. Crusoe <michael.crusoe@gmail.com>
Wed, 4 Dec 2019 13:10:42 +0000 (14:10 +0100)
committerMichael R. Crusoe <michael.crusoe@gmail.com>
Wed, 4 Dec 2019 13:10:42 +0000 (14:10 +0100)
debian/patches/reprobuild [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/reprobuild b/debian/patches/reprobuild
new file mode 100644 (file)
index 0000000..4ce5563
--- /dev/null
@@ -0,0 +1,20 @@
+Author: Michael R. Crusoe <michael.crusoe@gmail.com>
+Description: make the build more reproducible
+--- ncbi-blastplus.orig/c++/src/build-system/configure.ac
++++ ncbi-blastplus/c++/src/build-system/configure.ac
+@@ -2826,13 +2826,13 @@
+    linux*)
+       kver=`uname -r | sed -e 's/-.*//'`
+       libcver=`ldd --version | awk 'NR == 1 { print $NF }'`
+-      verbose_host=$host_cpu-$host_vendor-linux$kver-gnu$libcver
++      verbose_host=$host_cpu-$host_vendor-linux-gnu$libcver
+       ;;
+    *) verbose_host=$host ;;
+ esac
+ #### Overall configuration mode summary
+-signature_hostname=`(hostname || uname -n) 2>/dev/null \
++signature_hostname=`echo debian_build 2>/dev/null \
+     | sed 's/\..*//; s/-/_/g; 1q'`
+ signature="${signature_compiler}_${signature_compiler_version}-${release_debug}${mt_sfx}${dll_sfx}${bit64_sfx}${prof_sfx}--${verbose_host}-${signature_hostname}"
+ AC_DEFINE_UNQUOTED(NCBI_SIGNATURE, "$signature",
index 639f255e8cc9c0184ef9005cb5deba4ab045bc7c..db6b7513ef7c083c352a7c0e94a70a58c68b8e0b 100644 (file)
@@ -11,3 +11,4 @@ suppress_gnutls_version_check
 optionally_keep_sequence
 fix_unit_tests
 system_mbedtls_only
+reprobuild