pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/devel/protobuf protobuf: Avoid init_priority on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a9922edfa962
branches:  trunk
changeset: 449484:a9922edfa962
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Wed Mar 31 10:18:47 2021 +0000

description:
protobuf: Avoid init_priority on SunOS.

diffstat:

 devel/protobuf/distinfo                                        |   3 +-
 devel/protobuf/patches/patch-src_google_protobuf_port__def.inc |  15 ++++++++++
 2 files changed, 17 insertions(+), 1 deletions(-)

diffs (33 lines):

diff -r 966f3b797c05 -r a9922edfa962 devel/protobuf/distinfo
--- a/devel/protobuf/distinfo   Wed Mar 31 10:11:38 2021 +0000
+++ b/devel/protobuf/distinfo   Wed Mar 31 10:18:47 2021 +0000
@@ -1,8 +1,9 @@
-$NetBSD: distinfo,v 1.45 2021/03/09 09:46:58 adam Exp $
+$NetBSD: distinfo,v 1.46 2021/03/31 10:18:47 jperkin Exp $
 
 SHA1 (protobuf-cpp-3.15.5.tar.gz) = a1f169edff0f0faebb148f82383d284b7eceb06a
 RMD160 (protobuf-cpp-3.15.5.tar.gz) = 12100cae699d2b752782d33aa7428784a60baec6
 SHA512 (protobuf-cpp-3.15.5.tar.gz) = 847344f8d0acf0109049ad1b1e676b2e5c7bdb06ed8e8531aad9d811a96e7807cd67cde3585f070ee41a16c75948bb8a596bacf9d26d8008874c3ce1bdde52fb
 Size (protobuf-cpp-3.15.5.tar.gz) = 4655682 bytes
 SHA1 (patch-configure) = 22a1fc4e701b348772b3e2e4c68aad3b97032cc5
+SHA1 (patch-src_google_protobuf_port__def.inc) = 40948a86bb1be18937a3d729f9cc7dc1499a5977
 SHA1 (patch-third__party_googletest_googlemock_configure) = fe3b812e819130d87d99316144507d2454461cd1
diff -r 966f3b797c05 -r a9922edfa962 devel/protobuf/patches/patch-src_google_protobuf_port__def.inc
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/protobuf/patches/patch-src_google_protobuf_port__def.inc    Wed Mar 31 10:18:47 2021 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_google_protobuf_port__def.inc,v 1.1 2021/03/31 10:18:47 jperkin Exp $
+
+SunOS does not support init_priority.
+
+--- src/google/protobuf/port_def.inc.orig      2021-03-04 21:39:09.000000000 +0000
++++ src/google/protobuf/port_def.inc
+@@ -587,7 +587,7 @@
+ #define PROTOBUF_ATTRIBUTE_NO_DESTROY
+ #endif
+ 
+-#if defined(__GNUC__)
++#if defined(__GNUC__) && !defined(__sun)
+ // Protobuf extensions and reflection require registration of the protos linked
+ // in the binary. Not until everything is registered does the runtime have a
+ // complete view on all protos. When code is using reflection or extensions



Home | Main Index | Thread Index | Old Index