connman: Pick fixes from previous series
cover connman: Pick fixes from previous series
Drop the full PACKAGECONFIG/package layout changes and just pick the fixes from the previous series.
---
Alex Kiernan (5):
connman: Set --runstatedir to ${runtimedir}
connman: Create ${sysconfdir} for systemd images
connman: Add iptables/ip6tables-save to ac_cv_path
connman: Mark iptables/nftables mutually incompatible
connman: Set dns-backend automatically
...vice-stop-systemd-resolved-when-we-use-co.patch | 26 ---------------------- meta/recipes-connectivity/connman/connman_1.44.bb | 14 +++++++----- 2 files changed, 9 insertions(+), 31 deletions(-)
---
base-commit: 927d804422c998b5c941049f45a3d77c0668a43e
change-id: 20250415-connman-fixes-2eb8f27e9178
Best regards,
Signature · 1 line
Alex Kiernan <[email protected]>
PATCH 1/5 connman: Set --runstatedir to ${runtimedir}
We have ${runtimedir} for /run, use it here.
--- meta/recipes-connectivity/connman/connman_1.44.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-connectivity/connman/connman_1.44.bb +1 -1
@@ -37,7 +37,7 @@ EXTRA_OECONF += "\ --enable-ethernet \ --enable-tools \ --disable-polkit \ - --runstatedir=/run \ + --runstatedir='${runtimedir}' \ " # For smooth operation it would be best to start only one wireless daemon at a time. # If wpa-supplicant is running, connman will use it preferentially.
Signature · 1 line
2.46.1
PATCH 2/5 connman: Create ${sysconfdir} for systemd images
In reply to Alex KiernanDepending on what set of PACKAGECONFIG options you have, ${sysconfdir} may not have been created.
--- meta/recipes-connectivity/connman/connman_1.44.bb | 1 + 1 file changed, 1 insertion(+)
meta/recipes-connectivity/connman/connman_1.44.bb +1 -0
@@ -115,6 +115,7 @@ do_install:append() { # For read-only filesystem, do not create links during bootup if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then + install -d ${D}${sysconfdir} ln -sf ../run/connman/resolv.conf ${D}${sysconfdir}/resolv-conf.connman fi }
Signature · 1 line
2.46.1
PATCH 3/5 connman: Add iptables/ip6tables-save to ac_cv_path
In reply to Alex KiernanSet the paths for iptables/ip6tables so that they are correct for the target install and not discovered on the host filesystem.
--- meta/recipes-connectivity/connman/connman_1.44.bb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
meta/recipes-connectivity/connman/connman_1.44.bb +3 -1
@@ -30,8 +30,10 @@ RRECOMMENDS:${PN} = "connman-conf" RCONFLICTS:${PN} = "networkmanager" EXTRA_OECONF += "\ - ac_cv_path_WPASUPPLICANT=${sbindir}/wpa_supplicant \ + ac_cv_path_IP6TABLES_SAVE=${sbindir}/ip6tables-save \ + ac_cv_path_IPTABLES_SAVE=${sbindir}/iptables-save \ ac_cv_path_PPPD=${sbindir}/pppd \ + ac_cv_path_WPASUPPLICANT=${sbindir}/wpa_supplicant \ --enable-debug \ --enable-loopback \ --enable-ethernet \
Signature · 1 line
2.46.1
PATCH 4/5 connman: Mark iptables/nftables mutually incompatible
In reply to Alex KiernanOnly one of iptables or nftables can be specified, mark them mutually incompatible. Drop the RDEPENDS on iptables from PACKAGECONFIG as its libraries are automatically discovered on the main package, with only the scripts required as part of iptables/ip6tables-test.
--- meta/recipes-connectivity/connman/connman_1.44.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)
meta/recipes-connectivity/connman/connman_1.44.bb +3 -2
@@ -69,8 +69,8 @@ PACKAGECONFIG[l2tp] = "--enable-l2tp --with-l2tp=${sbindir}/xl2tpd,--disable-l2t PACKAGECONFIG[pptp] = "--enable-pptp --with-pptp=${sbindir}/pptp,--disable-pptp,ppp,pptp-linux" # WISPr support for logging into hotspots, requires TLS PACKAGECONFIG[wispr] = "--enable-wispr,--disable-wispr,gnutls," -PACKAGECONFIG[nftables] = "--with-firewall=nftables ,,libmnl libnftnl,,kernel-module-nf-tables kernel-module-nft-chain-nat-ipv4 kernel-module-nft-chain-route-ipv4 kernel-module-nft-masq-ipv4 kernel-module-nft-nat" -PACKAGECONFIG[iptables] = "--with-firewall=iptables ,,iptables,iptables" +PACKAGECONFIG[nftables] = "--with-firewall=nftables ,,libmnl libnftnl,,kernel-module-nf-tables kernel-module-nft-chain-nat-ipv4 kernel-module-nft-chain-route-ipv4 kernel-module-nft-masq-ipv4 kernel-module-nft-nat,iptables" +PACKAGECONFIG[iptables] = "--with-firewall=iptables,,iptables,,,nftables" PACKAGECONFIG[nfc] = "--enable-neard, --disable-neard, neard, neard" PACKAGECONFIG[client] = "--enable-client,--disable-client,readline" PACKAGECONFIG[wireguard] = "--enable-wireguard,--disable-wireguard,libmnl"
@@ -167,6 +167,7 @@ FILES:${PN}-tools = "${bindir}/wispr" RDEPENDS:${PN}-tools = "${PN}" FILES:${PN}-tests = "${bindir}/*-test" +RDEPENDS:${PN}-tests = "${@bb.utils.contains('PACKAGECONFIG', 'iptables', 'iptables', '', d)}" FILES:${PN}-client = "${bindir}/connmanctl" RDEPENDS:${PN}-client = "${PN}"
Signature · 1 line
2.46.1
PATCH 5/5 connman: Set dns-backend automatically
In reply to Alex Kiernanconnman supports systemd-resolved as a resolver, select it automatically when DISTRO_FEATURES includes systemd-resolved support, then drop the patch which disables connman when systemd-resolved is active.
--- ...vice-stop-systemd-resolved-when-we-use-co.patch | 26 ---------------------- meta/recipes-connectivity/connman/connman_1.44.bb | 2 +- 2 files changed, 1 insertion(+), 27 deletions(-)
meta/recipes-connectivity/connman/connman/0001-connman.service-stop-systemd-resolved-when-we-use-co.patch deleted +0 -26
@@ -1,26 +0,0 @@ -From 19aff57e4da920d9ca972903582305b4efe81ef3 Mon Sep 17 00:00:00 2001 -From: "Maxin B. John" <[email protected]> -Date: Mon, 12 Jun 2017 16:52:39 +0300 -Subject: [PATCH] connman.service: stop systemd-resolved when we use connman - -Stop systemd-resolved service when we use connman as network manager. - -Upstream-Status: Inappropriate [configuration] - -Signed-off-by: Maxin B. John <[email protected]> ---- - src/connman.service.in | 1 + - 1 file changed, 1 insertion(+) - -diff --git a/src/connman.service.in b/src/connman.service.in -index 7376346..79e75d6 100644 ---- a/src/connman.service.in -+++ b/src/connman.service.in -@@ -6,6 +6,7 @@ RequiresMountsFor=@localstatedir@/lib/connman - After=dbus.service network-pre.target systemd-sysusers.service - Before=network.target multi-user.target shutdown.target - Wants=network.target -+Conflicts=systemd-resolved.service - - [Service] - Type=dbus
meta/recipes-connectivity/connman/connman_1.44.bb +1 -1
@@ -19,7 +19,6 @@ CVE_PRODUCT = "connman connection_manager" DEPENDS = "dbus glib-2.0" SRC_URI = "${KERNELORG_MIRROR}/linux/network/${BPN}/${BP}.tar.xz \ - file://0001-connman.service-stop-systemd-resolved-when-we-use-co.patch \ file://connman \ file://0002-resolve-musl-does-not-implement-res_ninit.patch \ "
@@ -40,6 +39,7 @@ EXTRA_OECONF += "\ --enable-tools \ --disable-polkit \ --runstatedir='${runtimedir}' \ + --with-dns-backend='${@bb.utils.contains("DISTRO_FEATURES", "systemd-resolved", "systemd-resolved", "internal", d)}' \ " # For smooth operation it would be best to start only one wireless daemon at a time. # If wpa-supplicant is running, connman will use it preferentially.
Signature · 1 line
2.46.1