Source: tsdecrypt Version: 10.0-2 Severity: wishlist Tags: patch upstream User: [email protected] Usertags: timestamps X-Debbugs-Cc: [email protected]
Hi! While working on the "reproducible builds" effort [1], we have noticed that tsdecrypt could not be built reproducibly. It embeds the current build date/time 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/reproducible-build.patch b/debian/patches/reproducible-build.patch new file mode 100644 index 0000000..173c962 --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,26 @@ +Author: Reiner Herrmann <[email protected]> +Description: strip build date to enable reproducible building + +--- a/Makefile ++++ b/Makefile +@@ -19,8 +19,7 @@ + -W -Wall -Wextra \ + -Wshadow -Wformat-security -Wstrict-prototypes + +-DEFS = -DBUILD_ID=\"$(BUILD_ID)\" \ +- -DVERSION=\"$(VERSION)\" -DGIT_VER=\"$(GIT_VER)\" ++DEFS = -DVERSION=\"$(VERSION)\" -DGIT_VER=\"$(GIT_VER)\" + DEFS += -D_FILE_OFFSET_BITS=64 + + PREFIX ?= /usr/local +--- a/tsdecrypt.c ++++ b/tsdecrypt.c +@@ -40,7 +40,7 @@ + #define FIRST_REPORT_SEC 3 + + #define PROGRAM_NAME "tsdecrypt" +-static const char *program_id = PROGRAM_NAME " v" VERSION " (" GIT_VER ", build " BUILD_ID " " DLIB ")"; ++static const char *program_id = PROGRAM_NAME " v" VERSION " (" GIT_VER ", " DLIB ")"; + + int keep_running = 1; + static FILE *log_file = NULL; diff --git a/debian/patches/series b/debian/patches/series index 4ef81ac..7e6562d 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ avoid-inappropriate-compiler-flags +reproducible-build.patch
signature.asc
Description: Digital signature
_______________________________________________ Reproducible-builds mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/reproducible-builds
