pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/gcr gcr: Fix building w/o RLIMIT_MEMLOCK. Don...
details: https://anonhg.NetBSD.org/pkgsrc/rev/fc6807f28f30
branches: trunk
changeset: 442038:fc6807f28f30
user: nia <nia%pkgsrc.org@localhost>
date: Tue Nov 17 12:25:16 2020 +0000
description:
gcr: Fix building w/o RLIMIT_MEMLOCK. Don't ./configure twice.
diffstat:
security/gcr/Makefile | 4 +-
security/gcr/distinfo | 3 +-
security/gcr/patches/patch-gcr_test-secure-memory.c | 25 +++++++++++++++++++++
3 files changed, 29 insertions(+), 3 deletions(-)
diffs (59 lines):
diff -r bfd00158f3b8 -r fc6807f28f30 security/gcr/Makefile
--- a/security/gcr/Makefile Tue Nov 17 12:14:57 2020 +0000
+++ b/security/gcr/Makefile Tue Nov 17 12:25:16 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2020/11/07 07:17:07 mef Exp $
+# $NetBSD: Makefile,v 1.13 2020/11/17 12:25:16 nia Exp $
DISTNAME= gcr-3.38.0
CATEGORIES= security
@@ -35,7 +35,7 @@
TEST_TARGET= check
pre-configure:
- cd ${WRKSRC}; \
+ cd ${WRKSRC}; NOCONFIGURE=1 \
./autogen.sh
BUILDLINK_API_DEPENDS.glib2+= glib2>=2.38
diff -r bfd00158f3b8 -r fc6807f28f30 security/gcr/distinfo
--- a/security/gcr/distinfo Tue Nov 17 12:14:57 2020 +0000
+++ b/security/gcr/distinfo Tue Nov 17 12:25:16 2020 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.2 2020/11/07 07:17:07 mef Exp $
+$NetBSD: distinfo,v 1.3 2020/11/17 12:25:16 nia Exp $
SHA1 (gcr-3.38.0.tar.xz) = ec77b51962010555445c84981f30a32f6426323e
RMD160 (gcr-3.38.0.tar.xz) = bfe464c4e7135a1ae753c9c2c93f6b53635f4416
SHA512 (gcr-3.38.0.tar.xz) = 24c35ac514a67a1dee6a5738e829b55921a490b060ffa597421cea0abac3ddc62695370d2c7b3504c0adfd55b1ade878ad3ca5e6cb869428b4a19f4a11563bc6
Size (gcr-3.38.0.tar.xz) = 1029784 bytes
+SHA1 (patch-gcr_test-secure-memory.c) = e8002f64467d001e06c8af28f16b0c1ffe7211ad
diff -r bfd00158f3b8 -r fc6807f28f30 security/gcr/patches/patch-gcr_test-secure-memory.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/security/gcr/patches/patch-gcr_test-secure-memory.c Tue Nov 17 12:25:16 2020 +0000
@@ -0,0 +1,25 @@
+$NetBSD: patch-gcr_test-secure-memory.c,v 1.1 2020/11/17 12:25:16 nia Exp $
+
+Skip test on platforms without RLIMIT_MEMLOCK (illumos).
+
+--- gcr/test-secure-memory.c.orig 2020-09-28 05:33:20.870133200 +0000
++++ gcr/test-secure-memory.c
+@@ -66,6 +66,7 @@ get_rlimit_memlock (void)
+ return 0;
+ }
+
++#ifdef RLIMIT_MEMLOCK
+ if (getrlimit (RLIMIT_MEMLOCK, &memlock) != 0)
+ g_error ("getrlimit() failed: %s", strerror (errno));
+
+@@ -83,6 +84,10 @@ get_rlimit_memlock (void)
+ }
+
+ return memlock.rlim_cur;
++#else
++ g_test_skip ("platform lacks RLIMIT_MEMLOCK");
++ return 0;
++#endif
+ }
+
+ static void
Home |
Main Index |
Thread Index |
Old Index