This is an automated email from the git hooks/post-receive script. satta pushed a commit to branch master in repository infernal.
commit 5c8e52f5cda08010b29d036eae8708974d95549c Author: Sascha Steinbiss <[email protected]> Date: Sat Aug 6 01:06:45 2016 +0000 make build reproducible --- debian/changelog | 3 ++- debian/patches/reproducible.patch | 28 ++++++++++++++++++++++++++++ debian/patches/series | 1 + 3 files changed, 31 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index ba8ef95..9efdbdf 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ -infernal (1.1.2-1) UNRELEASED; urgency=medium +infernal (1.1.2-1) unstable; urgency=medium * Team upload. * New upstream release. * Fix watchfile. + * Make build reproducible. -- Sascha Steinbiss <[email protected]> Sat, 06 Aug 2016 00:00:56 +0000 diff --git a/debian/patches/reproducible.patch b/debian/patches/reproducible.patch new file mode 100644 index 0000000..00eef7d --- /dev/null +++ b/debian/patches/reproducible.patch @@ -0,0 +1,28 @@ +Description: make build reproducible + Make Infernal build reproducible by adding support for + SOURCE_DATE_EPOCH to the CM creation code. +Author: Sascha Steinbiss <[email protected]> +--- a/src/cm.c ++++ b/src/cm.c +@@ -2854,12 +2854,17 @@ + int + cm_SetCtime(CM_t *cm) + { +- char *s = NULL; +- time_t date; +- int status; ++ char *s = NULL; ++ time_t date; ++ int status; ++ const char *sde = getenv("SOURCE_DATE_EPOCH"); + + ESL_ALLOC(s, 32); +- if ((date = time(NULL)) == -1) { status = eslESYS; goto ERROR; } ++ if (sde) { ++ date = strtoul(sde, NULL, 0); ++ } else { ++ if ((date = time(NULL)) == -1) { status = eslESYS; goto ERROR; } ++ } + if (ctime_r(&date, s) == NULL) { status = eslESYS; goto ERROR; } + if ((status = esl_strchop(s, -1)) != eslOK) { goto ERROR; } + diff --git a/debian/patches/series b/debian/patches/series index b6be81d..5afb1d5 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -1 +1,2 @@ #format_security.patch +reproducible.patch -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/infernal.git _______________________________________________ debian-med-commit mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debian-med-commit
