pkgsrc-Changes archive

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

CVS commit: pkgsrc/security/gnupg2



Module Name:    pkgsrc
Committed By:   schmonz
Date:           Tue Aug 18 09:39:23 UTC 2020

Modified Files:
        pkgsrc/security/gnupg2: Makefile distinfo
Added Files:
        pkgsrc/security/gnupg2/patches: patch-common_sysutils.c

Log Message:
Provide a definition of IN_EXCL_UNLINK for Linux < 2.6.36, and link with -lrt.
Fixes build on CentOS 6. Still builds on CentOS 7, Debian 9 and 10, Devuan 3.


To generate a diff of this commit:
cvs rdiff -u -r1.115 -r1.116 pkgsrc/security/gnupg2/Makefile
cvs rdiff -u -r1.61 -r1.62 pkgsrc/security/gnupg2/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/security/gnupg2/patches/patch-common_sysutils.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/gnupg2/Makefile
diff -u pkgsrc/security/gnupg2/Makefile:1.115 pkgsrc/security/gnupg2/Makefile:1.116
--- pkgsrc/security/gnupg2/Makefile:1.115       Fri Jul 24 10:47:45 2020
+++ pkgsrc/security/gnupg2/Makefile     Tue Aug 18 09:39:23 2020
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.115 2020/07/24 10:47:45 adam Exp $
+# $NetBSD: Makefile,v 1.116 2020/08/18 09:39:23 schmonz Exp $
 
 DISTNAME=      gnupg-2.2.21
 PKGNAME=       ${DISTNAME:S/gnupg-/gnupg2-/}
@@ -37,6 +37,7 @@ LDFLAGS.NetBSD+=      -lintl
 LDFLAGS.Darwin+=       -lintl -lresolv
 LDFLAGS.FreeBSD+=      -lintl
 LDFLAGS.SunOS+=                -lintl -lsocket
+LDFLAGS.Linux+=                -lrt
 
 .include "options.mk"
 

Index: pkgsrc/security/gnupg2/distinfo
diff -u pkgsrc/security/gnupg2/distinfo:1.61 pkgsrc/security/gnupg2/distinfo:1.62
--- pkgsrc/security/gnupg2/distinfo:1.61        Fri Jul 24 10:47:45 2020
+++ pkgsrc/security/gnupg2/distinfo     Tue Aug 18 09:39:23 2020
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.61 2020/07/24 10:47:45 adam Exp $
+$NetBSD: distinfo,v 1.62 2020/08/18 09:39:23 schmonz Exp $
 
 SHA1 (gnupg-2.2.21.tar.bz2) = 4af4c6fe5f9dd7d866243f715b32775500468943
 RMD160 (gnupg-2.2.21.tar.bz2) = f76d952e0d7a18b9a3c4bad6ba077c85defbb8c2
 SHA512 (gnupg-2.2.21.tar.bz2) = b4eac75253d4a1cac341c8a1ba7bb275e849a88d5377035497777c7bcd49b5a4c91b77000311695eb7d4083856975b2b2d14518f24ab94846027280bd8c301f9
 Size (gnupg-2.2.21.tar.bz2) = 6813160 bytes
+SHA1 (patch-common_sysutils.c) = 569c12e21172c1521284922244b2f4f361c945d6

Added files:

Index: pkgsrc/security/gnupg2/patches/patch-common_sysutils.c
diff -u /dev/null pkgsrc/security/gnupg2/patches/patch-common_sysutils.c:1.1
--- /dev/null   Tue Aug 18 09:39:23 2020
+++ pkgsrc/security/gnupg2/patches/patch-common_sysutils.c      Tue Aug 18 09:39:23 2020
@@ -0,0 +1,17 @@
+$NetBSD: patch-common_sysutils.c,v 1.1 2020/08/18 09:39:23 schmonz Exp $
+
+Provide a definition of IN_EXCL_UNLINK for Linux < 2.6.36.
+From https://github.com/gpg/gnupg/pull/2
+
+--- common/sysutils.c.orig     2018-10-22 17:26:18.000000000 +0000
++++ common/sysutils.c
+@@ -68,6 +68,9 @@
+ #endif
+ #ifdef HAVE_INOTIFY_INIT
+ # include <sys/inotify.h>
++# ifndef IN_EXCL_UNLINK
++#  define IN_EXCL_UNLINK 0x04000000
++# endif
+ #endif /*HAVE_INOTIFY_INIT*/
+ #ifdef HAVE_NPTH
+ # include <npth.h>



Home | Main Index | Thread Index | Old Index