Skip to contentSkip to conversation

musl: Upgrade to 1.1.16+ on master

PATCH In review Khem Raj 3 participants 10 messages Jan 3, 2017 – Jan 11, 2017

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 musl: Upgrade to 1.1.16+ on master

summary of changes

http://git.musl-libc.org/cgit/musl/commit/?id=8fe1f2d79b275b7f7fb0d41c99e379357df63cd9

---
 meta/recipes-core/musl/musl_git.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/musl/musl_git.bb +2 -2
index b0c6098133..e9b9fef601 100644
@@ -3,9 +3,9 @@
 
 require musl.inc
 
-SRCREV = "54991729fd1e3d3a0cb71884d758d86afe6da9e0"
+SRCREV = "769f53598e781ffc89191520f3f8a93cb58db91f"
 
-PV = "1.1.15+git${SRCPV}"
+PV = "1.1.16+git${SRCPV}"
 
 # mirror is at git://github.com/kraj/musl.git
 
Signature · 1 line
2.11.0
author
#2 lore raw
Quoted 6 lines · Ross
Quoted 4 lines · Khem Raj

summary of changes

Quoted 8 lines
Quoted 3 lines

http://git.musl-libc.org/cgit/musl/commit/?id=8fe1f2d79b275b7f7fb0d41c99e379357df63cd9

Looks like this is to blame for connman failing last in my test builds:

http://errors.yoctoproject.org/Errors/Details/116506/

I think its the kernel 4.9 headers thats causing it not musl. Do you have that patch also staged along with this ?

Quoted 2 lines

Ross

#3 lore raw
Quoted 4 lines · Khem Raj

I think its the kernel 4.9 headers thats causing it not musl. Do you have that
patch also staged along with this ?

Maybe. ;)

Ross

author
#4 lore raw
Quoted 9 lines · Ross
Quoted 4 lines · Khem Raj

I think its the kernel 4.9 headers thats causing it not musl. Do you have that
patch also staged along with this ?

Maybe. ;)

regardless, I posted a patch for ppp for fixing same issue, seee

https://patchwork.openembedded.org/patch/135536/

may be the same or similar patch can be applied to connman as well.

Quoted 2 lines

Ross

#5 lore raw
Quoted 6 lines · Khem Raj

regardless, I posted a patch for ppp for fixing same issue, seee

https://patchwork.openembedded.org/patch/135536/

may be the same or similar patch can be applied to connman as well.

Similar but not the same.

connman/src/iptables.c includes <xtables.h> and nothing else relevant as far as I can tell. However the fragment of code that is throwing an error (pulled in via xtables.h) is only enabled because the kernel headers don't think that the libc is defining IFF_LOWER_UP, but musl is.
https://git.busybox.net/buildroot/commit/?id=4470dd9b1bdbb9b39e9fb13f27bcaa044719de6d
is
how buildroot work around this, by defining a _UAPI symbol that the kernel header listens to.

Ross

#6 lore raw
Quoted 12 lines · Ross
Quoted 6 lines · Khem Raj

regardless, I posted a patch for ppp for fixing same issue, seee

https://patchwork.openembedded.org/patch/135536/

may be the same or similar patch can be applied to connman as well.

Similar but not the same.

Several core connman files do include linux/if.h (and xtables includes net/if.h) but I don't think these can be avoided.

connman/src/iptables.c includes <xtables.h> and nothing else relevant as

Quoted 7 lines

far as I can tell. However the fragment of code that is throwing an error (pulled in via xtables.h) is only enabled because the kernel headers don't think that the libc is defining IFF_LOWER_UP, but musl is.
https://git.busybox.net/buildroot/commit/?id=
4470dd9b1bdbb9b39e9fb13f27bcaa044719de6d is how buildroot work around this, by defining a _UAPI symbol that the kernel header listens to.

I did pretty much the same "fix" inside connman (defined __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 0 everywhere the problem shows up) and it works... but should the hack be done somewhere in the toolchain instead?

- Jussi

Quoted 9 lines

Ross

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#7 lore raw
Quoted 5 lines · Jussi Kukkonen

I did pretty much the same "fix" inside connman (defined __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 0 everywhere the problem shows up) and it works... but should the hack be done somewhere in the toolchain instead?

I'm pretty convinced that musl's if.h should be defining it.

Ross

author
#8 lore raw
Quoted 11 lines · Ross
Quoted 5 lines · Jussi Kukkonen

I did pretty much the same "fix" inside connman (defined __UAPI_DEF_IF_NET_DEVICE_FLAGS_LOWER_UP_DORMANT_ECHO 0 everywhere the problem shows up) and it works... but should the hack be done somewhere in the toolchain instead?

I'm pretty convinced that musl's if.h should be defining it.

kernel does have a file to abstact the libc nuances uapi/linux/libc-compat.h

sadly, it assumes that only libc linux kernel supports is glibc and that is what the problem is here.

Quoted 2 lines

Ross

#9 lore raw
Quoted 7 lines · Khem Raj
Quoted 1 line

I'm pretty convinced that musl's if.h should be defining it.

kernel does have a file to abstact the libc nuances uapi/linux/libc-compat.h

sadly, it assumes that only libc linux kernel supports is glibc and that is what the problem is here.

musl's include/netinet/in.h already defines a bunch of __UAPI_DEF_* defines (introduced in 04983f22), wouldn't this just be another one to add?

Ross