Summary: | databases/ruby-bdb: suppress deprecate warning with Ruby 2.7 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Hajimu UMEMOTO <ume> | ||||
Component: | Individual Port(s) | Assignee: | Akinori MUSHA <knu> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | Keywords: | buildisok | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(knu) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Build info is available at https://gitlab.com/swills/freebsd-ports/pipelines/137532803 A commit references this bug: Author: ume Date: Tue Apr 28 10:23:09 UTC 2020 New revision: 533243 URL: https://svnweb.freebsd.org/changeset/ports/533243 Log: suppress deprecate warning with Ruby 2.7 PR: 245339 Approved by: maintainer timeout Changes: head/databases/ruby-bdb/Makefile head/databases/ruby-bdb/files/patch-bdbxml1__bdbxml.cc head/databases/ruby-bdb/files/patch-bdbxml2__bdbxml.cc head/databases/ruby-bdb/files/patch-src-common.c head/databases/ruby-bdb/files/patch-src-cursor.c head/databases/ruby-bdb/files/patch-src-recnum.c head/databases/ruby-bdb/files/patch-src__env.c head/databases/ruby-bdb/files/patch-src__transaction.c |
Created attachment 213042 [details] exclude the useless codes which treat deprecated safe levels When using ruby-bdb with Ruby 2.7, following warning messages are issued: /usr/local/lib/ruby/site_ruby/2.7/pkgtools/pkgdbtools.rb:196: warning: rb_secure will be removed in Ruby 3.0 /usr/local/lib/ruby/site_ruby/2.7/pkgtools/pkgdbtools.rb:196: warning: rb_secure will be removed in Ruby 3.0 /usr/local/lib/ruby/site_ruby/2.7/pkgtools/pkgdbtools.rb:196: warning: rb_safe_level will be removed in Ruby 3.0 The safe level greater than 1 are already deprecated by recent Ruby 2.X series. Tha attached patch exclude the useless codes which treat such deprecated safe levels.