[arch-commits] Commit in perl/trunk (PKGBUILD)

Levente Polyak anthraxx at gemini.archlinux.org
Sat Nov 13 21:04:18 UTC 2021


    Date: Saturday, November 13, 2021 @ 21:04:18
  Author: anthraxx
Revision: 428377

upgpkg: perl 5.34.0-3: set mtime of patchlevel.h for reproducible builds

$patchlevel_date in perlbug is determined by looking at patchlevel.h mtime.
In order to make Perl builds reproducible, we thus set this value to
SOURCE_DATE_EPOCH.

Modified:
  perl/trunk/PKGBUILD

----------+
 PKGBUILD |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-11-13 20:47:12 UTC (rev 428376)
+++ PKGBUILD	2021-11-13 21:04:18 UTC (rev 428377)
@@ -7,7 +7,7 @@
 pkgname=perl
 pkgver=5.34.0
 _baseversion="${pkgver%.*}"
-pkgrel=2
+pkgrel=3
 pkgdesc="A highly capable, feature-rich programming language"
 arch=(x86_64)
 license=('GPL' 'PerlArtistic')
@@ -154,6 +154,9 @@
   cd "${srcdir}/${pkgname}-${pkgver}"
 
   patch -p1 -i "$srcdir/perl-18924.patch"
+
+  # reproducible patchlevel_date
+  [ -n "${SOURCE_DATE_EPOCH}" ] && touch -h -d @$SOURCE_DATE_EPOCH patchlevel.h
 }
 
 build() {



More information about the arch-commits mailing list