Hello community, here is the log from the commit of package gettext-runtime for openSUSE:Factory checked in at 2019-06-12 13:06:26 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/gettext-runtime (Old) and /work/SRC/openSUSE:Factory/.gettext-runtime.new.4811 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "gettext-runtime" Wed Jun 12 13:06:26 2019 rev:79 rq:706696 version:0.19.8.1 Changes: -------- gettext-java.changes: same change --- /work/SRC/openSUSE:Factory/gettext-runtime/gettext-runtime-mini.changes 2019-03-08 12:00:49.143960813 +0100 +++ /work/SRC/openSUSE:Factory/.gettext-runtime.new.4811/gettext-runtime-mini.changes 2019-06-12 13:06:28.281179231 +0200 @@ -1,0 +2,6 @@ +Sat May 25 11:53:33 UTC 2019 - Marcus Meissner <[email protected]> + +- reproducible.patch: generate timestamp in .pot files from SOURCE_DATE_EPOCH + for reproducible builds + +------------------------------------------------------------------- gettext-runtime.changes: same change ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ gettext-csharp.spec ++++++ --- /var/tmp/diff_new_pack.j3k4sc/_old 2019-06-12 13:06:29.265178818 +0200 +++ /var/tmp/diff_new_pack.j3k4sc/_new 2019-06-12 13:06:29.265178818 +0200 @@ -1,7 +1,7 @@ # # spec file for package gettext-csharp # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed gettext-java.spec: same change ++++++ gettext-runtime-mini.spec ++++++ --- /var/tmp/diff_new_pack.j3k4sc/_old 2019-06-12 13:06:29.301178803 +0200 +++ /var/tmp/diff_new_pack.j3k4sc/_new 2019-06-12 13:06:29.301178803 +0200 @@ -1,7 +1,7 @@ # -# spec file for package gettext-runtime +# spec file for package gettext-runtime-mini # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed ++++++ gettext-runtime.spec ++++++ --- /var/tmp/diff_new_pack.j3k4sc/_old 2019-06-12 13:06:29.313178798 +0200 +++ /var/tmp/diff_new_pack.j3k4sc/_new 2019-06-12 13:06:29.317178796 +0200 @@ -1,7 +1,7 @@ # # spec file for package gettext-runtime # -# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed ++++++ reproducible.patch ++++++ --- /var/tmp/diff_new_pack.j3k4sc/_old 2019-06-12 13:06:29.409178757 +0200 +++ /var/tmp/diff_new_pack.j3k4sc/_new 2019-06-12 13:06:29.409178757 +0200 @@ -26,3 +26,50 @@ (my $program = $ARGV[0]) =~ s!.*/!!; my $package = $program; my $version; +Index: gettext-0.19.8.1/gettext-tools/src/xgettext.c +=================================================================== +--- gettext-0.19.8.1.orig/gettext-tools/src/xgettext.c ++++ gettext-0.19.8.1/gettext-tools/src/xgettext.c +@@ -3714,6 +3714,9 @@ construct_header () + char *msgstr; + char *comment; + static lex_pos_ty pos = { __FILE__, __LINE__ }; ++ char *source_date_epoch; ++ unsigned long long epoch; ++ char *endptr; + + if (package_name != NULL) + { +@@ -3734,7 +3738,31 @@ the MSGID_BUGS_ADDRESS variable there; o + specify an --msgid-bugs-address command line option.\n\ + "))); + +- time (&now); ++ source_date_epoch = getenv("SOURCE_DATE_EPOCH"); ++ if (source_date_epoch) { ++ errno = 0; ++ epoch = strtoull(source_date_epoch, &endptr, 10); ++ if ((errno == ERANGE && (epoch == ULLONG_MAX || epoch == 0)) ++ || (errno != 0 && epoch == 0)) { ++ fprintf(stderr, "Environment variable $SOURCE_DATE_EPOCH: strtoull: %s\n", strerror(errno)); ++ exit(EXIT_FAILURE); ++ } ++ if (endptr == source_date_epoch) { ++ fprintf(stderr, "Environment variable $SOURCE_DATE_EPOCH: No digits were found: %s\n", endptr); ++ exit(EXIT_FAILURE); ++ } ++ if (*endptr != '\0') { ++ fprintf(stderr, "Environment variable $SOURCE_DATE_EPOCH: Trailing garbage: %s\n", endptr); ++ exit(EXIT_FAILURE); ++ } ++ if (epoch > ULONG_MAX) { ++ fprintf(stderr, "Environment variable $SOURCE_DATE_EPOCH: value must be smaller than or equal to %lu but was found to be: %llu \n", ULONG_MAX, epoch); ++ exit(EXIT_FAILURE); ++ } ++ now = epoch; ++ } else { ++ now = time(NULL); ++ } + timestring = po_strftime (&now); + + msgstr = xasprintf ("\
