From: Stuart Henderson Subject: Re: NEW: devel/libbson (mongodb dependency) To: Rafael Sadowski Cc: ports@openbsd.org Date: Fri, 15 Aug 2025 20:15:24 +0100 On 2025/08/15 19:27, Rafael Sadowski wrote: > OK to import libbson-2.1.0? It's a dependency for a newer mongodb. > > Comment: > BSON utility library > > Description: > libbson is a library providing useful routines related to building, parsing, > and iterating BSON documents. It is a useful base for those wanting to write > high-performance C extensions to higher level languages such as python, ruby, > or perl. > > Maintainer: The OpenBSD ports mailing-list > > WWW: https://github.com/mongodb/mongo-c-driver > > some possible tweaks. less confusion about distfile names, avoid unnecessary WRKDIST setting, and I think a nicer DESCR. ok diff -uNp -r libbson.orig/Makefile libbson/Makefile --- libbson.orig/Makefile Fri Aug 15 18:25:16 2025 +++ libbson/Makefile Fri Aug 15 20:15:05 2025 @@ -1,8 +1,10 @@ COMMENT = BSON utility library V = 2.1.0 -DISTNAME = libbson-${V} +PKGNAME = libbson-${V} +# libbson is only provided as part of the mongo-c-driver distribution. +# other than libbson have been disabled here. DIST_TUPLE += github mongodb mongo-c-driver ${V} . SHARED_LIBS += bson2 0.0 # 0.0 @@ -26,8 +28,6 @@ CONFIGURE_ARGS += -DBUILD_TESTING=OFF \ -DENABLE_UNINSTALL=OFF \ -DENABLE_ZLIB=OFF \ -DENABLE_ZSTD=OFF - -WRKDIST = ${WRKDIR}/mongo-c-driver-${V} post-install: rm -rf ${PREFIX}/share/mongo-c-driver diff -uNp -r libbson.orig/pkg/DESCR libbson/pkg/DESCR --- libbson.orig/pkg/DESCR Wed Aug 13 07:19:38 2025 +++ libbson/pkg/DESCR Fri Aug 15 20:13:28 2025 @@ -1,4 +1,6 @@ -libbson is a library providing useful routines related to building, parsing, -and iterating BSON documents. It is a useful base for those wanting to write -high-performance C extensions to higher level languages such as python, ruby, -or perl. +BSON ("Binary JSON") is a binary-encoded serialization of JSON-like +documents. It is the native document format of MongoDB. + +libbson is a library providing useful routines related to building, +parsing, and iterating BSON documents. It can be used as a base for +high-performance C extensions to higher level languages.