[Buildroot] [PATCH v4] package/sdbusplus: new package

Thomas Petazzoni thomas.petazzoni at bootlin.com
Wed Nov 13 13:02:05 UTC 2019


Hello John,

On Wed, 7 Aug 2019 19:12:00 +0000
John Faith <jfaith at impinj.com> wrote:

> A C++ library for interacting with sd-bus and a C++ bindings generator.
> 
> The host build produces a code generation tool, sdbus++ while the
> target build gives libsdbusplus.
> 
> The code generator requires host-python-pyyaml, host-python-inflection,
> and host-python-mako. Since it isn't built for the target, the target
> build does not require them.
> 
> The host package includes a code and documentation generation program,
> which is useful for including in a buildroot SDK, even if no target
> package needs it, so make it a user-selectable host package.
> 
> host-autoconf-archive is added as a dependency since configure.ac
> uses the AX_PKG_CHECK_MODULES macro.
> 
> Signed-off-by: John Faith <jfaith at impinj.com>
> Signed-off-by: Trent Piepho <tpiepho at impinj.com>

I have finally applied to next, with one change. See below.

> +SDBUSPLUS_VERSION = 4212292bcf136d04b38ba5116aa568b0fa312798
> +SDBUSPLUS_SITE = $(call github,openbmc,sdbusplus,$(SDBUSPLUS_VERSION))
> +SDBUSPLUS_DEPENDENCIES = host-autoconf-archive host-pkgconf systemd
> +HOST_SDBUSPLUS_DEPENDENCIES = \
> +	host-autoconf-archive \
> +	host-pkgconf \
> +	host-python \

I replaced this with:

	$(if $(BR2_PACKAGE_PYTHON3),host-python3,host-python)

which is something we do in many other packages, to use host-python3
when host-python3 is anyway going to be built as a dependency of the
target python3.

I tested it, and it does seem to work, i.e I was able to use the
binding generator tool with a Python 3 installation.

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com


More information about the buildroot mailing list