* [Buildroot] [PATCH v2] package/libcppconnman: add new package
@ 2026-07-17 9:32 Andrea Ricchi
2026-07-19 13:16 ` Julien Olivain via buildroot
0 siblings, 1 reply; 3+ messages in thread
From: Andrea Ricchi @ 2026-07-17 9:32 UTC (permalink / raw)
To: buildroot; +Cc: Andrea Ricchi
libcppconnman is a C++ library that provides an easy-to-use API
to communicate with ConnMan over D-Bus using GDBus.
https://github.com/amarula/libcppconnman
Also add myself to DEVELOPERS for this package.
Signed-off-by: Andrea Ricchi <andrea.ricchi@amarulasolutions.com>
---
Changes v1 -> v2:
- add missing libcppconnman entry in package/Config.in
- merge the DEVELOPERS addition into this patch
DEVELOPERS | 1 +
package/Config.in | 1 +
package/libcppconnman/Config.in | 26 ++++++++++++++++++++++++
package/libcppconnman/libcppconnman.hash | 3 +++
package/libcppconnman/libcppconnman.mk | 24 ++++++++++++++++++++++
5 files changed, 55 insertions(+)
create mode 100644 package/libcppconnman/Config.in
create mode 100644 package/libcppconnman/libcppconnman.hash
create mode 100644 package/libcppconnman/libcppconnman.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 42418d01a2..997fd6be74 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -186,6 +186,7 @@ F: package/wine/
N: Andrea Ricchi <andrea.ricchi@amarulasolutions.com>
F: package/cutekeyboard/
+F: package/libcppconnman/
N: Andreas Klinger <ak@it-klinger.de>
F: package/ply/
diff --git a/package/Config.in b/package/Config.in
index 015f635ad1..fc1e57d30d 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2007,6 +2007,7 @@ menu "Networking"
source "package/ibrdtn/Config.in"
source "package/libcgicc/Config.in"
source "package/libcoap/Config.in"
+ source "package/libcppconnman/Config.in"
source "package/libcpprestsdk/Config.in"
source "package/libcurl/Config.in"
source "package/libdnet/Config.in"
diff --git a/package/libcppconnman/Config.in b/package/libcppconnman/Config.in
new file mode 100644
index 0000000000..19dc0bbd2d
--- /dev/null
+++ b/package/libcppconnman/Config.in
@@ -0,0 +1,26 @@
+config BR2_PACKAGE_LIBCPPCONNMAN
+ bool "libcppconnman"
+ depends on BR2_INSTALL_LIBSTDCPP
+ depends on BR2_USE_WCHAR # libglib2
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
+ depends on BR2_USE_MMU # libglib2
+ select BR2_PACKAGE_LIBGLIB2
+ help
+ libcppconnman provide easy to use C++ API to communicate
+ with ConnMan via the DBus using GDBus.
+
+ https://amarula.github.io/libcppconnman/
+
+comment "libcppconnman needs a toolchain w/ C++, wchar, threads"
+ depends on BR2_USE_MMU
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
+ !BR2_TOOLCHAIN_HAS_THREADS
+
+if BR2_PACKAGE_LIBCPPCONNMAN
+
+config BR2_PACKAGE_LIBCPPCONNMAN_EXAMPLE
+ bool "libcppconnman example"
+ help
+ Compile CLI example.
+
+endif
diff --git a/package/libcppconnman/libcppconnman.hash b/package/libcppconnman/libcppconnman.hash
new file mode 100644
index 0000000000..70960d4a17
--- /dev/null
+++ b/package/libcppconnman/libcppconnman.hash
@@ -0,0 +1,3 @@
+# Locally computed
+sha256 5eb38232c3f9fcf2136c6508472841f6ee88d7155c384f4e6f2f3de1cd2fba62 libcppconnman-2.0.0.tar.gz
+sha256 7ffe1954587c77dfba1cf8eb9b2ea743671fa6e63f9e7a2f258119d42e14eefe LICENSE
diff --git a/package/libcppconnman/libcppconnman.mk b/package/libcppconnman/libcppconnman.mk
new file mode 100644
index 0000000000..b2a445cb2c
--- /dev/null
+++ b/package/libcppconnman/libcppconnman.mk
@@ -0,0 +1,24 @@
+################################################################################
+#
+# libcppconnman
+#
+################################################################################
+
+LIBCPPCONNMAN_VERSION = 2.0.0
+LIBCPPCONNMAN_SITE = $(call github,amarula,libcppconnman,v$(LIBCPPCONNMAN_VERSION))
+LIBCPPCONNMAN_LICENSE = LGPL-2.1-or-later
+LIBCPPCONNMAN_LICENSE_FILES = LICENSE
+
+LIBCPPCONNMAN_INSTALL_STAGING = YES
+
+LIBCPPCONNMAN_DEPENDENCIES = host-pkgconf libglib2
+
+LIBCPPCONNMAN_CONF_OPTS = -DBUILD_CONNMAN=ON
+
+ifeq ($(BR2_PACKAGE_LIBCPPCONNMAN_EXAMPLE),y)
+LIBCPPCONNMAN_CONF_OPTS += -DBUILD_EXAMPLES=ON
+else
+LIBCPPCONNMAN_CONF_OPTS += -DBUILD_EXAMPLES=OFF
+endif
+
+$(eval $(cmake-package))
--
2.53.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH v2] package/libcppconnman: add new package
2026-07-17 9:32 [Buildroot] [PATCH v2] package/libcppconnman: add new package Andrea Ricchi
@ 2026-07-19 13:16 ` Julien Olivain via buildroot
2026-07-20 9:00 ` Andrea Ricchi
0 siblings, 1 reply; 3+ messages in thread
From: Julien Olivain via buildroot @ 2026-07-19 13:16 UTC (permalink / raw)
To: Andrea Ricchi; +Cc: buildroot
Hi Andrea,
Thanks for the patch.
The package introduces build failures for some toolchains. See:
https://gitlab.com/jolivain/buildroot/-/pipelines/2688533526
You can reproduce locally with the command:
utils/test-pkg -a -p libcppconnman
I have another comment, see below.
On 17/07/2026 11:32, Andrea Ricchi wrote:
> libcppconnman is a C++ library that provides an easy-to-use API
> to communicate with ConnMan over D-Bus using GDBus.
>
> https://github.com/amarula/libcppconnman
>
> Also add myself to DEVELOPERS for this package.
>
> Signed-off-by: Andrea Ricchi <andrea.ricchi@amarulasolutions.com>
> ---
> Changes v1 -> v2:
> - add missing libcppconnman entry in package/Config.in
> - merge the DEVELOPERS addition into this patch
>
> DEVELOPERS | 1 +
> package/Config.in | 1 +
> package/libcppconnman/Config.in | 26 ++++++++++++++++++++++++
> package/libcppconnman/libcppconnman.hash | 3 +++
> package/libcppconnman/libcppconnman.mk | 24 ++++++++++++++++++++++
> 5 files changed, 55 insertions(+)
> create mode 100644 package/libcppconnman/Config.in
> create mode 100644 package/libcppconnman/libcppconnman.hash
> create mode 100644 package/libcppconnman/libcppconnman.mk
>
[...]
> diff --git a/package/libcppconnman/Config.in
> b/package/libcppconnman/Config.in
> new file mode 100644
> index 0000000000..19dc0bbd2d
> --- /dev/null
> +++ b/package/libcppconnman/Config.in
> @@ -0,0 +1,26 @@
> +config BR2_PACKAGE_LIBCPPCONNMAN
> + bool "libcppconnman"
> + depends on BR2_INSTALL_LIBSTDCPP
> + depends on BR2_USE_WCHAR # libglib2
> + depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
> + depends on BR2_USE_MMU # libglib2
> + select BR2_PACKAGE_LIBGLIB2
> + help
> + libcppconnman provide easy to use C++ API to communicate
> + with ConnMan via the DBus using GDBus.
> +
> + https://amarula.github.io/libcppconnman/
> +
> +comment "libcppconnman needs a toolchain w/ C++, wchar, threads"
> + depends on BR2_USE_MMU
> + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
> + !BR2_TOOLCHAIN_HAS_THREADS
> +
> +if BR2_PACKAGE_LIBCPPCONNMAN
> +
> +config BR2_PACKAGE_LIBCPPCONNMAN_EXAMPLE
> + bool "libcppconnman example"
When configuring with examples, package build configuration fails with
a missing readline library. You can reproduce with:
cat >.config <<EOF
BR2_aarch64=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_PACKAGE_LIBCPPCONNMAN=y
BR2_PACKAGE_LIBCPPCONNMAN_EXAMPLE=y
EOF
make olddefconfig
make libcppconnman
Could you add this missing dependency (both in Config.in and in the .mk
file)
please?
> + help
> + Compile CLI example.
> +
> +endif
Could you send an updated patch fixing those issues, please?
Best regards,
Julien.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH v2] package/libcppconnman: add new package
2026-07-19 13:16 ` Julien Olivain via buildroot
@ 2026-07-20 9:00 ` Andrea Ricchi
0 siblings, 0 replies; 3+ messages in thread
From: Andrea Ricchi @ 2026-07-20 9:00 UTC (permalink / raw)
To: Julien Olivain; +Cc: buildroot
[-- Attachment #1.1: Type: text/plain, Size: 3660 bytes --]
Hi Julien,
Thanks a lot for the review.
I am currently fixing the issues reported, including the build failures and
the missing readline dependency for the examples. I will send the v3 patch
as soon as it is ready.
Thanks,
Andrea Ricchi
Embedded Software Engineer
M. +39 333 775 4973
andrea.ricchi@amarulasolutions.com
―――――――――――――――
Amarula Solutions SRL
Via Felice Cavallotti 25D, 41012 Carpi, MO, IT
info@amarulasolutions.com
www.amarulasolutions.com
On Sun, Jul 19, 2026 at 3:16 PM Julien Olivain <ju.o@free.fr> wrote:
> Hi Andrea,
>
> Thanks for the patch.
>
> The package introduces build failures for some toolchains. See:
> https://gitlab.com/jolivain/buildroot/-/pipelines/2688533526
>
> You can reproduce locally with the command:
> utils/test-pkg -a -p libcppconnman
>
> I have another comment, see below.
>
> On 17/07/2026 11:32, Andrea Ricchi wrote:
> > libcppconnman is a C++ library that provides an easy-to-use API
> > to communicate with ConnMan over D-Bus using GDBus.
> >
> > https://github.com/amarula/libcppconnman
> >
> > Also add myself to DEVELOPERS for this package.
> >
> > Signed-off-by: Andrea Ricchi <andrea.ricchi@amarulasolutions.com>
> > ---
> > Changes v1 -> v2:
> > - add missing libcppconnman entry in package/Config.in
> > - merge the DEVELOPERS addition into this patch
> >
> > DEVELOPERS | 1 +
> > package/Config.in | 1 +
> > package/libcppconnman/Config.in | 26 ++++++++++++++++++++++++
> > package/libcppconnman/libcppconnman.hash | 3 +++
> > package/libcppconnman/libcppconnman.mk | 24 ++++++++++++++++++++++
> > 5 files changed, 55 insertions(+)
> > create mode 100644 package/libcppconnman/Config.in
> > create mode 100644 package/libcppconnman/libcppconnman.hash
> > create mode 100644 package/libcppconnman/libcppconnman.mk
> >
> [...]
> > diff --git a/package/libcppconnman/Config.in
> > b/package/libcppconnman/Config.in
> > new file mode 100644
> > index 0000000000..19dc0bbd2d
> > --- /dev/null
> > +++ b/package/libcppconnman/Config.in
> > @@ -0,0 +1,26 @@
> > +config BR2_PACKAGE_LIBCPPCONNMAN
> > + bool "libcppconnman"
> > + depends on BR2_INSTALL_LIBSTDCPP
> > + depends on BR2_USE_WCHAR # libglib2
> > + depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
> > + depends on BR2_USE_MMU # libglib2
> > + select BR2_PACKAGE_LIBGLIB2
> > + help
> > + libcppconnman provide easy to use C++ API to communicate
> > + with ConnMan via the DBus using GDBus.
> > +
> > + https://amarula.github.io/libcppconnman/
> > +
> > +comment "libcppconnman needs a toolchain w/ C++, wchar, threads"
> > + depends on BR2_USE_MMU
> > + depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR || \
> > + !BR2_TOOLCHAIN_HAS_THREADS
> > +
> > +if BR2_PACKAGE_LIBCPPCONNMAN
> > +
> > +config BR2_PACKAGE_LIBCPPCONNMAN_EXAMPLE
> > + bool "libcppconnman example"
>
> When configuring with examples, package build configuration fails with
> a missing readline library. You can reproduce with:
>
> cat >.config <<EOF
> BR2_aarch64=y
> BR2_TOOLCHAIN_EXTERNAL=y
> BR2_PACKAGE_LIBCPPCONNMAN=y
> BR2_PACKAGE_LIBCPPCONNMAN_EXAMPLE=y
> EOF
> make olddefconfig
> make libcppconnman
>
> Could you add this missing dependency (both in Config.in and in the .mk
> file)
> please?
>
> > + help
> > + Compile CLI example.
> > +
> > +endif
>
> Could you send an updated patch fixing those issues, please?
>
> Best regards,
>
> Julien.
>
[-- Attachment #1.2: Type: text/html, Size: 5678 bytes --]
[-- Attachment #2: Type: text/plain, Size: 150 bytes --]
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-07-20 9:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-17 9:32 [Buildroot] [PATCH v2] package/libcppconnman: add new package Andrea Ricchi
2026-07-19 13:16 ` Julien Olivain via buildroot
2026-07-20 9:00 ` Andrea Ricchi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox