[Bug 263360] databases/ruby-bdb: Mark BROKEN_RUBY32

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 17 Apr 2022 07:06:16 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263360

            Bug ID: 263360
           Summary: databases/ruby-bdb: Mark BROKEN_RUBY32
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ruby@FreeBSD.org
          Reporter: yasu@freebsd.org
          Assignee: ruby@FreeBSD.org
             Flags: maintainer-feedback?(ruby@FreeBSD.org)

Created attachment 233269
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=233269&action=edit
Patch file

Mark BROKEN_RUBY32.

compiling bdb.c
In file included from bdb.c:1:
In file included from ./bdb.h:1:
/usr/local/include/db5/db.h:2725:5: warning: 'DB_DBM_HSEARCH' is not defined,
evaluates to 0 [-Wundef]
 #if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3081:5: warning: 'DB_DBM_HSEARCH' is not defined,
evaluates to 0 [-Wundef]
 #if DB_DBM_HSEARCH != 0
    ^
/usr/local/include/db5/db.h:3102:5: warning: 'DB_DBM_HSEARCH' is not defined,
evaluates to 0 [-Wundef]
 #if DB_DBM_HSEARCH != 0
    ^
bdb.c:168:15: error: implicit declaration of function 'rb_tainted_str_new2' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
    version = rb_tainted_str_new2(db_version(&major, &minor, &patch));
              ^
bdb.c:672:5: warning: 'HAVE_CONST_BDB_TXN_COMMIT' is not defined, evaluates to
0 [-Wundef]
 #if HAVE_CONST_BDB_TXN_COMMIT
    ^
bdb.c:960:18: error: implicit declaration of function 'rb_tainted_str_new' is
invalid in C99 [-Werror,-Wimplicit-function-declaration]
    bdb_errstr = rb_tainted_str_new(0, 0);
                 ^
bdb.c:960:18: note: did you mean 'rb_tainted_str_new2'?
bdb.c:168:15: note: 'rb_tainted_str_new2' declared here
    version = rb_tainted_str_new2(db_version(&major, &minor, &patch));
              ^
4 warnings and 2 errors generated.
*** Error code 1

Stop.

While I'm here,

* Pet portlint and portclippy.
* Tidy up Makefile with portfmt.

-- 
You are receiving this mail because:
You are the assignee for the bug.