git: 7cae9ac1f354 - main - databases/ruby-bdb: fix build on recent 14-CURRENT

From: Hajimu UMEMOTO <ume_at_FreeBSD.org>
Date: Sun, 19 Feb 2023 08:47:29 UTC
The branch main has been updated by ume:

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

commit 7cae9ac1f354a5af2066d68df6f313d59609281c
Author:     Hajimu UMEMOTO <ume@FreeBSD.org>
AuthorDate: 2023-02-19 08:46:05 +0000
Commit:     Hajimu UMEMOTO <ume@FreeBSD.org>
CommitDate: 2023-02-19 08:47:12 +0000

    databases/ruby-bdb: fix build on recent 14-CURRENT
---
 databases/ruby-bdb/files/patch-src-extconf.rb | 14 +++++++++++---
 1 file changed, 11 insertions(+), 3 deletions(-)

diff --git a/databases/ruby-bdb/files/patch-src-extconf.rb b/databases/ruby-bdb/files/patch-src-extconf.rb
index d3603baf22d7..3316c19a29bf 100644
--- a/databases/ruby-bdb/files/patch-src-extconf.rb
+++ b/databases/ruby-bdb/files/patch-src-extconf.rb
@@ -1,6 +1,6 @@
 --- src/extconf.rb.orig	2011-04-06 19:35:39 UTC
 +++ src/extconf.rb
-@@ -36,16 +36,16 @@ end
+@@ -36,16 +36,16 @@ if unknown = enable_config("unknown")
  
  if unknown = enable_config("unknown")
     libs = if CONFIG.key?("LIBRUBYARG_STATIC")
@@ -21,7 +21,15 @@
  when /solaris2/
     $DLDFLAGS ||= ""
     $DLDFLAGS += " -R#{lib_dir}"
-@@ -63,10 +63,12 @@ end
+@@ -53,6 +53,7 @@ $CFLAGS += " -DBDB_NO_THREAD_COMPILE" if enable_config
+ $bdb_libdir = lib_dir
+ 
+ $CFLAGS += " -DBDB_NO_THREAD_COMPILE" if enable_config("thread") == false
++$CFLAGS += " -Wno-int-conversion"
+ 
+ unique = with_config("db-uniquename") || ''
+ 
+@@ -63,10 +64,12 @@ if csv = with_config('db-version')
  if csv = with_config('db-version')
     version = csv.split(',', -1)
     version << '' if version.empty?
@@ -36,7 +44,7 @@
     else
        if m[2]
           major, minor = m[2], m[3]
-@@ -94,7 +96,7 @@ catch(:done) do
+@@ -94,7 +97,7 @@ catch(:done) do
           end
           next if with_ver.empty?
           if !unique.is_a?(String) || unique.empty?