pkgsrc-Changes archive

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

CVS commit: pkgsrc/net/bind916



Module Name:    pkgsrc
Committed By:   otis
Date:           Fri Jun  4 21:56:50 UTC 2021

Modified Files:
        pkgsrc/net/bind916: distinfo
Added Files:
        pkgsrc/net/bind916/patches: patch-lib_isc_include_isc_util.h

Log Message:
bind916: Fix build on SmartOS

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


To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 pkgsrc/net/bind916/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/net/bind916/patches/patch-lib_isc_include_isc_util.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/net/bind916/distinfo
diff -u pkgsrc/net/bind916/distinfo:1.13 pkgsrc/net/bind916/distinfo:1.14
--- pkgsrc/net/bind916/distinfo:1.13    Wed Jun  2 15:37:06 2021
+++ pkgsrc/net/bind916/distinfo Fri Jun  4 21:56:50 2021
@@ -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) = 1b6bc
 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

Added files:

Index: pkgsrc/net/bind916/patches/patch-lib_isc_include_isc_util.h
diff -u /dev/null pkgsrc/net/bind916/patches/patch-lib_isc_include_isc_util.h:1.1
--- /dev/null   Fri Jun  4 21:56:50 2021
+++ pkgsrc/net/bind916/patches/patch-lib_isc_include_isc_util.h Fri Jun  4 21:56:50 2021
@@ -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