[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[Git][ocaml-team/advi][master] 2 commits: Use SOURCE_DATE_EPOCH for reproducibility



Title: GitLab

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:

Changes:

  • debian/changelog
    1
    +advi (2.0.0-2) unstable; urgency=medium
    
    2
    +
    
    3
    +  * Use SOURCE_DATE_EPOCH for reproducibility
    
    4
    +
    
    5
    + -- Stéphane Glondu <glondu@debian.org>  Sat, 24 Aug 2024 06:51:17 +0200
    
    6
    +
    
    1 7
     advi (2.0.0-1) unstable; urgency=medium
    
    2 8
     
    
    3 9
       * New upstream release
    

  • debian/patches/0008-Use-SOURCE_DATE_EPOCH-for-reproducibility.patch
    1
    +From: Stephane Glondu <steph@glondu.net>
    
    2
    +Date: Sat, 24 Aug 2024 06:38:52 +0200
    
    3
    +Subject: Use SOURCE_DATE_EPOCH for reproducibility
    
    4
    +
    
    5
    +Bug-Debian: https://bugs.debian.org/834137
    
    6
    +---
    
    7
    + configure.ac    | 5 +++--
    
    8
    + configure.me    | 5 +++--
    
    9
    + src/discover.sh | 3 ++-
    
    10
    + 3 files changed, 8 insertions(+), 5 deletions(-)
    
    11
    +
    
    12
    +diff --git a/configure.ac b/configure.ac
    
    13
    +index edd38d9..92bbbde 100644
    
    14
    +--- a/configure.ac
    
    15
    ++++ b/configure.ac
    
    16
    +@@ -1,8 +1,9 @@
    
    17
    + ?i# Process this file with autoconf to produce a configure script.
    
    18
    + AC_PREREQ(2.59)
    
    19
    + AC_INIT(advi, 1.10.2, Didier.Remy@inria.fr)
    
    20
    +-BUILD_DATE=`date +%Y-%m-%d`
    
    21
    +-BUILD_YEAR=`date +%Y`
    
    22
    ++: ${SOURCE_DATE_EPOCH:=`date +%s`}
    
    23
    ++BUILD_DATE=`date -d@$SOURCE_DATE_EPOCH +%Y-%m-%d`
    
    24
    ++BUILD_YEAR=`date -d@$SOURCE_DATE_EPOCH +%Y`
    
    25
    + AC_SUBST(BUILD_DATE)
    
    26
    + AC_SUBST(BUILD_YEAR)
    
    27
    + AM_INIT_AUTOMAKE([foreign])
    
    28
    +diff --git a/configure.me b/configure.me
    
    29
    +index 2b056b0..88e54f8 100755
    
    30
    +--- a/configure.me
    
    31
    ++++ b/configure.me
    
    32
    +@@ -2191,8 +2191,9 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $
    
    33
    + ac_compiler_gnu=$ac_cv_c_compiler_gnu
    
    34
    + 
    
    35
    + 
    
    36
    +-BUILD_DATE=`date +%Y-%m-%d`
    
    37
    +-BUILD_YEAR=`date +%Y`
    
    38
    ++: ${SOURCE_DATE_EPOCH:=`date +%s`}
    
    39
    ++BUILD_DATE=`date -d@$SOURCE_DATE_EPOCH +%Y-%m-%d`
    
    40
    ++BUILD_YEAR=`date -d@$SOURCE_DATE_EPOCH +%Y`
    
    41
    + 
    
    42
    + 
    
    43
    + am__api_version='1.11'
    
    44
    +diff --git a/src/discover.sh b/src/discover.sh
    
    45
    +index 19b87ff..6676dc6 100644
    
    46
    +--- a/src/discover.sh
    
    47
    ++++ b/src/discover.sh
    
    48
    +@@ -32,7 +32,8 @@ function error () {
    
    49
    + # fi    
    
    50
    + 
    
    51
    + 
    
    52
    +-build_date=$(date +%Y-%m-%d)
    
    53
    ++: ${SOURCE_DATE_EPOCH:=$(date +%s)}
    
    54
    ++build_date=$(date -d@$SOURCE_DATE_EPOCH +%Y-%m-%d)
    
    55
    + 
    
    56
    + if gs_path=$(which gs)
    
    57
    + then have_gs=true

  • debian/patches/series
    ... ... @@ -5,3 +5,4 @@ examples-scripts
    5 5
     safe
    
    6 6
     0006-Do-not-call-opam-in-discover.sh.patch
    
    7 7
     0007-Fix-compilation-with-OCaml-5.2.0.patch
    
    8
    +0008-Use-SOURCE_DATE_EPOCH-for-reproducibility.patch


  • Reply to: