Fri Jun 4 21:56:50 2021 UTC ()
bind916: Fix build on SmartOS
Do not use priorities attribute as they are not supported
at least on SmartOS with gcc 7.5
(otis)
diff -r1.13 -r1.14 pkgsrc/net/bind916/distinfo
diff -r0 -r1.1 pkgsrc/net/bind916/patches/patch-lib_isc_include_isc_util.h
--- pkgsrc/net/bind916/distinfo 2021/06/02 15:37:06 1.13
+++ pkgsrc/net/bind916/distinfo 2021/06/04 21:56:50 1.14
@@ -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_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
$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)