summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorotis <otis@pkgsrc.org>2021-06-04 21:56:50 +0000
committerotis <otis@pkgsrc.org>2021-06-04 21:56:50 +0000
commit5c4711aeb02b034e06bd2ec57133f39ac2760201 (patch)
tree2101ece3a664542e2ff1aeef605016845a2e2f66 /net
parent9740817e67b65e9310a06e413e27b56ca04292b2 (diff)
downloadpkgsrc-5c4711aeb02b034e06bd2ec57133f39ac2760201.tar.gz
bind916: Fix build on SmartOS
Do not use priorities attribute as they are not supported at least on SmartOS with gcc 7.5
Diffstat (limited to 'net')
-rw-r--r--net/bind916/distinfo3
-rw-r--r--net/bind916/patches/patch-lib_isc_include_isc_util.h21
2 files changed, 23 insertions, 1 deletions
diff --git a/net/bind916/distinfo b/net/bind916/distinfo
index 82807be3e32..c1fd2878353 100644
--- a/net/bind916/distinfo
+++ b/net/bind916/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.13 2021/06/02 15:37:06 taca Exp $
+$NetBSD: distinfo,v 1.14 2021/06/04 21:56:50 otis Exp $
SHA1 (bind-9.16.16.tar.xz) = dc37a919ba83674d1ff48558b640907b7a7dd0a7
RMD160 (bind-9.16.16.tar.xz) = 3e6d92c834b91bd25122278ac6e9f41795040213
@@ -40,6 +40,7 @@ SHA1 (patch-lib_isc_backtrace.c) = 1b6bca9b3de7f7298882c6c88274b0baf1dad507
SHA1 (patch-lib_isc_include_isc_netmgr.h) = 48ac44c6a9b81e6b442deba6c075653d3691464b
SHA1 (patch-lib_isc_include_isc_socket.h) = dc6376cd9e8391fa96efd805faee1a5d0647a142
SHA1 (patch-lib_isc_include_isc_types.h) = bc0cdeb762d974b7be6e602b7dc2aac17fa7fe2f
+SHA1 (patch-lib_isc_include_isc_util.h) = 4a3998c2f0c95bffedf2e00b16a9c80475159775
SHA1 (patch-lib_isc_netmgr_netmgr.c) = 63168c8901646e7b2079e1dc3324087508bb1e62
SHA1 (patch-lib_isc_rwlock.c) = 1d114248ddee20db7a7429afab446f8b2f0dca82
SHA1 (patch-lib_isc_stats.c) = 024a372d9919fa751b894f8fc8267691297f00f4
diff --git a/net/bind916/patches/patch-lib_isc_include_isc_util.h b/net/bind916/patches/patch-lib_isc_include_isc_util.h
new file mode 100644
index 00000000000..0e1713918f7
--- /dev/null
+++ b/net/bind916/patches/patch-lib_isc_include_isc_util.h
@@ -0,0 +1,21 @@
+$NetBSD: patch-lib_isc_include_isc_util.h,v 1.1 2021/06/04 21:56:50 otis Exp $
+
+Fix build on SmartOS where priorities are not
+supported with gcc 7.5
+
+--- lib/isc/include/isc/util.h.orig 2021-05-12 09:53:16.000000000 +0000
++++ lib/isc/include/isc/util.h
+@@ -48,9 +48,12 @@
+ #define ISC_NONSTRING
+ #endif /* __GNUC__ */
+
+-#if HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR && HAVE_FUNC_ATTRIBUTE_DESTRUCTOR
++#if HAVE_FUNC_ATTRIBUTE_CONSTRUCTOR && HAVE_FUNC_ATTRIBUTE_DESTRUCTOR && !defined(__sun)
+ #define ISC_CONSTRUCTOR(priority) __attribute__((constructor(priority)))
+ #define ISC_DESTRUCTOR(priority) __attribute__((destructor(priority)))
++#elif defined(__sun)
++#define ISC_CONSTRUCTOR(priority) __attribute__((constructor))
++#define ISC_DESTRUCTOR(priority) __attribute__((destructor))
+ #elif WIN32
+ #define ISC_CONSTRUCTOR(priority)
+ #define ISC_DESTRUCTOR(priority)