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

Jonas Witschel diabonas at archlinux.org
Sat Jul 11 22:08:40 UTC 2020


    Date: Saturday, July 11, 2020 @ 22:08:39
  Author: diabonas
Revision: 663299

upgpkg: libgcrypt15 1.5.6-4: remove unreproducible build timestamp

Backport a patch from libgcrypt >= 1.7.0 to disable embedding the build
timestamp by default since it makes the resulting binary unreproducible.

Modified:
  libgcrypt15/trunk/PKGBUILD

----------+
 PKGBUILD |   17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-11 21:30:31 UTC (rev 663298)
+++ PKGBUILD	2020-07-11 22:08:39 UTC (rev 663299)
@@ -5,7 +5,7 @@
 
 pkgname=libgcrypt15
 pkgver=1.5.6
-pkgrel=3
+pkgrel=4
 pkgdesc='General purpose cryptographic library based on the code from GnuPG'
 arch=('x86_64')
 url='http://www.gnupg.org'
@@ -12,11 +12,22 @@
 license=('LGPL')
 depends=('glibc' 'libgpg-error')
 replaces=('libgcrypt11')
-source=("https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${pkgver}.tar.bz2"{,.sig})
+source=("https://www.gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${pkgver}.tar.bz2"{,.sig}
+        'libgcrypt15-disable-build-timestamp.patch::https://github.com/gpg/libgcrypt/commit/a785cc3db0c4e8eb8ebbf784b833a40d2c42ec3e.patch')
 sha256sums=('301826b5e521c867056fd630aad6f0a60e176d18a017da6bc24b1695df3abe79'
-            'SKIP')
+            'SKIP'
+            'cbf85bb7e62f3d5b9fcf07fb63a6c7c51d1a01cff7af049f36fd06e4e0b8b3cd')
 validpgpkeys=('D8692123C4065DEA5E0F3AB5249B39D24F25E3B6') # Werner Koch
 
+prepare() {
+  cd libgcrypt-${pkgver}
+
+  # Remove unreproducible build timestamp
+  patch -Np1 -i ../libgcrypt15-disable-build-timestamp.patch
+
+  autoreconf -if
+}
+
 build() {
   cd libgcrypt-${pkgver}
 



More information about the arch-commits mailing list