pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/security/lasso lasso: _XOPEN_SOURCE and _POSIX_C_SOURC...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/479d0aeee669
branches:  trunk
changeset: 383454:479d0aeee669
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Jul 31 12:39:34 2018 +0000

description:
lasso: _XOPEN_SOURCE and _POSIX_C_SOURCE fixes.

diffstat:

 security/lasso/Makefile.common                 |   4 +++-
 security/lasso/distinfo                        |   5 +++--
 security/lasso/patches/patch-configure         |  15 ++-------------
 security/lasso/patches/patch-lasso_xml_tools.c |  16 ++++++++++++++++
 4 files changed, 24 insertions(+), 16 deletions(-)

diffs (80 lines):

diff -r 08caebdc443d -r 479d0aeee669 security/lasso/Makefile.common
--- a/security/lasso/Makefile.common    Tue Jul 31 12:35:03 2018 +0000
+++ b/security/lasso/Makefile.common    Tue Jul 31 12:39:34 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.12 2016/03/14 09:43:42 manu Exp $
+# $NetBSD: Makefile.common,v 1.13 2018/07/31 12:39:34 jperkin Exp $
 #
 # used by security/lasso/Makefile
 # used by security/py-lasso/Makefile
@@ -21,6 +21,8 @@
 USE_LIBTOOL=   yes
 USE_TOOLS+=    pkg-config perl
 
+CFLAGS.NetBSD+=        -D_POSIX_C_SOURCE=199506
+
 PKGCONFIG_OVERRIDE+=   lasso.pc.in
 
 DEPENDS+=                      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
diff -r 08caebdc443d -r 479d0aeee669 security/lasso/distinfo
--- a/security/lasso/distinfo   Tue Jul 31 12:35:03 2018 +0000
+++ b/security/lasso/distinfo   Tue Jul 31 12:39:34 2018 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.23 2018/05/31 07:33:27 wiz Exp $
+$NetBSD: distinfo,v 1.24 2018/07/31 12:39:34 jperkin Exp $
 
 SHA1 (lasso-2.5.1.tar.gz) = fe0e68010bab6e11383003b5cf869c0447ed7a6e
 RMD160 (lasso-2.5.1.tar.gz) = 8cc0506fe8cbac770e952fdb0f067c7e58f5bb43
 SHA512 (lasso-2.5.1.tar.gz) = f20bea62c04f3082d5c423f658bafe1bdde0012321c43092ed5d5a2c3ec7b21ec27d88d9fc630743fd7c99e767d9fd92b98de5d4f7d98c3a9e680717483daae1
 Size (lasso-2.5.1.tar.gz) = 4552152 bytes
 SHA1 (patch-18771) = 66897d88283c28557eb4a58507db48a42df93b5d
-SHA1 (patch-configure) = fe5650cfe939d8c4de66d185c36936840958e5d1
+SHA1 (patch-configure) = aa34dcb7a86b6ece774fb230ac092bdd7d8e278c
+SHA1 (patch-lasso_xml_tools.c) = 0172915c1654192e3d1eebf89d57d29dd61cef38
diff -r 08caebdc443d -r 479d0aeee669 security/lasso/patches/patch-configure
--- a/security/lasso/patches/patch-configure    Tue Jul 31 12:35:03 2018 +0000
+++ b/security/lasso/patches/patch-configure    Tue Jul 31 12:39:34 2018 +0000
@@ -1,9 +1,6 @@
-$NetBSD: patch-configure,v 1.3 2017/12/18 15:33:59 jperkin Exp $
+$NetBSD: patch-configure,v 1.4 2018/07/31 12:39:34 jperkin Exp $
 
-Make sure _POSIX_C_SOURCE=199506 so that strtok() is defined by <string.h>
-Otherwise, compiler assumes it returns an int, which badly breaks on LP64
-
-Also use = instead of == for test(1) portability sake.
+Use = instead of == for test(1) portability sake.
 
 --- configure.orig     2016-02-18 23:11:38.249290059 +0000
 +++ configure
@@ -26,11 +23,3 @@
      JNI_EXTRA_LDFLAGS="-shrext .jnilib"
  fi
  
-@@ -15650,6 +15647,7 @@ fi
- 
- 
- LASSO_PUB_CFLAGS="$LASSO_DEFINES"
-+LASSO_CFLAGS="$LASSO_CFLAGS -D_POSIX_C_SOURCE=199506"
- LASSO_CORE_CFLAGS="$LASSO_CFLAGS $LASSO_DEFINES $Z_CFLAGS -DLASSO_INTERNALS"
- if test $MINGW -eq 1; then
-   LASSO_CORE_LIBS="-llasso-0"
diff -r 08caebdc443d -r 479d0aeee669 security/lasso/patches/patch-lasso_xml_tools.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/security/lasso/patches/patch-lasso_xml_tools.c    Tue Jul 31 12:39:34 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-lasso_xml_tools.c,v 1.1 2018/07/31 12:39:34 jperkin Exp $
+
+Set _XOPEN_SOURCE correctly.
+
+--- lasso/xml/tools.c.orig     2016-02-18 23:11:15.312239445 +0000
++++ lasso/xml/tools.c
+@@ -28,7 +28,9 @@
+  */
+ #define _DEFAULT_SOURCE
+ /* permit importation of strptime for glibc2 */
++#if !defined(__sun)
+ #define _XOPEN_SOURCE
++#endif
+ /* permit importation of timegm for glibc2, wait for people to complain it does not work on their
+  * system. */
+ #define _BSD_SOURCE



Home | Main Index | Thread Index | Old Index