diff options
author | Jim Broadus <jbroadus@gmail.com> | 2022-08-06 00:41:15 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2022-08-06 09:51:32 -0700 |
commit | 7c440945326db26c3ff2b413956bb3dad223891a (patch) | |
tree | 5efbe8c9bbb03069ee66e781c363c128b0c5e33f /meta-networking | |
parent | 8b76b6c8e3ffdb30da839408084289c57e292752 (diff) | |
download | meta-openembedded-7c440945326db26c3ff2b413956bb3dad223891a.tar.gz |
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 <jim@thruwave.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-networking')
-rw-r--r-- | meta-networking/recipes-connectivity/networkmanager/networkmanager_1.38.0.bb | 2 |
1 files changed, 2 insertions, 0 deletions
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 = "\ | |||
55 | -Dconfig_dns_rc_manager_default=${NETWORKMANAGER_DNS_RC_MANAGER_DEFAULT} \ | 55 | -Dconfig_dns_rc_manager_default=${NETWORKMANAGER_DNS_RC_MANAGER_DEFAULT} \ |
56 | -Dconfig_dhcp_default=${NETWORKMANAGER_DHCP_DEFAULT} \ | 56 | -Dconfig_dhcp_default=${NETWORKMANAGER_DHCP_DEFAULT} \ |
57 | -Ddhcpcanon=false \ | 57 | -Ddhcpcanon=false \ |
58 | -Diptables=${sbindir}/iptables \ | ||
59 | -Dnft=${sbindir}/nft \ | ||
58 | " | 60 | " |
59 | 61 | ||
60 | # stolen from https://github.com/void-linux/void-packages/blob/master/srcpkgs/NetworkManager/template | 62 | # stolen from https://github.com/void-linux/void-packages/blob/master/srcpkgs/NetworkManager/template |