package/p11-kit: switch to meson build system
commit: https://gitlab.com/buildroot.org/buildroot/-/commit/1923f760bbf8ac7ed43f90d2e7df33faebe9afb8
branch: https://gitlab.com/buildroot.org/buildroot/-/tree/master
P11-kit has been offering a meson build since 0.23.17 (see upstream NEWS [1]), and it is the build system described in the upstream README.
Changes in the switch to meson:
* Explicitly enable/disable NLS.
* Explicitly enable/disable bash-completion.
* The meson build has no explicit option for libtasn1, it is required if trust_module is enabled.
* Add patch for meson configuration to avoid depending on systemd to discover install location for units, which would create a dependency loop.
* Check for BR2_INIT_SYSTEMD instead of BR2_PACKAGE_SYSTEMD to decide whether to install systemd units.
[1] https://github.com/p11-glue/p11-kit/blob/0.26.5/NEWS#L164
--- ...-setting-systemduserunitdir-to-break-depe.patch | 61 +++++++++++++++++++ package/p11-kit/p11-kit.mk | 70 ++++++++++++---------- 2 files changed, 100 insertions(+), 31 deletions(-)
package/p11-kit/0001-meson-allow-setting-systemduserunitdir-to-break-depe.patch new file +61 -0
@@ -0,0 +1,61 @@ +From 709e37f781e50ef981d337249c574a9255691665 Mon Sep 17 00:00:00 2001 +From: Fiona Klute <[email protected]> +Date: Sat, 17 Oct 2026 14:33:02 +0200 +Subject: [PATCH] meson: allow setting systemduserunitdir to break dependency + loop + +The dependency on systemd is only used to retrieve systemduserunitdir, +not otherwise needed during build. However, p11-kit is also an +(optional) dependency of systemd, creating a dependency loop. + +This patch allows setting systemduserunitdir directly to break the +dependency loop. If set, the given value is used unconditionally +without checking for systemd, otherwise systemd is detected as before. + +Signed-off-by: Fiona Klute <[email protected]> +Upstream: https://github.com/p11-glue/p11-kit/pull/788 +--- + meson.build | 11 ++++++++--- + meson_options.txt | 4 ++++ + 2 files changed, 12 insertions(+), 3 deletions(-) + +diff --git a/meson.build b/meson.build +index 38cf81b..9e76d62 100644 +--- a/meson.build ++++ b/meson.build +@@ -456,9 +456,14 @@ conf.set_quoted('TRUST_PATHS', trust_paths) + # systemd + + with_systemd = false +-systemd = dependency('systemd', required: get_option('systemd')) +-if systemd.found() +- systemduserunitdir = systemd.get_variable(pkgconfig : 'systemduserunitdir') ++systemduserunitdir = get_option('systemduserunitdir') ++if systemduserunitdir == '' ++ systemd = dependency('systemd', required: get_option('systemd')) ++ if systemd.found() ++ systemduserunitdir = systemd.get_variable(pkgconfig : 'systemduserunitdir') ++ with_systemd = true ++ endif ++else + with_systemd = true + endif + +diff --git a/meson_options.txt b/meson_options.txt +index c1f2362..a7c0553 100644 +--- a/meson_options.txt ++++ b/meson_options.txt +@@ -46,6 +46,10 @@ option('systemd', type : 'feature', + value : 'auto', + description : 'Use systemd socket activation') + ++option('systemduserunitdir', type : 'string', ++ value : '', ++ description : 'Override default location for systemd user units') ++ + option('bashcompdir', type : 'string', + value : '', + description : 'Override default location for bash completion files') +-- +2.55.0 +
package/p11-kit/p11-kit.mk +39 -31
96 lines not on this page · raw message
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot