git: b6bc20f2c380 - main - lang/clisp: Use Berkeley db 18
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 10 Jul 2026 18:33:26 UTC
The branch main has been updated by cracauer:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b6bc20f2c3807d24909546dd8cf9de2a984ad4d4
commit b6bc20f2c3807d24909546dd8cf9de2a984ad4d4
Author: Martin Cracauer <cracauer@FreeBSD.org>
AuthorDate: 2026-07-09 13:40:48 +0000
Commit: Martin Cracauer <cracauer@FreeBSD.org>
CommitDate: 2026-07-10 18:33:16 +0000
lang/clisp: Use Berkeley db 18
clisp was using the default bdb, version 5, which is deprecated and
can be considered insecure. Upgrade to 18.
Partial patch by fernape@
PR: 275125
Approved by: jbo (mentor), maintainer timeout
Reviewed by: fernape
Differential Revision: https://reviews.freebsd.org/D58125
---
lang/clisp/Makefile | 4 ++--
lang/clisp/files/patch-modules_berkeley-db_bdb.c | 11 +++++++++++
2 files changed, 13 insertions(+), 2 deletions(-)
diff --git a/lang/clisp/Makefile b/lang/clisp/Makefile
index f0b722473566..072b81d3bf04 100644
--- a/lang/clisp/Makefile
+++ b/lang/clisp/Makefile
@@ -1,6 +1,6 @@
PORTNAME= clisp
PORTVERSION= 2.49.95+20241228
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= lang lisp
MAINTAINER= kiri@TrueFC.org
@@ -66,7 +66,7 @@ SVM_DESC= Support Vector Machine predictive analytics
ZLIB_DESC= Compress vectors
ASDF_CONFIGURE_WITH= module=asdf
-BDB_USES= bdb
+BDB_USES= bdb:18
BDB_CONFIGURE_WITH= module=berkeley-db
BDB_CPPFLAGS= -I${LOCALBASE}/include/db${BDB_VER}
BDB_LDFLAGS= -L${LOCALBASE}/lib/db${BDB_VER}
diff --git a/lang/clisp/files/patch-modules_berkeley-db_bdb.c b/lang/clisp/files/patch-modules_berkeley-db_bdb.c
new file mode 100644
index 000000000000..613e7b045004
--- /dev/null
+++ b/lang/clisp/files/patch-modules_berkeley-db_bdb.c
@@ -0,0 +1,11 @@
+--- modules/berkeley-db/bdb.c.orig 2026-07-09 12:56:21 UTC
++++ modules/berkeley-db/bdb.c
+@@ -264,7 +264,7 @@ static void add_message (struct messages* *data_, cons
+ /* dbe is a const pointer, so we cannot change its slots explicitly
+ (e.g., by assigning to app_private),
+ so we have to pass an address to add_message() */
+-static void message_callback (const DB_ENV* dbe, const char *msg) {
++static void message_callback (const DB_ENV* dbe, const char *msg, const char * nothing) {
+ add_message((struct messages**)&(dbe->app_private),msg);
+ }
+ #else