Stéphane Glondu pushed to branch master at Debian OCaml Maintainers / advi
Commits: ddec3dc8 by Stephane Glondu at 2024-08-24T06:50:44+02:00 Use SOURCE_DATE_EPOCH for reproducibility - - - - - e5b7f9f6 by Stephane Glondu at 2024-08-24T06:51:25+02:00 Update changelog and prepare upload to unstable - - - - - 3 changed files: - debian/changelog - + debian/patches/0008-Use-SOURCE_DATE_EPOCH-for-reproducibility.patch - debian/patches/series Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,9 @@ +advi (2.0.0-2) unstable; urgency=medium + + * Use SOURCE_DATE_EPOCH for reproducibility + + -- Stéphane Glondu <[email protected]> Sat, 24 Aug 2024 06:51:17 +0200 + advi (2.0.0-1) unstable; urgency=medium * New upstream release ===================================== debian/patches/0008-Use-SOURCE_DATE_EPOCH-for-reproducibility.patch ===================================== @@ -0,0 +1,57 @@ +From: Stephane Glondu <[email protected]> +Date: Sat, 24 Aug 2024 06:38:52 +0200 +Subject: Use SOURCE_DATE_EPOCH for reproducibility + +Bug-Debian: https://bugs.debian.org/834137 +--- + configure.ac | 5 +++-- + configure.me | 5 +++-- + src/discover.sh | 3 ++- + 3 files changed, 8 insertions(+), 5 deletions(-) + +diff --git a/configure.ac b/configure.ac +index edd38d9..92bbbde 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -1,8 +1,9 @@ + ?i# Process this file with autoconf to produce a configure script. + AC_PREREQ(2.59) + AC_INIT(advi, 1.10.2, [email protected]) +-BUILD_DATE=`date +%Y-%m-%d` +-BUILD_YEAR=`date +%Y` ++: ${SOURCE_DATE_EPOCH:=`date +%s`} ++BUILD_DATE=`date -d@$SOURCE_DATE_EPOCH +%Y-%m-%d` ++BUILD_YEAR=`date -d@$SOURCE_DATE_EPOCH +%Y` + AC_SUBST(BUILD_DATE) + AC_SUBST(BUILD_YEAR) + AM_INIT_AUTOMAKE([foreign]) +diff --git a/configure.me b/configure.me +index 2b056b0..88e54f8 100755 +--- a/configure.me ++++ b/configure.me +@@ -2191,8 +2191,9 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ + ac_compiler_gnu=$ac_cv_c_compiler_gnu + + +-BUILD_DATE=`date +%Y-%m-%d` +-BUILD_YEAR=`date +%Y` ++: ${SOURCE_DATE_EPOCH:=`date +%s`} ++BUILD_DATE=`date -d@$SOURCE_DATE_EPOCH +%Y-%m-%d` ++BUILD_YEAR=`date -d@$SOURCE_DATE_EPOCH +%Y` + + + am__api_version='1.11' +diff --git a/src/discover.sh b/src/discover.sh +index 19b87ff..6676dc6 100644 +--- a/src/discover.sh ++++ b/src/discover.sh +@@ -32,7 +32,8 @@ function error () { + # fi + + +-build_date=$(date +%Y-%m-%d) ++: ${SOURCE_DATE_EPOCH:=$(date +%s)} ++build_date=$(date -d@$SOURCE_DATE_EPOCH +%Y-%m-%d) + + if gs_path=$(which gs) + then have_gs=true ===================================== debian/patches/series ===================================== @@ -5,3 +5,4 @@ examples-scripts safe 0006-Do-not-call-opam-in-discover.sh.patch 0007-Fix-compilation-with-OCaml-5.2.0.patch +0008-Use-SOURCE_DATE_EPOCH-for-reproducibility.patch View it on GitLab: https://salsa.debian.org/ocaml-team/advi/-/compare/365e02fc06f015c2bf7c363b28282bd61df324d1...e5b7f9f6659a2318d3e9c5669c7a509b86eff3ad -- View it on GitLab: https://salsa.debian.org/ocaml-team/advi/-/compare/365e02fc06f015c2bf7c363b28282bd61df324d1...e5b7f9f6659a2318d3e9c5669c7a509b86eff3ad You're receiving this email because of your account on salsa.debian.org.

