pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/bind914 bind914: Fix build on SmartOS
details: https://anonhg.NetBSD.org/pkgsrc/rev/fc650ab5ca99
branches: trunk
changeset: 403240:fc650ab5ca99
user: otis <otis%pkgsrc.org@localhost>
date: Thu Oct 24 12:50:36 2019 +0000
description:
bind914: Fix build on SmartOS
SmartOS requires _XOPEN_SOURCE for various macros and functions (CMSG_DATA() et
al.)
diffstat:
net/bind914/Makefile | 5 ++++-
net/bind914/distinfo | 5 +++--
net/bind914/patches/patch-lib_isc_unix_net.c | 22 ++++++++++++++++++++++
net/bind914/patches/patch-lib_isc_unix_socket.c | 24 +++++++++++++++++++++---
4 files changed, 50 insertions(+), 6 deletions(-)
diffs (102 lines):
diff -r ea1395e4197b -r fc650ab5ca99 net/bind914/Makefile
--- a/net/bind914/Makefile Thu Oct 24 12:48:54 2019 +0000
+++ b/net/bind914/Makefile Thu Oct 24 12:50:36 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.11 2019/10/16 20:51:59 maya Exp $
+# $NetBSD: Makefile,v 1.12 2019/10/24 12:50:36 otis Exp $
DISTNAME= bind-${BIND_VERSION}
PKGNAME= ${DISTNAME:S/-P/pl/}
@@ -38,6 +38,8 @@
.endif
CONFIGURE_ARGS.DragonFly+= --disable-kqueue
+BUILDLINK_TRANSFORM.SunOS+= rm:-zrelax=transtls
+
PKG_GROUPS_VARS+= BIND_GROUP
PKG_USERS_VARS= BIND_USER
@@ -72,4 +74,5 @@
${INSTALL_DATA} ${WRKSRC}/doc/arm/*.html ${DESTDIR}${PREFIX}/${DOCDIR}/arm
.include "../../security/openssl/buildlink3.mk"
+.include "../../devel/zlib/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
diff -r ea1395e4197b -r fc650ab5ca99 net/bind914/distinfo
--- a/net/bind914/distinfo Thu Oct 24 12:48:54 2019 +0000
+++ b/net/bind914/distinfo Thu Oct 24 12:50:36 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.9 2019/10/16 20:51:59 maya Exp $
+$NetBSD: distinfo,v 1.10 2019/10/24 12:50:36 otis Exp $
SHA1 (bind-9.14.7.tar.gz) = ab0b14f4fe6a818fb15673ea9cef3eead8f6a94b
RMD160 (bind-9.14.7.tar.gz) = 6caf6e1a7ea03e311c6bcdd1cca63547e230f86b
@@ -35,5 +35,6 @@
SHA1 (patch-lib_dns_view.c) = 25095827adbc75dc629b0f435dbd711b599c86c9
SHA1 (patch-lib_isc_backtrace.c) = 5fa1dd0f18ae757233d9cc21e36a5f6a84990db1
SHA1 (patch-lib_isc_stats.c) = 9857f640fb0becfab1a7f347f835610230bd3279
-SHA1 (patch-lib_isc_unix_socket.c) = 4f7be1616bac7263069292f909896373f0e6fab8
+SHA1 (patch-lib_isc_unix_net.c) = a8779d7e51c3a54f5dada1396abe10eb77ff0df9
+SHA1 (patch-lib_isc_unix_socket.c) = 3325d04decda1d6ecd9e5be34ac5fe4c122466f4
SHA1 (patch-lib_isc_unix_time.c) = 04312e043601688aa2b0a09dad1bcb51d9273e9d
diff -r ea1395e4197b -r fc650ab5ca99 net/bind914/patches/patch-lib_isc_unix_net.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bind914/patches/patch-lib_isc_unix_net.c Thu Oct 24 12:50:36 2019 +0000
@@ -0,0 +1,22 @@
+$NetBSD: patch-lib_isc_unix_net.c,v 1.1 2019/10/24 12:50:36 otis Exp $
+
+* Fix build on SmartOS. In this special case, _XOPEN_SOURCE has to be only
+ defined on SmartOS.
+
+--- lib/isc/unix/net.c.orig 2019-10-02 06:24:10.000000000 +0000
++++ lib/isc/unix/net.c
+@@ -9,6 +9,14 @@
+ * information regarding copyright ownership.
+ */
+
++/* needed for CMSG_DATA */
++#if defined(__sun)
++#if (__STDC_VERSION__ - 0 < 199901L)
++#define _XOPEN_SOURCE 500
++#else
++#define _XOPEN_SOURCE 600
++#endif
++#endif
+
+ #include <config.h>
+
diff -r ea1395e4197b -r fc650ab5ca99 net/bind914/patches/patch-lib_isc_unix_socket.c
--- a/net/bind914/patches/patch-lib_isc_unix_socket.c Thu Oct 24 12:48:54 2019 +0000
+++ b/net/bind914/patches/patch-lib_isc_unix_socket.c Thu Oct 24 12:50:36 2019 +0000
@@ -1,10 +1,28 @@
-$NetBSD: patch-lib_isc_unix_socket.c,v 1.2 2019/06/14 16:14:05 taca Exp $
+$NetBSD: patch-lib_isc_unix_socket.c,v 1.3 2019/10/24 12:50:36 otis Exp $
* Apply fixes from NetBSD base system.
+* Fix build on SmartOS. In this special case, _XOPEN_SOURCE has to be only
+ defined on SmartOS.
---- lib/isc/unix/socket.c.orig 2019-04-06 20:09:59.000000000 +0000
+--- lib/isc/unix/socket.c.orig 2019-10-02 06:24:10.000000000 +0000
+++ lib/isc/unix/socket.c
-@@ -225,6 +225,7 @@ typedef enum { poll_idle, poll_active, p
+@@ -11,6 +11,15 @@
+
+ /*! \file */
+
++/* needed for CMSG_DATA */
++#if defined(__sun)
++#if (__STDC_VERSION__ - 0 < 199901L)
++#define _XOPEN_SOURCE 500
++#else
++#define _XOPEN_SOURCE 600
++#endif
++#endif
++
+ #include <config.h>
+
+ #include <inttypes.h>
+@@ -225,6 +234,7 @@ typedef enum { poll_idle, poll_active, p
(e) == EWOULDBLOCK || \
(e) == ENOBUFS || \
(e) == EINTR || \
Home |
Main Index |
Thread Index |
Old Index