pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/libassuan2 Handle _XOPEN_SOURCE correctly on ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a7a280e67279
branches:  trunk
changeset: 362787:a7a280e67279
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Thu May 25 11:49:05 2017 +0000

description:
Handle _XOPEN_SOURCE correctly on SunOS.

diffstat:

 security/libassuan2/distinfo                       |   4 +++-
 security/libassuan2/patches/patch-configure        |  17 +++++++++++++++++
 security/libassuan2/patches/patch-src_assuan-uds.c |  21 +++++++++++++++++++++
 3 files changed, 41 insertions(+), 1 deletions(-)

diffs (59 lines):

diff -r d0e0077154e9 -r a7a280e67279 security/libassuan2/distinfo
--- a/security/libassuan2/distinfo      Thu May 25 10:03:23 2017 +0000
+++ b/security/libassuan2/distinfo      Thu May 25 11:49:05 2017 +0000
@@ -1,6 +1,8 @@
-$NetBSD: distinfo,v 1.10 2016/07/17 07:21:27 wiz Exp $
+$NetBSD: distinfo,v 1.11 2017/05/25 11:49:05 jperkin Exp $
 
 SHA1 (libassuan-2.4.3.tar.bz2) = 27391cf4a820b5350ea789c30661830c9a271518
 RMD160 (libassuan-2.4.3.tar.bz2) = 1e1a28d4beebb5ad9c660957de250e3315eecba2
 SHA512 (libassuan-2.4.3.tar.bz2) = 2b0f58682b408fc58fa0ec2980b36e54ba66701bf504cf6c98ec652af43501bc7c18573bc78c5b83260f5a3bdb0ec8f4e0662bafd9bba3fe7287e77598e8e4c1
 Size (libassuan-2.4.3.tar.bz2) = 559867 bytes
+SHA1 (patch-configure) = 0cb945282bd00a96b66d245f9723fd8d0bc32d8b
+SHA1 (patch-src_assuan-uds.c) = 62d935c5fad5eb5bbc6721f89681b7be724c4916
diff -r d0e0077154e9 -r a7a280e67279 security/libassuan2/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libassuan2/patches/patch-configure       Thu May 25 11:49:05 2017 +0000
@@ -0,0 +1,17 @@
+$NetBSD: patch-configure,v 1.1 2017/05/25 11:49:05 jperkin Exp $
+
+Handle _XOPEN_SOURCE correctly.
+
+--- configure.orig     2016-07-14 08:11:48.000000000 +0000
++++ configure
+@@ -13486,10 +13486,8 @@ case "${host}" in
+         ;;
+     *-solaris*)
+ 
+-$as_echo "#define _XOPEN_SOURCE 500" >>confdefs.h
+ 
+ 
+-$as_echo "#define _XOPEN_SOURCE_EXTENDED 1" >>confdefs.h
+ 
+ 
+ $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
diff -r d0e0077154e9 -r a7a280e67279 security/libassuan2/patches/patch-src_assuan-uds.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/libassuan2/patches/patch-src_assuan-uds.c        Thu May 25 11:49:05 2017 +0000
@@ -0,0 +1,21 @@
+$NetBSD: patch-src_assuan-uds.c,v 1.1 2017/05/25 11:49:05 jperkin Exp $
+
+Handle _XOPEN_SOURCE correctly.
+
+--- src/assuan-uds.c.orig      2016-06-25 14:46:53.000000000 +0000
++++ src/assuan-uds.c
+@@ -21,6 +21,14 @@
+ #include <config.h>
+ #endif
+ 
++#if defined(__sun) && !defined(_XOPEN_SOURCE)
++#  if __STDC_VERSION__ - 0 < 199901L
++#define _XOPEN_SOURCE 500
++#  else
++#define _XOPEN_SOURCE 600
++#  endif
++#endif
++
+ #include <stdlib.h>
+ #include <stddef.h>
+ #include <stdio.h>



Home | Main Index | Thread Index | Old Index