networkmanager: fix build with enabled ppp
PATCH 1/1 networkmanager: fix build with enabled ppp
If 'ppp' packageconfig option is enabled, but the build system does NOT have pppd binary installed, the build fails with:
| Has header "pppd/pppd.h" : YES | Program pppd /sbin/pppd /usr/sbin/pppd found: NO | | ../NetworkManager-1.36.2/meson.build:570:4: ERROR: Assert failed: pppd required but not found, please provide a valid pppd path or use -Dppp=false to disable it
This is due to meson trying to look for the 'pppd' binary in the build system when it should not. If the build system does not contain pppd, the build fails.
--- .../networkmanager/networkmanager_1.36.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-networking/recipes-connectivity/networkmanager/networkmanager_1.36.2.bb +1 -1
@@ -83,7 +83,7 @@ PACKAGECONFIG[bluez5] = "-Dbluez5_dun=true,-Dbluez5_dun=false,bluez5" # consolekit is not picked by shlibs, so add it to RDEPENDS too PACKAGECONFIG[consolekit] = "-Dsession_tracking_consolekit=true,-Dsession_tracking_consolekit=false,consolekit,consolekit" PACKAGECONFIG[modemmanager] = "-Dmodem_manager=true,-Dmodem_manager=false,modemmanager mobile-broadband-provider-info" -PACKAGECONFIG[ppp] = "-Dppp=true,-Dppp=false,ppp,ppp" +PACKAGECONFIG[ppp] = "-Dppp=true -Dpppd=/usr/sbin/pppd,-Dppp=false,ppp,ppp" PACKAGECONFIG[dnsmasq] = "-Ddnsmasq=${bindir}/dnsmasq" PACKAGECONFIG[nss] = "-Dcrypto=nss,,nss" PACKAGECONFIG[resolvconf] = "-Dresolvconf=${base_sbindir}/resolvconf,-Dresolvconf=no,,resolvconf"
do we need this patch on master too where we have networkmanager 1.38
Quoted 39 lines · Javier Viguera via lists.openembedded.org
If 'ppp' packageconfig option is enabled, but the build system does NOT have pppd binary installed, the build fails with:
| Has header "pppd/pppd.h" : YES | Program pppd /sbin/pppd /usr/sbin/pppd found: NO | | ../NetworkManager-1.36.2/meson.build:570:4: ERROR: Assert failed: pppd required but not found, please provide a valid pppd path or use -Dppp=false to disable itThis is due to meson trying to look for the 'pppd' binary in the build system when it should not. If the build system does not contain pppd, the build fails.
Signed-off-by Javier Viguera <[email protected]>--- .../networkmanager/networkmanager_1.36.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)meta-networking/recipes-connectivity/networkmanager/networkmanager_1.36.2.bb +1
-2@@ -83,7 +83,7 @@ PACKAGECONFIG[bluez5] = "-Dbluez5_dun=true,-Dbluez5_dun=false,bluez5" # consolekit is not picked by shlibs, so add it to RDEPENDS too PACKAGECONFIG[consolekit] = "-Dsession_tracking_consolekit=true,-Dsession_tracking_consolekit=false,consolekit,consolekit" PACKAGECONFIG[modemmanager] = "-Dmodem_manager=true,-Dmodem_manager=false,modemmanager mobile-broadband-provider-info" -PACKAGECONFIG[ppp] = "-Dppp=true,-Dppp=false,ppp,ppp" +PACKAGECONFIG[ppp] = "-Dppp=true -Dpppd=/usr/sbin/pppd,-Dppp=false,ppp,ppp" PACKAGECONFIG[dnsmasq] = "-Ddnsmasq=${bindir}/dnsmasq" PACKAGECONFIG[nss] = "-Dcrypto=nss,,nss" PACKAGECONFIG[resolvconf] = "-Dresolvconf=${base_sbindir}/resolvconf,-Dresolvconf=no,,resolvconf" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#97600): https://lists.openembedded.org/g/openembedded-devel/message/97600
Mute This Topic: https://lists.openembedded.org/mt/92020681/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
Hi Raj,
Yes it failed exactly the same in *master*. For example building master for qemuarm fails with:
| Has header "pppd/pppd.h" : YES | Program pppd /sbin/pppd /usr/sbin/pppd found: NO | | ../NetworkManager-1.38.0/meson.build:571:4: ERROR: Assert failed: pppd required but not found, please provide a valid pppd path or use -Dppp=false to disable it
-- jviguera
-----Original Message-----
From: Khem Raj <[email protected]>
Sent: Wednesday, June 29, 2022 19:06
To: Viguera, Javier <[email protected]>; [email protected]
Cc: [email protected]
Subject: Re: [oe] [meta-networking][kirkstone][PATCH] networkmanager: fix build with enabled ppp
do we need this patch on master too where we have networkmanager 1.38
Em seg., 27 de jun. de 2022 às 10:39, Javier Viguera via lists.openembedded.org <[email protected]> escreveu:
Quoted 7 lines
If 'ppp' packageconfig option is enabled, but the build system does NOT have pppd binary installed, the build fails with:
| Has header "pppd/pppd.h" : YES | Program pppd /sbin/pppd /usr/sbin/pppd found: NO | | ../NetworkManager-1.36.2/meson.build:570:4: ERROR: Assert failed: pppd
Quoted 9 lines
required but not found, please provide a valid pppd path or use -Dppp=false to disable it
This is due to meson trying to look for the 'pppd' binary in the build system when it should not. If the build system does not contain pppd, the build fails.
Signed-off-by Javier Viguera <[email protected]>
Please send it against master, first, then we can ask for backports.
Signature · 3 lines
Otavio Salvador O.S. Systems http://www.ossystems.com.br http://code.ossystems.com.br Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750
From: Otavio Salvador <[email protected]>
Sent: Friday, July 1, 2022 13:45
To: Viguera, Javier <[email protected]>
Cc: OpenEmbedded Devel List <[email protected]>; akuster808 <[email protected]>
Subject: Re: [oe] [meta-networking][kirkstone][PATCH] networkmanager: fix build with enabled ppp
Please send it against master, first, then we can ask for backports.
It’s already on *master-next*
-- jviguera
Quoted 16 lines · Otavio Salvador
Em seg., 27 de jun. de 2022 às 10:39, Javier Viguera via lists.openembedded.org <[email protected]> escreveu:
Quoted 10 lines
If 'ppp' packageconfig option is enabled, but the build system does NOT have pppd binary installed, the build fails with:
| Has header "pppd/pppd.h" : YES | Program pppd /sbin/pppd /usr/sbin/pppd found: NO | | ../NetworkManager-1.36.2/meson.build:570:4: ERROR: Assert failed: pppdrequired but not found, please provide a valid pppd path or use -Dppp=false to disable it
Quoted 9 lines
Quoted 6 lines
This is due to meson trying to look for the 'pppd' binary in the build system when it should not. If the build system does not contain pppd, the build fails.
Signed-off-by Javier Viguera <[email protected]>Please send it against master, first, then we can ask for backports.
I have staged it with a bit of editing
Quoted 16 lines
--
Otavio SalvadorO.S. Systems
http://www.ossystems.com.br http://code.ossystems.com.br
Mobile: +55 (53) 9 9981-7854 Mobile: +1 (347) 903-9750-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#97663):
https://lists.openembedded.org/g/openembedded-devel/message/97663
Mute This Topic: https://lists.openembedded.org/mt/92020681/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-