Source: ario Version: 1.5.1-1.3 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 ario could not be built reproducibly. It embeds the current year into the binary. The attached patch replaces it with a static value. 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..9377027 --- /dev/null +++ b/debian/patches/reproducible-build.patch @@ -0,0 +1,26 @@ +Author: Reiner Herrmann <[email protected]> +Description: Replace current year with static value to get reproducible build + +--- a/src/Makefile.am ++++ b/src/Makefile.am +@@ -214,8 +214,7 @@ + -DDATA_PATH=\""$(pkgdatadir)/data/"\"\ + -DUI_PATH=\""$(pkgdatadir)/ui/"\"\ + -DARIO_PLUGIN_DIR=\"$(PLUGINDIR)\"\ +- -DARIO_PLUGIN_DATA_DIR=\"$(PLUGIN_DATA_DIR)\"\ +- -DCURRENT_DATE="\"`date +%G`\"" ++ -DARIO_PLUGIN_DATA_DIR=\"$(PLUGIN_DATA_DIR)\" + + if MPD_GLIB + AM_CPPFLAGS += -DMPD_GLIB +--- a/src/shell/ario-shell.c ++++ b/src/shell/ario-shell.c +@@ -821,7 +821,7 @@ + "name", "Ario", + "program-name", "Ario", + "version", PACKAGE_VERSION, +- "copyright", "Copyright \xc2\xa9 2005-" CURRENT_DATE " Marc Pavot", ++ "copyright", "Copyright \xc2\xa9 2005-2011 Marc Pavot", + "comments", _("GTK client for MPD"), + "translator-credits", _("translator-credits"), + "authors", (const char **) authors, diff --git a/debian/patches/series b/debian/patches/series index 7e66345..60ef58f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ glib-single-include.patch +reproducible-build.patch

