pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/p11-kit p11-kit: Hide getauxval(). PR pkg/533...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/50568fcb6f12
branches:  trunk
changeset: 384729:50568fcb6f12
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Sep 02 07:49:51 2018 +0000

description:
p11-kit: Hide getauxval(). PR pkg/53387 (related to port-arm/53386)

diffstat:

 security/p11-kit/Makefile                      |   3 ++-
 security/p11-kit/distinfo                      |   4 ++--
 security/p11-kit/patches/patch-common_compat.c |  22 +++++++++++++++++-----
 3 files changed, 21 insertions(+), 8 deletions(-)

diffs (65 lines):

diff -r e7f6cbf93ecf -r 50568fcb6f12 security/p11-kit/Makefile
--- a/security/p11-kit/Makefile Sun Sep 02 07:37:10 2018 +0000
+++ b/security/p11-kit/Makefile Sun Sep 02 07:49:51 2018 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.10 2018/08/19 05:00:41 wiz Exp $
+# $NetBSD: Makefile,v 1.11 2018/09/02 07:49:51 tnn Exp $
 
 DISTNAME=      p11-kit-0.23.13
+PKGREVISION=   1
 CATEGORIES=    security
 #MASTER_SITES= http://p11-glue.freedesktop.org/releases/
 MASTER_SITES+= ${MASTER_SITE_GITHUB:=p11-glue/}
diff -r e7f6cbf93ecf -r 50568fcb6f12 security/p11-kit/distinfo
--- a/security/p11-kit/distinfo Sun Sep 02 07:37:10 2018 +0000
+++ b/security/p11-kit/distinfo Sun Sep 02 07:49:51 2018 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.7 2018/08/19 05:00:41 wiz Exp $
+$NetBSD: distinfo,v 1.8 2018/09/02 07:49:51 tnn Exp $
 
 SHA1 (p11-kit-0.23.13.tar.gz) = 783fb69fabbc0fbc6569a3350f4bc553d95ecf2b
 RMD160 (p11-kit-0.23.13.tar.gz) = f7e9a7987dcec4a0fb96c01e3010aca61659f16c
 SHA512 (p11-kit-0.23.13.tar.gz) = bdf97867250fec20cf7e813bfe4ecee9d613ee0cf245fe5e97c0bc99446fa61e616756ce2785ae98cfd4fe55276ad6070828e1ef8ad154fac0e741ceb038a9c7
 Size (p11-kit-0.23.13.tar.gz) = 1264090 bytes
 SHA1 (patch-Makefile.in) = c7f26205c09537593a49dea33c05e1fd29e9dbc3
-SHA1 (patch-common_compat.c) = a0a41c6f95e1d6e70c058f42f7c55ce0eeaf4f43
+SHA1 (patch-common_compat.c) = 74d0bac6cbaabb4260ce512925d611d5d399a34f
diff -r e7f6cbf93ecf -r 50568fcb6f12 security/p11-kit/patches/patch-common_compat.c
--- a/security/p11-kit/patches/patch-common_compat.c    Sun Sep 02 07:37:10 2018 +0000
+++ b/security/p11-kit/patches/patch-common_compat.c    Sun Sep 02 07:49:51 2018 +0000
@@ -1,10 +1,22 @@
-$NetBSD: patch-common_compat.c,v 1.1 2018/08/01 19:18:19 jperkin Exp $
+$NetBSD: patch-common_compat.c,v 1.2 2018/09/02 07:49:51 tnn Exp $
 
-Avoid /proc section on Darwin.
+- Hide getauxval() symbol because the implementation is incomplete
+  and breaks for example openssl on NetBSD/evbarm
+- Avoid /proc section on Darwin.
 
---- common/compat.c.orig       2018-05-30 13:40:36.000000000 +0000
+--- common/compat.c.orig       2018-08-10 09:54:46.000000000 +0000
 +++ common/compat.c
-@@ -910,6 +910,7 @@ fdwalk (int (* cb) (void *data, int fd),
+@@ -791,6 +791,9 @@ mkdtemp (char *template)
+ #ifndef HAVE_GETAUXVAL
+ 
+ unsigned long
++#if defined(__GNUC__) || defined(__clang__)
++__attribute__((visibility("hidden")))
++#endif
+ getauxval (unsigned long type)
+ {
+       static unsigned long secure = 0UL;
+@@ -912,6 +915,7 @@ fdwalk (int (* cb) (void *data, int fd),
        struct rlimit rl;
  #endif
  
@@ -12,7 +24,7 @@
        dir = opendir ("/proc/self/fd");
        if (dir != NULL) {
                while ((de = readdir (dir)) != NULL) {
-@@ -932,6 +933,7 @@ fdwalk (int (* cb) (void *data, int fd),
+@@ -934,6 +938,7 @@ fdwalk (int (* cb) (void *data, int fd),
                closedir (dir);
                return res;
        }



Home | Main Index | Thread Index | Old Index