From 84d056974d84237de72ea2fb15bc1270b60841d0 Mon Sep 17 00:00:00 2001 From: "Michael R. Crusoe" Date: Wed, 4 Dec 2019 14:10:42 +0100 Subject: [PATCH] improve reproducibility --- debian/patches/reprobuild | 20 ++++++++++++++++++++ debian/patches/series | 1 + 2 files changed, 21 insertions(+) create mode 100644 debian/patches/reprobuild diff --git a/debian/patches/reprobuild b/debian/patches/reprobuild new file mode 100644 index 00000000..4ce55636 --- /dev/null +++ b/debian/patches/reprobuild @@ -0,0 +1,20 @@ +Author: Michael R. Crusoe +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", diff --git a/debian/patches/series b/debian/patches/series index 639f255e..db6b7513 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -11,3 +11,4 @@ suppress_gnutls_version_check optionally_keep_sequence fix_unit_tests system_mbedtls_only +reprobuild -- 2.30.2