FreeBSD Bugzilla – Attachment 216944 Details for
Bug 248416
databases/ruby-bdb: Fix build with upcoming databases/db18
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch file
databases_ruby-bdb.patch (text/plain), 1.65 KB, created by
Yasuhiro Kimura
on 2020-08-01 17:39:17 UTC
(
hide
)
Description:
Patch file
Filename:
MIME Type:
Creator:
Yasuhiro Kimura
Created:
2020-08-01 17:39:17 UTC
Size:
1.65 KB
patch
obsolete
>Index: databases/ruby-bdb/files/patch-src-extconf.rb >=================================================================== >--- databases/ruby-bdb/files/patch-src-extconf.rb (revision 543816) >+++ databases/ruby-bdb/files/patch-src-extconf.rb (working copy) >@@ -1,6 +1,6 @@ >---- src/extconf.rb.orig 2015-01-22 16:09:31 UTC >+--- src/extconf.rb.orig 2011-04-06 19:35:39 UTC > +++ src/extconf.rb >-@@ -36,16 +36,16 @@ >+@@ -36,16 +36,16 @@ end > > if unknown = enable_config("unknown") > libs = if CONFIG.key?("LIBRUBYARG_STATIC") >@@ -21,3 +21,27 @@ > when /solaris2/ > $DLDFLAGS ||= "" > $DLDFLAGS += " -R#{lib_dir}" >+@@ -63,10 +63,12 @@ end >+ if csv = with_config('db-version') >+ version = csv.split(',', -1) >+ version << '' if version.empty? >+-elsif m = lib_dir.match(%r{/db(?:([2-9])|([2-9])([0-9])|-([2-9]).([0-9]))(?:$|/)}) || >+- inc_dir.match(%r{/db(?:([2-9])|([2-9])([0-9])|-([2-9]).([0-9]))(?:$|/)}) >++elsif m = lib_dir.match(%r{/db(?:([2-9])|([2-9])([0-9])|-([2-9]).([0-9]))|([1-9][0-9]+)(?:$|/)}) || >++ inc_dir.match(%r{/db(?:([2-9])|([2-9])([0-9])|-([2-9]).([0-9]))(|([1-9][0-9]+)?:$|/)}) >+ if m[1] >+ version = [m[1], ''] >++ elsif m[6] >++ version = [m[6], ''] >+ else >+ if m[2] >+ major, minor = m[2], m[3] >+@@ -94,7 +96,7 @@ catch(:done) do >+ end >+ next if with_ver.empty? >+ if !unique.is_a?(String) || unique.empty? >+- m = with_ver.match(/^[^0-9]*([2-9])\.?([0-9]{0,3})/) >++ m = with_ver.match(/^[^0-9]*([1-9][0-9]*)\.?([0-9]{0,3})/) >+ major = m[1].to_i >+ minor = m[2].to_i >+ db_version = "db_version_" + (1000 * major + minor).to_s
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 248416
: 216944