pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/bind911 bind911: Fix build on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/30acd208eb8f
branches:  trunk
changeset: 386612:30acd208eb8f
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Oct 24 11:27:28 2018 +0000

description:
bind911: Fix build on SunOS.

diffstat:

 net/bind911/distinfo                |   4 ++--
 net/bind911/options.mk              |   4 +++-
 net/bind911/patches/patch-configure |  25 ++++++++++++++++---------
 3 files changed, 21 insertions(+), 12 deletions(-)

diffs (109 lines):

diff -r 38d2d603d302 -r 30acd208eb8f net/bind911/distinfo
--- a/net/bind911/distinfo      Wed Oct 24 11:10:31 2018 +0000
+++ b/net/bind911/distinfo      Wed Oct 24 11:27:28 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.3 2018/10/21 15:51:14 taca Exp $
+$NetBSD: distinfo,v 1.4 2018/10/24 11:27:28 jperkin Exp $
 
 SHA1 (bind-9.11.5.tar.gz) = a87a1d6a94be03110ea4776001a75d29a3634cbc
 RMD160 (bind-9.11.5.tar.gz) = 7ac8f391f875d2eba07a1a31495ba1e1209a118a
@@ -6,7 +6,7 @@
 Size (bind-9.11.5.tar.gz) = 8810710 bytes
 SHA1 (patch-bin_tests_system_metadata_tests.sh) = d01a492d0b7738760bdbff714248e279a78fef28
 SHA1 (patch-config.threads.in) = 8341bdb11888d3efdde5f115de91b1f46aa40bd0
-SHA1 (patch-configure) = 9e488b315253dd9cf84e6658468e26399798b0e6
+SHA1 (patch-configure) = 7f73f26266ebd4556ab160e93dc0738188a70e20
 SHA1 (patch-contrib_dlz_config.dlz.in) = 6c53d61aaaf1a952a867e4c4da0194db94f511d7
 SHA1 (patch-lib_dns_rbt.c) = 8af91b6d40b591d28d15f7f98c9b7a82df234381
 SHA1 (patch-lib_isc_unix_socket.c) = dff0163246985d0750b2c99ce7673b257df3e5bf
diff -r 38d2d603d302 -r 30acd208eb8f net/bind911/options.mk
--- a/net/bind911/options.mk    Wed Oct 24 11:10:31 2018 +0000
+++ b/net/bind911/options.mk    Wed Oct 24 11:27:28 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: options.mk,v 1.1 2018/09/09 13:11:38 taca Exp $
+# $NetBSD: options.mk,v 1.2 2018/10/24 11:27:28 jperkin Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.bind911
 PKG_SUPPORTED_OPTIONS= bind-dig-sigchase bind-xml-statistics-server
@@ -65,6 +65,7 @@
 
 .if !empty(PKG_OPTIONS:Mgeoip)
 CONFIGURE_ARGS+=       --with-geoip=${PREFIX}
+LDFLAGS+=              -lGeoIP
 .include "../../net/GeoIP/buildlink3.mk"
 .endif
 
@@ -87,6 +88,7 @@
 .if !empty(PKG_OPTIONS:Mbind-xml-statistics-server)
 .include "../../textproc/libxml2/buildlink3.mk"
 CONFIGURE_ARGS+=       --with-libxml2
+LDFLAGS+=              -lxml2
 .else
 CONFIGURE_ARGS+=       --without-libxml2
 .endif
diff -r 38d2d603d302 -r 30acd208eb8f net/bind911/patches/patch-configure
--- a/net/bind911/patches/patch-configure       Wed Oct 24 11:10:31 2018 +0000
+++ b/net/bind911/patches/patch-configure       Wed Oct 24 11:27:28 2018 +0000
@@ -1,12 +1,12 @@
-$NetBSD: patch-configure,v 1.1 2018/09/09 13:11:38 taca Exp $
+$NetBSD: patch-configure,v 1.2 2018/10/24 11:27:28 jperkin Exp $
 
 * Add DragonFly support.
 * Use proper link options for NetBSD.
 * Link proper postgresql library.
 
---- configure.orig     2018-07-24 17:24:11.000000000 +0000
+--- configure.orig     2018-10-06 01:36:17.000000000 +0000
 +++ configure
-@@ -15270,6 +15270,8 @@ case $host in
+@@ -15415,6 +15415,8 @@ case $host in
        use_threads=false ;;
  *-freebsd*)
        use_threads=true ;;
@@ -15,7 +15,7 @@
  *-bsdi[234]*)
        # Thread signals do not work reliably on some versions of BSD/OS.
        use_threads=false ;;
-@@ -17817,27 +17819,10 @@ case "$use_libjson" in
+@@ -17962,27 +17964,10 @@ case "$use_libjson" in
                libjson_libs=""
                ;;
        auto|yes)
@@ -47,7 +47,7 @@
                ;;
        *)
                if test -f "${use_libjson}/include/json/json.h"
-@@ -23345,7 +23330,7 @@ if test "yes" = "$dlopen"; then
+@@ -23436,7 +23421,7 @@ if test "yes" = "$dlopen"; then
                                SO_LD="ld"
                        fi
                        ;;
@@ -56,7 +56,7 @@
                        LDFLAGS="${LDFLAGS} -Wl,-E"
                        SO_CFLAGS="-fpic"
                        if test "yes" = "$use_libtool"; then
-@@ -23356,12 +23341,6 @@ if test "yes" = "$dlopen"; then
+@@ -23447,16 +23432,10 @@ if test "yes" = "$dlopen"; then
                                SO_LD="${CC}"
                        fi
                        ;;
@@ -67,9 +67,16 @@
 -                      SO_STRIP="sed -e s/-Wl,//g"
 -                      ;;
                *-solaris*)
-                       SO_CFLAGS="-KPIC"
-                       SO_LDFLAGS="-G -z text"
-@@ -23614,8 +23593,8 @@ $as_echo "no" >&6; }
+-                      SO_CFLAGS="-KPIC"
+-                      SO_LDFLAGS="-G -z text"
+-                      SO_LD="ld"
++                      SO_CFLAGS="-fPIC"
++                      SO_LDFLAGS="-Xcompiler -shared -Wl,-z -Wl,text"
++                      SO_LD="${CC}"
+                       ;;
+               *-hp-hpux*)
+                       SO=sl
+@@ -23705,8 +23684,8 @@ $as_echo "no" >&6; }
        fi
        if test -n "-L$use_dlz_postgres_lib -lpq"
        then



Home | Main Index | Thread Index | Old Index