Skip to contentSkip to conversation

networkmanager: fix some missing pkgconfig

PATCH Applied [email protected] 3 participants 4 messages Dec 20, 2023 – Dec 27, 2023

v2 of 3 Applied Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 networkmanager: fix some missing pkgconfig

From: Thomas Perrot <[email protected]>

- to build and package nmtui
- to automatically append networkmanager-adsl and networkmanager-wwan in recommended packages.
- to fix an invalid-packageconfig QA issue that is raised when adsl and wwan are added in pkgconfig.

---
 .../networkmanager/networkmanager_1.44.0.bb                  | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
meta-networking/recipes-connectivity/networkmanager/networkmanager_1.44.0.bb +4 -1
index 867d13327144..f50cb842dbb7 100644
@@ -111,6 +111,7 @@ PACKAGECONFIG[iwd] = "-Diwd=true,-Diwd=false"
 PACKAGECONFIG[ifupdown] = "-Difupdown=true,-Difupdown=false"
 PACKAGECONFIG[cloud-setup] = "-Dnm_cloud_setup=true,-Dnm_cloud_setup=false"
 PACKAGECONFIG[nmcli] = "-Dnmcli=true,-Dnmcli=false"
+PACKAGECONFIG[nmtui] = "-Dnmtui=true,-Dnmtui=false,libnewt"
 PACKAGECONFIG[readline] = "-Dreadline=libreadline,,readline"
 PACKAGECONFIG[libedit] = "-Dreadline=libedit,,libedit"
 PACKAGECONFIG[ovs] = "-Dovs=true,-Dovs=false,jansson"
@@ -120,6 +121,8 @@ PACKAGECONFIG[vala] = "-Dvapi=true,-Dvapi=false"
 PACKAGECONFIG[dhcpcd] = "-Ddhcpcd=${base_sbindir}/dhcpcd,-Ddhcpcd=no,,dhcpcd"
 PACKAGECONFIG[dhclient] = "-Ddhclient=yes,-Ddhclient=no,,dhcp"
 PACKAGECONFIG[concheck] = "-Dconcheck=true,-Dconcheck=false"
+PACKAGECONFIG[adsl] = ",,"
+PACKAGECONFIG[wwan] = ",,"
 # The following PACKAGECONFIG is used to determine whether NM is managing /etc/resolv.conf itself or not
 PACKAGECONFIG[man-resolv-conf] = ",,"
 
@@ -189,7 +192,7 @@ FILES:${PN}-nmtui = " \
     ${bindir}/nmtui-connect \
     ${bindir}/nmtui-hostname \
 "
-RDEPENDS:${PN}-nmtui += "${PN}-daemon"
+RDEPENDS:${PN}-nmtui += "${PN}-daemon ${@bb.utils.contains('PACKAGECONFIG','nmtui','libnewt','',d)}"
 
 SUMMARY:${PN}-wifi = "Wifi plugin for NetworkManager"
 FILES:${PN}-wifi = "\
Signature · 1 line
2.43.0
#2 lore raw
Quoted 8 lines · Ross Burton
Quoted 3 lines · Thomas Perrot via lists.openembedded.org

+RDEPENDS:${PN}-nmtui += "${PN}-daemon ${@bb.utils.contains('PACKAGECONFIG','nmtui','libnewt','',d)}”

My point still remains: it looks like nmtui links to libnewt directly and doesn’t dlopen, so why is this needed?

This is a mistake, this isn't necessary, thank you.

Kind regards,
Thomas Perrot

Quoted 17 lines

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/blob/main/src/libnmt-newt/meson.build?ref_type=heads#L29

Ross

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#107661):
https://lists.openembedded.org/g/openembedded-devel/message/107661
Mute This Topic: https://lists.openembedded.org/mt/103281132/5443093
Group Owner: [email protected] Unsubscribe:
https://lists.openembedded.org/g/openembedded-devel/unsub [
[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
Thomas Perrot, Bootlin
Embedded Linux and kernel engineering
https://bootlin.com
Applied
#3 lore raw
In reply to [email protected]
Quoted 8 lines · On Wed, 20 Dec 2023 15:15:50 +0100, [email protected] wrote:

- to build and package nmtui
- to automatically append networkmanager-adsl and networkmanager-wwan in recommended packages.
- to fix an invalid-packageconfig QA issue that is raised when adsl and wwan are added in pkgconfig.

[...]

Applied, thanks!

[1/1] networkmanager: fix some missing pkgconfig

      commit: c331f59e42e9c0bda9d47d0365e6c276746fc81d

Best regards,

Signature · 1 line
Khem Raj <[email protected]>