* [Buildroot] [PATCH] package/pppd: disable for musl toolchains
@ 2016-07-16 16:08 Romain Naour
2016-07-16 18:24 ` Thomas Petazzoni
0 siblings, 1 reply; 4+ messages in thread
From: Romain Naour @ 2016-07-16 16:08 UTC (permalink / raw)
To: buildroot
For the same reason as for ipsec-tools [1], disable pppd for musl
toolchains.
It also include <sys/cdefs.h> which is not provided by musl [2].
This fixes a compilation error with musl libc because of undeclared
__P and missing sys/cdefs.h include.
Propagate the dependency to network-manager and rp-pppoe
packages.
[1] 33499484e457018203023cdfdd5286478f2ae381
[2] http://wiki.musl-libc.org/wiki/FAQ#Q:_I.27m_trying_to_compile_something_against_musl_and_I_get_error_messages_about_sys.2Fcdefs.h
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
package/network-manager/Config.in | 1 +
package/pppd/Config.in | 5 +++--
package/rp-pppoe/Config.in | 5 +++--
3 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/package/network-manager/Config.in b/package/network-manager/Config.in
index 0636415..b1bca7c 100644
--- a/package/network-manager/Config.in
+++ b/package/network-manager/Config.in
@@ -47,6 +47,7 @@ config BR2_PACKAGE_NETWORK_MANAGER_MODEM_MANAGER
config BR2_PACKAGE_NETWORK_MANAGER_PPPD
bool "pppd support"
+ depends on !BR2_TOOLCHAIN_USES_MUSL # pppd
select BR2_PACKAGE_PPPD
help
This option enables support for PPPD daemon
diff --git a/package/pppd/Config.in b/package/pppd/Config.in
index b77d7b0..b56b623 100644
--- a/package/pppd/Config.in
+++ b/package/pppd/Config.in
@@ -1,6 +1,7 @@
config BR2_PACKAGE_PPPD
bool "pppd"
depends on !BR2_STATIC_LIBS
+ depends on !BR2_TOOLCHAIN_USES_MUSL # Use __P() macro all over the tree
depends on BR2_USE_MMU
help
An implementation of the Point-to-point protocol.
@@ -24,6 +25,6 @@ config BR2_PACKAGE_PPPD_RADIUS
endif
-comment "pppd needs a toolchain w/ dynamic library"
- depends on BR2_STATIC_LIBS
+comment "pppd needs a uClibc or glibc toolchain w/ dynamic library"
+ depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
depends on BR2_USE_MMU
diff --git a/package/rp-pppoe/Config.in b/package/rp-pppoe/Config.in
index 7f6afe2..a41de33 100644
--- a/package/rp-pppoe/Config.in
+++ b/package/rp-pppoe/Config.in
@@ -1,10 +1,11 @@
-comment "rp-pppoe needs a toolchain w/ dynamic library"
- depends on BR2_STATIC_LIBS
+comment "rp-pppoe needs a uClibc or glibc toolchain w/ dynamic library"
+ depends on BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL
depends on BR2_USE_MMU
config BR2_PACKAGE_RP_PPPOE
bool "rp-pppoe"
depends on !BR2_STATIC_LIBS
+ depends on !BR2_TOOLCHAIN_USES_MUSL # pppd
depends on BR2_USE_MMU # fork()
select BR2_PACKAGE_PPPD
help
--
2.5.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] package/pppd: disable for musl toolchains
2016-07-16 16:08 [Buildroot] [PATCH] package/pppd: disable for musl toolchains Romain Naour
@ 2016-07-16 18:24 ` Thomas Petazzoni
2016-07-16 18:33 ` Romain Naour
0 siblings, 1 reply; 4+ messages in thread
From: Thomas Petazzoni @ 2016-07-16 18:24 UTC (permalink / raw)
To: buildroot
Hello,
On Sat, 16 Jul 2016 18:08:18 +0200, Romain Naour wrote:
> For the same reason as for ipsec-tools [1], disable pppd for musl
> toolchains.
> It also include <sys/cdefs.h> which is not provided by musl [2].
>
> This fixes a compilation error with musl libc because of undeclared
> __P and missing sys/cdefs.h include.
>
> Propagate the dependency to network-manager and rp-pppoe
> packages.
>
> [1] 33499484e457018203023cdfdd5286478f2ae381
> [2] http://wiki.musl-libc.org/wiki/FAQ#Q:_I.27m_trying_to_compile_something_against_musl_and_I_get_error_messages_about_sys.2Fcdefs.h
>
> Signed-off-by: Romain Naour <romain.naour@gmail.com>
> ---
> package/network-manager/Config.in | 1 +
> package/pppd/Config.in | 5 +++--
> package/rp-pppoe/Config.in | 5 +++--
> 3 files changed, 7 insertions(+), 4 deletions(-)
I've added a Config.in comment in the network-manager package, and
applied. Thanks!
It's a bit sad that we have to disable packages just because of silly
__P macros, but there are indeed tons of them in pppd :-/
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] package/pppd: disable for musl toolchains
2016-07-16 18:24 ` Thomas Petazzoni
@ 2016-07-16 18:33 ` Romain Naour
2016-08-19 5:44 ` Yegor Yefremov
0 siblings, 1 reply; 4+ messages in thread
From: Romain Naour @ 2016-07-16 18:33 UTC (permalink / raw)
To: buildroot
Hi Thomas,
Le 16/07/2016 ? 20:24, Thomas Petazzoni a ?crit :
> Hello,
>
> On Sat, 16 Jul 2016 18:08:18 +0200, Romain Naour wrote:
>> For the same reason as for ipsec-tools [1], disable pppd for musl
>> toolchains.
>> It also include <sys/cdefs.h> which is not provided by musl [2].
>>
>> This fixes a compilation error with musl libc because of undeclared
>> __P and missing sys/cdefs.h include.
>>
>> Propagate the dependency to network-manager and rp-pppoe
>> packages.
>>
>> [1] 33499484e457018203023cdfdd5286478f2ae381
>> [2] http://wiki.musl-libc.org/wiki/FAQ#Q:_I.27m_trying_to_compile_something_against_musl_and_I_get_error_messages_about_sys.2Fcdefs.h
>>
>> Signed-off-by: Romain Naour <romain.naour@gmail.com>
>> ---
>> package/network-manager/Config.in | 1 +
>> package/pppd/Config.in | 5 +++--
>> package/rp-pppoe/Config.in | 5 +++--
>> 3 files changed, 7 insertions(+), 4 deletions(-)
>
> I've added a Config.in comment in the network-manager package, and
> applied. Thanks!
>
> It's a bit sad that we have to disable packages just because of silly
> __P macros, but there are indeed tons of them in pppd :-/
Well, I'm also not really happy to disable packages in Buildroot for such reason :-/
Best regards,
Romain
>
> Thomas
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Buildroot] [PATCH] package/pppd: disable for musl toolchains
2016-07-16 18:33 ` Romain Naour
@ 2016-08-19 5:44 ` Yegor Yefremov
0 siblings, 0 replies; 4+ messages in thread
From: Yegor Yefremov @ 2016-08-19 5:44 UTC (permalink / raw)
To: buildroot
On Sat, Jul 16, 2016 at 8:33 PM, Romain Naour <romain.naour@gmail.com> wrote:
> Hi Thomas,
>
> Le 16/07/2016 ? 20:24, Thomas Petazzoni a ?crit :
>> Hello,
>>
>> On Sat, 16 Jul 2016 18:08:18 +0200, Romain Naour wrote:
>>> For the same reason as for ipsec-tools [1], disable pppd for musl
>>> toolchains.
>>> It also include <sys/cdefs.h> which is not provided by musl [2].
>>>
>>> This fixes a compilation error with musl libc because of undeclared
>>> __P and missing sys/cdefs.h include.
>>>
>>> Propagate the dependency to network-manager and rp-pppoe
>>> packages.
>>>
>>> [1] 33499484e457018203023cdfdd5286478f2ae381
>>> [2] http://wiki.musl-libc.org/wiki/FAQ#Q:_I.27m_trying_to_compile_something_against_musl_and_I_get_error_messages_about_sys.2Fcdefs.h
>>>
>>> Signed-off-by: Romain Naour <romain.naour@gmail.com>
>>> ---
>>> package/network-manager/Config.in | 1 +
>>> package/pppd/Config.in | 5 +++--
>>> package/rp-pppoe/Config.in | 5 +++--
>>> 3 files changed, 7 insertions(+), 4 deletions(-)
>>
>> I've added a Config.in comment in the network-manager package, and
>> applied. Thanks!
>>
>> It's a bit sad that we have to disable packages just because of silly
>> __P macros, but there are indeed tons of them in pppd :-/
>
> Well, I'm also not really happy to disable packages in Buildroot for such reason :-/
Some MUSL related pull-requests appeared lately: from
https://github.com/paulusmack/ppp/pull/60 till
https://github.com/paulusmack/ppp/pull/65
I hope, they can be pulled in the near future.
Yegor
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-08-19 5:44 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-07-16 16:08 [Buildroot] [PATCH] package/pppd: disable for musl toolchains Romain Naour
2016-07-16 18:24 ` Thomas Petazzoni
2016-07-16 18:33 ` Romain Naour
2016-08-19 5:44 ` Yegor Yefremov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox