1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
Description: make builds reproducible
Upstream uses current date when creating manpages.
Debian derives the date from the package upload timestamp.
Author: IOhannes m zmölnig
Last-Update: 2016-03-09
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- gmerlin.orig/lib/cmdline.c
+++ gmerlin/lib/cmdline.c
@@ -372,9 +372,13 @@
char ** args;
char * string_uc;
+#ifdef BUILD_DATE
+ strncpy(date_str, BUILD_DATE, 511);
+#else
time(&t);
localtime_r(&t, &brokentime);
strftime(date_str, 511, "%B %Y", &brokentime);
+#endif
string_uc = bg_toupper(app_data->name);
|