[arch-commits] Commit in gnupg/trunk (PKGBUILD req_usage.patch)
Gaëtan Bisson
bisson at archlinux.org
Thu Apr 5 20:34:04 UTC 2018
Date: Thursday, April 5, 2018 @ 20:34:03
Author: bisson
Revision: 320986
fix FS#58120
Added:
gnupg/trunk/req_usage.patch
Modified:
gnupg/trunk/PKGBUILD
-----------------+
PKGBUILD | 11 ++++++++---
req_usage.patch | 12 ++++++++++++
2 files changed, 20 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-04-05 19:14:35 UTC (rev 320985)
+++ PKGBUILD 2018-04-05 20:34:03 UTC (rev 320986)
@@ -6,7 +6,7 @@
pkgname=gnupg
pkgver=2.2.5
-pkgrel=1
+pkgrel=2
pkgdesc='Complete and free implementation of the OpenPGP standard'
url='http://www.gnupg.org/'
license=('GPL')
@@ -22,9 +22,11 @@
'46CC730865BB5C78EBABADCF04376F3EE0856959'
'031EC2536E580D8EA286A9F22071B08A33BD3F06'
'D238EA65D64C67ED4C3073F28A861B1C7EFD60D9')
-source=("https://gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2"{,.sig})
+source=("https://gnupg.org/ftp/gcrypt/${pkgname}/${pkgname}-${pkgver}.tar.bz2"{,.sig}
+ 'req_usage.patch')
sha256sums=('3fa189a32d4fb62147874eb1389047c267d9ba088f57ab521cb0df46f08aef57'
- 'SKIP')
+ 'SKIP'
+ 'f8bef4891c1b9f81f305753dac7780ad4cfd56ec853502ba1d9d6400c69a518e')
install=install
@@ -35,6 +37,9 @@
prepare() {
cd "${srcdir}/${pkgname}-${pkgver}"
sed '/noinst_SCRIPTS = gpg-zip/c sbin_SCRIPTS += gpg-zip' -i tools/Makefile.in
+
+ # See: https://dev.gnupg.org/rGa17d2d1f690ebe5d005b4589a5fe378b6487c657
+ patch -p1 -i ../req_usage.patch
}
build() {
Added: req_usage.patch
===================================================================
--- req_usage.patch (rev 0)
+++ req_usage.patch 2018-04-05 20:34:03 UTC (rev 320986)
@@ -0,0 +1,12 @@
+diff -Naur old/g10/getkey.c new/g10/getkey.c
+--- old/g10/getkey.c 2018-02-21 23:42:42.000000000 -1000
++++ new/g10/getkey.c 2018-04-05 10:15:14.642119429 -1000
+@@ -1810,6 +1810,8 @@
+ ctx.items[0].mode = fprint_len == 16 ? KEYDB_SEARCH_MODE_FPR16
+ : KEYDB_SEARCH_MODE_FPR20;
+ memcpy (ctx.items[0].u.fpr, fprint, fprint_len);
++ if (pk)
++ ctx.req_usage = pk->req_usage;
+ rc = lookup (ctrl, &ctx, 0, &kb, &found_key);
+ if (!rc && pk)
+ pk_from_block (pk, kb, found_key);
More information about the arch-commits
mailing list