Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F109732211
D37140.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D37140.diff
View Options
diff --git a/devel/rubygem-google-protobuf/Makefile b/devel/rubygem-google-protobuf/Makefile
--- a/devel/rubygem-google-protobuf/Makefile
+++ b/devel/rubygem-google-protobuf/Makefile
@@ -1,5 +1,6 @@
PORTNAME= google-protobuf
PORTVERSION= 3.21.7
+PORTREVISION= 1
CATEGORIES= devel rubygems
MASTER_SITES= RG
diff --git a/devel/rubygem-google-protobuf/files/patch-ext_google_protobuf__c_extconf.rb b/devel/rubygem-google-protobuf/files/patch-ext_google_protobuf__c_extconf.rb
new file mode 100644
--- /dev/null
+++ b/devel/rubygem-google-protobuf/files/patch-ext_google_protobuf__c_extconf.rb
@@ -0,0 +1,11 @@
+--- ext/google/protobuf_c/extconf.rb.orig 2022-10-28 07:09:57 UTC
++++ ext/google/protobuf_c/extconf.rb
+@@ -6,7 +6,7 @@ ext_name = "google/protobuf_c"
+
+ dir_config(ext_name)
+
+-if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
++if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ || RUBY_PLATFORM =~ /freebsd/
+ $CFLAGS += " -std=gnu99 -O3 -DNDEBUG -fvisibility=hidden -Wall -Wsign-compare -Wno-declaration-after-statement"
+ else
+ $CFLAGS += " -std=gnu99 -O3 -DNDEBUG"
diff --git a/devel/rubygem-google-protobuf319/Makefile b/devel/rubygem-google-protobuf319/Makefile
--- a/devel/rubygem-google-protobuf319/Makefile
+++ b/devel/rubygem-google-protobuf319/Makefile
@@ -1,5 +1,6 @@
PORTNAME= google-protobuf
PORTVERSION= 3.19.6
+PORTREVISION= 1
CATEGORIES= devel rubygems
MASTER_SITES= RG
PKGNAMESUFFIX= 319
diff --git a/devel/rubygem-google-protobuf319/files/patch-ext_google_protobuf__c_extconf.rb b/devel/rubygem-google-protobuf319/files/patch-ext_google_protobuf__c_extconf.rb
new file mode 100644
--- /dev/null
+++ b/devel/rubygem-google-protobuf319/files/patch-ext_google_protobuf__c_extconf.rb
@@ -0,0 +1,11 @@
+--- ext/google/protobuf_c/extconf.rb.orig 2022-10-28 07:07:50 UTC
++++ ext/google/protobuf_c/extconf.rb
+@@ -2,7 +2,7 @@
+
+ require 'mkmf'
+
+-if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/
++if RUBY_PLATFORM =~ /darwin/ || RUBY_PLATFORM =~ /linux/ || RUBY_PLATFORM =~ /freebsd/
+ $CFLAGS += " -std=gnu99 -O3 -DNDEBUG -fvisibility=hidden -Wall -Wsign-compare -Wno-declaration-after-statement"
+ else
+ $CFLAGS += " -std=gnu99 -O3 -DNDEBUG"
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Feb 9, 8:48 PM (20 h, 22 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16563275
Default Alt Text
D37140.diff (2 KB)
Attached To
Mode
D37140: rubygem-google-protobuf: Use hidden symbols
Attached
Detach File
Event Timeline
Log In to Comment