From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Wed, 17 May 2023 14:38:27 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1pzGQH-004IG8-2t for lore@lore.pengutronix.de; Wed, 17 May 2023 14:38:27 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1pzGQE-0005zS-7T; Wed, 17 May 2023 14:38:26 +0200 Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pzGQ5-0005z8-DO; Wed, 17 May 2023 14:38:17 +0200 Received: from [2a0a:edc0:0:1101:1d::54] (helo=dude05.red.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1pzGQ4-000qWL-OZ; Wed, 17 May 2023 14:38:16 +0200 Received: from mol by dude05.red.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1pzGQ4-003EfG-4V; Wed, 17 May 2023 14:38:16 +0200 Date: Wed, 17 May 2023 14:38:16 +0200 From: Michael Olbrich To: Roland Hieber , ptxdist@pengutronix.de Message-ID: Mail-Followup-To: Roland Hieber , ptxdist@pengutronix.de References: <20230515072054.1997217-1-rhi@pengutronix.de> <20230515072054.1997217-2-rhi@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230515072054.1997217-2-rhi@pengutronix.de> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain Subject: Re: [ptxdist] [PATCH 2/8] libbson: new package: routines related to BSON documents X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false On Mon, May 15, 2023 at 09:20:48AM +0200, Roland Hieber wrote: > Signed-off-by: Roland Hieber > --- > rules/host-libbson.in | 6 +++ > rules/host-libbson.make | 33 +++++++++++++++ > rules/libbson.in | 9 +++++ > rules/libbson.make | 90 +++++++++++++++++++++++++++++++++++++++++ > 4 files changed, 138 insertions(+) > create mode 100644 rules/host-libbson.in > create mode 100644 rules/host-libbson.make > create mode 100644 rules/libbson.in > create mode 100644 rules/libbson.make > > diff --git a/rules/host-libbson.in b/rules/host-libbson.in > new file mode 100644 > index 000000000000..23eef8540091 > --- /dev/null > +++ b/rules/host-libbson.in > @@ -0,0 +1,6 @@ > +## SECTION=hosttools_noprompt > + > +config HOST_LIBBSON > + tristate > + default y if ALLYES > + select HOST_CMAKE > diff --git a/rules/host-libbson.make b/rules/host-libbson.make > new file mode 100644 > index 000000000000..b68ee64362fe > --- /dev/null > +++ b/rules/host-libbson.make > @@ -0,0 +1,33 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2023 by Roland Hieber > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +HOST_PACKAGES-$(PTXCONF_HOST_LIBBSON) += host-libbson > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +# > +# cmake > +# > +HOST_LIBBSON_CONF_TOOL := cmake > +HOST_LIBBSON_CONF_OPT := \ > + $(HOST_CMAKE_OPT) \ > + -DENABLE_BSON=ON \ > + -DENABLE_COVERAGE=OFF \ > + -DENABLE_HTML_DOCS=OFF \ > + -DENABLE_ICU=OFF \ > + -DENABLE_MONGOC=OFF \ > + -DENABLE_SASL=OFF \ > + -DENABLE_ZLIB=OFF \ > + -DENABLE_ZSTD=OFF The host package should have mostly the same CMake options as the target package. I usually do a vimdiff of the two rule files and then sync the two. Michael > + > +# vim: syntax=make > diff --git a/rules/libbson.in b/rules/libbson.in > new file mode 100644 > index 000000000000..58649ec64863 > --- /dev/null > +++ b/rules/libbson.in > @@ -0,0 +1,9 @@ > +## SECTION=system_libraries > + > +config LIBBSON > + tristate > + select HOST_CMAKE > + select GLIBC_RT > + prompt "libbson" > + help > + Routines related to building, parsing, and iterating BSON documents > diff --git a/rules/libbson.make b/rules/libbson.make > new file mode 100644 > index 000000000000..af0eb8a13401 > --- /dev/null > +++ b/rules/libbson.make > @@ -0,0 +1,90 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2023 by Roland Hieber > +# > +# For further information about the PTXdist project and license conditions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_LIBBSON) += libbson > + > +# > +# Paths and names > +# > +LIBBSON_VERSION := 1.23.4 > +LIBBSON_MD5 := 28f2f253777e8d80839c41239de44188 > +LIBBSON := libbson-$(LIBBSON_VERSION) > +LIBBSON_SUFFIX := tar.gz > +LIBBSON_URL := https://github.com/mongodb/mongo-c-driver/releases/download/$(LIBBSON_VERSION)/mongo-c-driver-$(LIBBSON_VERSION).$(LIBBSON_SUFFIX) > +LIBBSON_SOURCE := $(SRCDIR)/$(LIBBSON).$(LIBBSON_SUFFIX) > +LIBBSON_DIR := $(BUILDDIR)/$(LIBBSON) > +#LIBBSON_SUBDIR := src/libbson > +LIBBSON_LICENSE := Apache-2.0 AND MIT > +LIBBSON_LICENSE_FILES := \ > + file://src/libbson/src/bson/bson.c;endline=15;md5=24960268974cd1c54441e1999c9b5d38 \ > + file://COPYING;md5=2ee41112a44fe7014dce33e26468ba93 \ > + file://src/libbson/THIRD_PARTY_NOTICES;md5=7c6dab59ecb788b1bfe8a307e54c203a > + > +# ---------------------------------------------------------------------------- > +# Prepare > +# ---------------------------------------------------------------------------- > + > +# > +# cmake > +# > +LIBBSON_CONF_TOOL := cmake > +LIBBSON_CONF_OPT := \ > + $(CROSS_CMAKE_USR) \ > + -DBSON_OUTPUT_BASENAME=bson \ > + -DENABLE_APPLE_FRAMEWORK=OFF \ > + -DENABLE_AUTOMATIC_INIT_AND_CLEANUP=ON \ > + -DENABLE_BSON=ON \ > + -DENABLE_CLIENT_SIDE_ENCRYPTION=OFF \ > + -DENABLE_COVERAGE=OFF \ > + -DENABLE_CRYPTO_SYSTEM_PROFILE=OFF \ > + -DENABLE_DEBUG_ASSERTIONS=OFF \ > + -DENABLE_EXAMPLES=OFF \ > + -DENABLE_EXTRA_ALIGNMENT=ON \ > + -DENABLE_HTML_DOCS=OFF \ > + -DENABLE_ICU=OFF \ > + -DENABLE_MAINTAINER_FLAGS=OFF \ > + -DENABLE_MAN_PAGES=OFF \ > + -DENABLE_MONGOC=OFF \ > + -DENABLE_MONGODB_AWS_AUTH=AUTO \ > + -DENABLE_PIC=ON \ > + -DENABLE_RDTSCP=OFF \ > + -DENABLE_SASL=OFF \ > + -DENABLE_SHM_COUNTERS=ON \ > + -DENABLE_SNAPPY=OFF \ > + -DENABLE_SRV=OFF \ > + -DENABLE_SSL=OFF \ > + -DENABLE_STATIC=OFF \ > + -DENABLE_TESTS=OFF \ > + -DENABLE_TRACING=OFF \ > + -DENABLE_UNINSTALL=ON \ > + -DENABLE_ZLIB=OFF \ > + -DENABLE_ZSTD=OFF > + > +# ---------------------------------------------------------------------------- > +# Target-Install > +# ---------------------------------------------------------------------------- > + > +$(STATEDIR)/libbson.targetinstall: > + @$(call targetinfo) > + > + @$(call install_init, libbson) > + @$(call install_fixup, libbson,PRIORITY,optional) > + @$(call install_fixup, libbson,SECTION,base) > + @$(call install_fixup, libbson,AUTHOR,"Roland Hieber ") > + @$(call install_fixup, libbson,DESCRIPTION,missing) > + > + @$(call install_lib, libbson, 0, 0, 0755, libbson-1.0) > + > + @$(call install_finish, libbson) > + > + @$(call touch) > + > +# vim: syntax=make > -- > 2.39.2 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |