From 7c440945326db26c3ff2b413956bb3dad223891a Mon Sep 17 00:00:00 2001 From: Jim Broadus Date: Sat, 6 Aug 2022 00:41:15 -0700 Subject: networkmanager: fix iptables and nft paths The NetworkManager meson.build is searching for iptables and nft by passing absolute paths to meson's find_program. The result is that it locates tools on the host machine when they exist at those locations. If they don't, it uses default locations. This often works out, but in some cases, such as when the host uses a merged usr scheme and the build target does not, the paths will be incorrect and the tools won't be found at runtime. These could be PACKAGECONFIG options, but since they have fallback values, completely disabling the use of either iptables or nft would require patching the meson.build or setting a bogus location. Note that this meson.build file follows the same pattern elsewhere, but most cases are already covered by PACKAGECONFIG options. Signed-off-by: Jim Broadus Signed-off-by: Khem Raj --- .../recipes-connectivity/networkmanager/networkmanager_1.38.0.bb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'meta-networking/recipes-connectivity/networkmanager') diff --git a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.38.0.bb b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.38.0.bb index c8fea5dbb7..ebd25a8f8a 100644 --- a/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.38.0.bb +++ b/meta-networking/recipes-connectivity/networkmanager/networkmanager_1.38.0.bb @@ -55,6 +55,8 @@ EXTRA_OEMESON = "\ -Dconfig_dns_rc_manager_default=${NETWORKMANAGER_DNS_RC_MANAGER_DEFAULT} \ -Dconfig_dhcp_default=${NETWORKMANAGER_DHCP_DEFAULT} \ -Ddhcpcanon=false \ + -Diptables=${sbindir}/iptables \ + -Dnft=${sbindir}/nft \ " # stolen from https://github.com/void-linux/void-packages/blob/master/srcpkgs/NetworkManager/template -- cgit v1.2.3-54-g00ecf