Source: modglue Version: 1.17-2.4 Severity: wishlist Tags: patch upstream User: reproducible-bui...@lists.alioth.debian.org Usertags: timestamps hostname X-Debbugs-Cc: reproducible-bui...@lists.alioth.debian.org
Hi! While working on the "reproducible builds" effort [1], we have noticed that modglue could not be built reproducibly. It embeds the build date into the binary. The attached patch strips this to enable reproducible building. Regards, Reiner [1]: https://wiki.debian.org/ReproducibleBuilds
diff --git a/debian/patches/02_reproducible_build.patch b/debian/patches/02_reproducible_build.patch new file mode 100644 index 0000000..31b491a --- /dev/null +++ b/debian/patches/02_reproducible_build.patch @@ -0,0 +1,32 @@ +Author: Reiner Herrmann <rei...@reiner-h.de> +Description: Strip build date and hostname to enable reproducible building + +--- a/src/Makefile.in ++++ b/src/Makefile.in +@@ -21,8 +21,6 @@ + IPHASE = ${LIBTOOL} --mode=install @INSTALL@ + FPHASE = ${LIBTOOL} --mode=finish @prefix@/@libdir@ + +-TIMESTAMP = -D"DATETIME=\"`date | sed -e 's/ / /'`\"" -DHOSTNAME=\"`hostname`\" +- + all: library tests tools + + TOOLS = ptywrap isatty prompt +--- a/src/prompt.cc ++++ b/src/prompt.cc +@@ -392,12 +392,11 @@ + int main(int argc, char **argv) + { + if(argc==1) { +- cerr << "prompt ("; ++ cerr << "prompt"; + #ifdef STATICBUILD +- cerr << "static, "; ++ cerr << " (static)"; + #endif +- cerr << "built on " << DATETIME << /* " on " << HOSTNAME << */ ")" << std::endl +- << "Copyright (C) 2001-2006 Kasper Peeters <kasper.peet...@aei.mpg.de>" << endl << endl ++ cerr << "Copyright (C) 2001-2006 Kasper Peeters <kasper.peet...@aei.mpg.de>" << endl << endl + << "Usage: prompt [program] [args]" << endl; + exit(-1); + } diff --git a/debian/patches/series b/debian/patches/series index 69e2c3e..839ab18 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ 01_fix_libs_in_linking_tests +02_reproducible_build.patch
signature.asc
Description: Digital signature