git: c46f8eb79cfd - main - devel/rubygem-thrift: Fix build with Ruby 3.1 and 12.3-RELEASE

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Fri, 10 Feb 2023 05:51:42 UTC
The branch main has been updated by yasu:

URL: https://cgit.FreeBSD.org/ports/commit/?id=c46f8eb79cfdcaaa150c98ec7c4d912f00346014

commit c46f8eb79cfdcaaa150c98ec7c4d912f00346014
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2023-01-25 18:52:30 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2023-02-10 05:41:01 +0000

    devel/rubygem-thrift: Fix build with Ruby 3.1 and 12.3-RELEASE
    
    PR:             269152
    Approved by:    maintainer timeout
---
 devel/rubygem-thrift/files/patch-ext_extconf.rb | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/devel/rubygem-thrift/files/patch-ext_extconf.rb b/devel/rubygem-thrift/files/patch-ext_extconf.rb
new file mode 100644
index 000000000000..1570d7e6a5fe
--- /dev/null
+++ b/devel/rubygem-thrift/files/patch-ext_extconf.rb
@@ -0,0 +1,11 @@
+--- ext/extconf.rb.orig	2023-01-25 18:49:19 UTC
++++ ext/extconf.rb
+@@ -26,7 +26,7 @@ else
+   $ARCH_FLAGS = RbConfig::CONFIG['CFLAGS'].scan( /(-arch )(\S+)/ ).map{|x,y| x + y + ' ' }.join('')
+ 
+ 
+-  $CFLAGS = "-fsigned-char -g -O2 -Wall -Werror " + $ARCH_FLAGS
++  $CFLAGS = "-fdeclspec -fsigned-char -g -O2 -Wall -Werror " + $ARCH_FLAGS
+ 
+   have_func("strlcpy", "string.h")
+