pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/bind916 bind916: Fix build on SmartOS



details:   https://anonhg.NetBSD.org/pkgsrc/rev/7e40a33fbf35
branches:  trunk
changeset: 453945:7e40a33fbf35
user:      otis <otis%pkgsrc.org@localhost>
date:      Fri Jun 04 21:56:50 2021 +0000

description:
bind916: Fix build on SmartOS

Do not use priorities attribute as they are not supported
at least on SmartOS with gcc 7.5

diffstat:

 net/bind916/distinfo                                 |   3 +-
 net/bind916/patches/patch-lib_isc_include_isc_util.h |  21 ++++++++++++++++++++
 2 files changed, 23 insertions(+), 1 deletions(-)

diffs (42 lines):

diff -r 38904c24d069 -r 7e40a33fbf35 net/bind916/distinfo
--- a/net/bind916/distinfo      Fri Jun 04 19:04:10 2021 +0000
+++ b/net/bind916/distinfo      Fri Jun 04 21:56:50 2021 +0000
@@ -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
diff -r 38904c24d069 -r 7e40a33fbf35 net/bind916/patches/patch-lib_isc_include_isc_util.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/bind916/patches/patch-lib_isc_include_isc_util.h      Fri Jun 04 21:56:50 2021 +0000
@@ -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)



Home | Main Index | Thread Index | Old Index