git: 794781e423e9 - main - databases/ruby-bdb: Mark BROKEN_RUBY32
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 02 May 2022 11:15:16 UTC
The branch main has been updated by yasu:
URL: https://cgit.FreeBSD.org/ports/commit/?id=794781e423e93b29cdd0c4604bc8236d2069d110
commit 794781e423e93b29cdd0c4604bc8236d2069d110
Author: Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2022-04-17 06:59:13 +0000
Commit: Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2022-05-02 11:14:06 +0000
databases/ruby-bdb: 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.
PR: 263360
Approved by: maintainer timeout
---
databases/ruby-bdb/Makefile | 40 ++++++++++++++++------------------------
1 file changed, 16 insertions(+), 24 deletions(-)
diff --git a/databases/ruby-bdb/Makefile b/databases/ruby-bdb/Makefile
index 7657b9f886ff..3a299072e31d 100644
--- a/databases/ruby-bdb/Makefile
+++ b/databases/ruby-bdb/Makefile
@@ -15,45 +15,37 @@ COMMENT= Ruby interface to Oracle Berkeley DB revision 2 or later
LICENSE= RUBY
-BUILD_DEPENDS= rubygem-rdoc>=0.a:devel/rubygem-rdoc
+BROKEN_RUBY32= yes
-OPTIONS_DEFINE= DOCS EXAMPLES
+BUILD_DEPENDS= rubygem-rdoc>=0.a:devel/rubygem-rdoc
USES= bdb shebangfix tar:bzip2
-USE_RUBY= yes
+USE_RUBY= yes
USE_RUBY_EXTCONF= yes
-ALL_TARGET= all rdoc
+SHEBANG_FILES= examples/basic.rb examples/cats.rb examples/cursor.rb \
+ examples/func.rb examples/join.rb examples/lock.rb \
+ examples/log.rb examples/queue.rb examples/recno.rb \
+ examples/record.rb examples/replication/base/b.rb \
+ examples/replication/base/cl.rb examples/replication/base/ma.rb \
+ examples/replication/base/mc.rb examples/replication/base/op.rb \
+ examples/replication/mgr/b.rb examples/txn.rb examples/zeroc.rb
+
CONFIGURE_ARGS= --with-db-include=${BDB_INCLUDE_DIR} \
--with-db-lib=${BDB_LIB_DIR}
-INSTALL_TARGET= site-install
MAKE_ENV= RUBY_RDOC=${LOCALBASE}/bin/rdoc
+ALL_TARGET= all rdoc
+INSTALL_TARGET= site-install
DOCS= Changes README.en bdb.rd docs/*.rd
DOCSDIR= ${RUBY_MODDOCDIR}
EXAMPLESDIR= ${RUBY_MODEXAMPLESDIR}
SHAREMODE= 0644
-PLIST_FILES= %%RUBY_SITEARCHLIBDIR%%/bdb.so
+PLIST_FILES= ${RUBY_SITEARCHLIBDIR}/bdb.so
PORTDOCS= *
PORTEXAMPLES= *
-SHEBANG_FILES= examples/record.rb \
- examples/recno.rb \
- examples/zeroc.rb \
- examples/txn.rb \
- examples/queue.rb \
- examples/cats.rb \
- examples/log.rb \
- examples/cursor.rb \
- examples/func.rb \
- examples/replication/mgr/b.rb \
- examples/replication/base/op.rb \
- examples/replication/base/cl.rb \
- examples/replication/base/b.rb \
- examples/replication/base/ma.rb \
- examples/replication/base/mc.rb \
- examples/join.rb \
- examples/basic.rb \
- examples/lock.rb
+
+OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${RM} ${WRKSRC}/docs/*.orig