diff -Nru gmerlin-2.0.0~svn6298~dfsg0/debian/changelog gmerlin-2.0.0~svn6298~dfsg0/debian/changelog --- gmerlin-2.0.0~svn6298~dfsg0/debian/changelog 2022-02-12 17:28:32.000000000 +0000 +++ gmerlin-2.0.0~svn6298~dfsg0/debian/changelog 2022-03-08 14:06:20.000000000 +0000 @@ -1,3 +1,11 @@ +gmerlin (2.0.0~svn6298~dfsg0-2) unstable; urgency=medium + + * Add patch for reproducible manpages. + Thanks to Vagrant Cascadian + (Closes: #1006256) + + -- IOhannes m zmölnig (Debian/GNU) Tue, 08 Mar 2022 15:06:20 +0100 + gmerlin (2.0.0~svn6298~dfsg0-1) unstable; urgency=medium * Upload to unstable. diff -Nru gmerlin-2.0.0~svn6298~dfsg0/debian/patches/reproducible-manpage.patch gmerlin-2.0.0~svn6298~dfsg0/debian/patches/reproducible-manpage.patch --- gmerlin-2.0.0~svn6298~dfsg0/debian/patches/reproducible-manpage.patch 1970-01-01 00:00:00.000000000 +0000 +++ gmerlin-2.0.0~svn6298~dfsg0/debian/patches/reproducible-manpage.patch 2022-03-08 14:06:20.000000000 +0000 @@ -0,0 +1,38 @@ +From d532ebe90243f9390b0b1e49f1d4918f173238a6 Mon Sep 17 00:00:00 2001 +From: Vagrant Cascadian +Date: Tue, 22 Feb 2022 03:25:25 +0000 +Subject: [PATCH] lib/cmdline.c: Use deterministic timestamp when generating + manpages. + +Use the SOURCE_DATE_EPOCH environment variable if available, and use +numeric date to avoid embedding locale-dependent month names. + +https://reproducible-builds.org/docs/source-date-epoch/ +--- + lib/cmdline.c | 10 +++++++--- + 1 file changed, 7 insertions(+), 3 deletions(-) + +diff --git a/lib/cmdline.c b/lib/cmdline.c +index 4b4d2f6..049e905 100644 +--- a/lib/cmdline.c ++++ b/lib/cmdline.c +@@ -441,9 +441,13 @@ void bg_cmdline_print_help(char * argv0, bg_help_format_t format) + char ** args; + char * string_uc; + +- time(&t); +- localtime_r(&t, &brokentime); +- strftime(date_str, 511, "%B %Y", &brokentime); ++ char *source_date_epoch; ++ /* This assumes that the SOURCE_DATE_EPOCH environment variable will contain ++ a correct, positive integer in the time_t range */ ++ if ((source_date_epoch = getenv("SOURCE_DATE_EPOCH")) == NULL || ++ (t = (time_t)strtoll(source_date_epoch, NULL, 10)) <= 0) ++ time(&t); ++ strftime(date_str, 511, "%F", gmtime(&t)); + + string_uc = bg_toupper(bg_app_get_name()); + +-- +2.35.1 + diff -Nru gmerlin-2.0.0~svn6298~dfsg0/debian/patches/series gmerlin-2.0.0~svn6298~dfsg0/debian/patches/series --- gmerlin-2.0.0~svn6298~dfsg0/debian/patches/series 2022-02-12 17:28:32.000000000 +0000 +++ gmerlin-2.0.0~svn6298~dfsg0/debian/patches/series 2022-03-08 14:06:20.000000000 +0000 @@ -1,5 +1,6 @@ fix-spelling.patch format_literal.patch gmerlin-transcoder.patch +reproducible-manpage.patch DEBIAN_strip-doc-out.patch DEBIAN_replace-bg_sem_h.patch