pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/nspr Fix build on OpenBSD 5.4



details:   https://anonhg.NetBSD.org/pkgsrc/rev/73a54bcc5bd3
branches:  trunk
changeset: 626142:73a54bcc5bd3
user:      ryoon <ryoon%pkgsrc.org@localhost>
date:      Sat Nov 02 12:34:14 2013 +0000

description:
Fix build on OpenBSD 5.4

diffstat:

 devel/nspr/Makefile         |   6 +++++-
 devel/nspr/distinfo         |   4 ++--
 devel/nspr/patches/patch-ac |  23 ++++++++++++++++-------
 3 files changed, 23 insertions(+), 10 deletions(-)

diffs (102 lines):

diff -r a54d63b4cdd5 -r 73a54bcc5bd3 devel/nspr/Makefile
--- a/devel/nspr/Makefile       Sat Nov 02 10:30:18 2013 +0000
+++ b/devel/nspr/Makefile       Sat Nov 02 12:34:14 2013 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.64 2013/10/12 13:46:51 ryoon Exp $
+# $NetBSD: Makefile,v 1.65 2013/11/02 12:34:14 ryoon Exp $
 #
 
 DISTNAME=      nspr-${NSPR_RELEASE}
@@ -35,6 +35,10 @@
 SUBST_FILES.nspr-config=       nspr/config/nspr-config.in
 SUBST_SED.nspr-config=         -e 's|-L$$libdir|"${COMPILER_RPATH_FLAG}$$libdir -L$$libdir"|g'
 
+.if ${OPSYS} == "OpenBSD"
+CHECK_SHLIBS_SUPPORTED= no
+.endif
+
 .if ${OPSYS} == "Darwin"
 SUBST_CLASSES+=                        exec_path
 SUBST_STAGE.exec_path=         pre-configure
diff -r a54d63b4cdd5 -r 73a54bcc5bd3 devel/nspr/distinfo
--- a/devel/nspr/distinfo       Sat Nov 02 10:30:18 2013 +0000
+++ b/devel/nspr/distinfo       Sat Nov 02 12:34:14 2013 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.27 2013/10/12 13:46:51 ryoon Exp $
+$NetBSD: distinfo,v 1.28 2013/11/02 12:34:14 ryoon Exp $
 
 SHA1 (nspr-4.10.1.tar.gz) = bd1cdf5e7e107846ffe431c5c62b81a560e8c3f7
 RMD160 (nspr-4.10.1.tar.gz) = 491fecc3a2485a9879a8dddbc4a7b94655555135
 Size (nspr-4.10.1.tar.gz) = 1102858 bytes
 SHA1 (patch-ab) = d93c055bbb12bd9edf5f21138a93898d6b3b3c73
-SHA1 (patch-ac) = 128f721ad93a10b59c2be3c611d510da9dd64fa2
+SHA1 (patch-ac) = 9e25d47e8737355d8c242594329afed485bca44c
 SHA1 (patch-ae) = c6cf30927792140d867bb4dc3adf19786f6cdbe0
 SHA1 (patch-ag) = 653d4bc8cc4eced8f628cfb738c5d99cc1a6cf24
 SHA1 (patch-az) = 9731da9565ae94b4e82bf66f6640e8e5e3a1744e
diff -r a54d63b4cdd5 -r 73a54bcc5bd3 devel/nspr/patches/patch-ac
--- a/devel/nspr/patches/patch-ac       Sat Nov 02 10:30:18 2013 +0000
+++ b/devel/nspr/patches/patch-ac       Sat Nov 02 12:34:14 2013 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ac,v 1.8 2013/07/20 08:57:20 ryoon Exp $
+$NetBSD: patch-ac,v 1.9 2013/11/02 12:34:14 ryoon Exp $
 
---- nsprpub/configure.in.orig  2012-05-31 22:48:19.000000000 +0000
+--- nspr/configure.in.orig     2013-09-18 23:49:51.000000000 +0000
 +++ nspr/configure.in
 @@ -36,7 +36,7 @@ OBJDIR_NAME=.
  OBJDIR_SUFFIX=OBJ
@@ -11,7 +11,7 @@
  LIBPLC='-L$(dist_libdir) -lplc$(MOD_MAJOR_VERSION)'
  CYGWIN_WRAPPER=
  MACOS_SDK_DIR=
-@@ -1519,6 +1519,33 @@ tools are selected during the Xcode/Deve
+@@ -1538,6 +1538,33 @@ tools are selected during the Xcode/Deve
      DSO_LDOPTS='-shared -Wl,-soname -Wl,$(notdir $@)'
      MDCPUCFG_H=_freebsd.cfg
      PR_MD_CSRCS=freebsd.c
@@ -45,7 +45,7 @@
      ;;
  
  *-hpux*)
-@@ -2110,6 +2137,7 @@ mips-nec-sysv*)
+@@ -2088,6 +2115,7 @@ tools are selected during the Xcode/Deve
      AC_DEFINE(XP_UNIX)
      AC_DEFINE(NETBSD)
      AC_DEFINE(HAVE_BSD_FLOCK)
@@ -53,7 +53,16 @@
      if test -z "$USE_NSPR_THREADS"; then
          USE_PTHREADS=1
      fi
-@@ -2918,7 +2946,7 @@ if test -n "$USE_PTHREADS"; then
+@@ -2138,7 +2166,7 @@ tools are selected during the Xcode/Deve
+     AC_DEFINE(HAVE_SOCKLEN_T)
+     CFLAGS="$CFLAGS -ansi -Wall"
+     CXXFLAGS="$CXXFLAGS -ansi -Wall"
+-    DLL_SUFFIX=so.1.0
++    DLL_SUFFIX=so
+     DSO_CFLAGS=-fPIC
+     MDCPUCFG_H=_openbsd.cfg
+     PR_MD_CSRCS=openbsd.c
+@@ -2806,7 +2834,7 @@ if test -n "$USE_PTHREADS"; then
        if test -z "`egrep -i '(unrecognize|unknown)' conftest.out | grep pthread`" && test -z "`egrep -i '(error|incorrect)' conftest.out`" ; then
            ac_cv_have_dash_pthread=yes
                case "$target_os" in
@@ -62,7 +71,7 @@
  # Freebsd doesn't use -pthread for compiles, it uses them for linking
              ;;
            *)
-@@ -2956,7 +2984,7 @@ if test -n "$USE_PTHREADS"; then
+@@ -2844,7 +2872,7 @@ if test -n "$USE_PTHREADS"; then
              _PTHREAD_LDFLAGS=
          fi
            ;;
@@ -71,7 +80,7 @@
            AC_DEFINE(_REENTRANT)
            AC_DEFINE(_THREAD_SAFE)
            dnl -pthread links in -lc_r, so don't specify it explicitly.
-@@ -3037,7 +3065,7 @@ case "$target" in
+@@ -2925,7 +2953,7 @@ case "$target" in
          AC_DEFINE(_PR_NEED_PTHREAD_INIT)
      fi
      ;;



Home | Main Index | Thread Index | Old Index