pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: [pkgsrc-2018Q1] pkgsrc/security/libgpg-error
Module Name: pkgsrc
Committed By: bsiegert
Date: Wed Apr 11 11:50:11 UTC 2018
Modified Files:
pkgsrc/security/libgpg-error [pkgsrc-2018Q1]: Makefile distinfo
Added Files:
pkgsrc/security/libgpg-error/patches [pkgsrc-2018Q1]:
patch-src_logging.c
Log Message:
Pullup ticket #5737 - requested by maya
security/libgpg-error: ARM build fix
Revisions pulled up:
- security/libgpg-error/Makefile 1.61
- security/libgpg-error/distinfo 1.36
- security/libgpg-error/patches/patch-src_logging.c 1.1
---
Module Name: pkgsrc
Committed By: maya
Date: Wed Apr 11 08:29:24 UTC 2018
Modified Files:
pkgsrc/security/libgpg-error: Makefile distinfo
Added Files:
pkgsrc/security/libgpg-error/patches: patch-src_logging.c
Log Message:
libgpg-error: Fix build error on ARM via upstream patch.
PR pkg/53106, upstream fix noted by Matthias Peterman.
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.59 -r1.59.2.1 pkgsrc/security/libgpg-error/Makefile
cvs rdiff -u -r1.35 -r1.35.2.1 pkgsrc/security/libgpg-error/distinfo
cvs rdiff -u -r0 -r1.1.2.2 \
pkgsrc/security/libgpg-error/patches/patch-src_logging.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/security/libgpg-error/Makefile
diff -u pkgsrc/security/libgpg-error/Makefile:1.59 pkgsrc/security/libgpg-error/Makefile:1.59.2.1
--- pkgsrc/security/libgpg-error/Makefile:1.59 Tue Mar 20 12:39:28 2018
+++ pkgsrc/security/libgpg-error/Makefile Wed Apr 11 11:50:11 2018
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.59 2018/03/20 12:39:28 wiz Exp $
+# $NetBSD: Makefile,v 1.59.2.1 2018/04/11 11:50:11 bsiegert Exp $
DISTNAME= libgpg-error-1.28
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= security
MASTER_SITES= ftp://ftp.gnupg.org/gcrypt/libgpg-error/
MASTER_SITES+= ftp://ftp.ring.gr.jp/pub/net/gnupg/libgpg-error/
Index: pkgsrc/security/libgpg-error/distinfo
diff -u pkgsrc/security/libgpg-error/distinfo:1.35 pkgsrc/security/libgpg-error/distinfo:1.35.2.1
--- pkgsrc/security/libgpg-error/distinfo:1.35 Tue Mar 20 12:39:28 2018
+++ pkgsrc/security/libgpg-error/distinfo Wed Apr 11 11:50:11 2018
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.35 2018/03/20 12:39:28 wiz Exp $
+$NetBSD: distinfo,v 1.35.2.1 2018/04/11 11:50:11 bsiegert Exp $
SHA1 (libgpg-error-1.28.tar.bz2) = 2b9baae264f3e82ebe00dcd10bae3f2d64232c10
RMD160 (libgpg-error-1.28.tar.bz2) = 2ed66ada89612822ba3f639dd957892646fe81cd
@@ -7,3 +7,4 @@ Size (libgpg-error-1.28.tar.bz2) = 86256
SHA1 (patch-doc_Makefile.in) = 39695ac1dc4601445f335979f3db0c8c2b53a095
SHA1 (patch-src_estream.c) = 0502a55403062abeab22c83a6d919c57ff1c5d82
SHA1 (patch-src_gpg-error-config.in) = e22e99208192971f8c123d7ee9b22c5f615669e1
+SHA1 (patch-src_logging.c) = ea8fa46844a40fdde57ac26c43ec8d011c4a75b5
Added files:
Index: pkgsrc/security/libgpg-error/patches/patch-src_logging.c
diff -u /dev/null pkgsrc/security/libgpg-error/patches/patch-src_logging.c:1.1.2.2
--- /dev/null Wed Apr 11 11:50:11 2018
+++ pkgsrc/security/libgpg-error/patches/patch-src_logging.c Wed Apr 11 11:50:11 2018
@@ -0,0 +1,35 @@
+$NetBSD: patch-src_logging.c,v 1.1.2.2 2018/04/11 11:50:11 bsiegert Exp $
+
+From: Werner Koch <wk%gnupg.org@localhost>
+Date: Sun, 18 Mar 2018 16:39:43 +0000 (+0100)
+Subject: core: Fix regression on arm64 due to invalid use of va_list.
+
+* src/logging.c (_gpgrt_log_printhex): Provide a dummy arg instead of
+NULL.
+--
+
+Fix
+Suggested-by: Jakub Wilk <jwilk%jwilk.net@localhost>
+
+Signed-off-by: Werner Koch <wk%gnupg.org@localhost>
+
+--- src/logging.c.orig 2017-12-08 12:22:41.000000000 +0000
++++ src/logging.c
+@@ -1150,7 +1150,16 @@ _gpgrt_log_printhex (const void *buffer,
+ va_end (arg_ptr);
+ }
+ else
+- _gpgrt_logv_printhex (buffer, length, NULL, NULL);
++ {
++ /* va_list is not necessary a pointer and thus we can't use NULL
++ * because that would conflict with platforms using a straight
++ * struct for it (e.g. arm64). We use a dummy variable instead;
++ * the static is a simple way zero it out so to not get
++ * complains about uninitialized use. */
++ static va_list dummy_argptr;
++
++ _gpgrt_logv_printhex (buffer, length, NULL, dummy_argptr);
++ }
+ }
+
+
Home |
Main Index |
Thread Index |
Old Index