Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 551614

Summary: =sys-app/busybox-1.23.1-r1 fails to build on armv7a-hardened-musl
Product: Gentoo Linux Reporter: Michael Jones <gentoo>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=567506
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: build.log.gz

Description Michael Jones 2015-06-09 22:39:36 UTC
This bug should be made a blocker on https://bugs.gentoo.org/show_bug.cgi?id=430702

And assigned to blueness@gentoo.org



Reproducible: Always
Comment 1 Michael Jones 2015-06-09 22:40:02 UTC
Created attachment 404848 [details]
build.log.gz
Comment 2 Anthony Basile gentoo-dev 2015-06-10 11:07:57 UTC
The work around has been to disable the applets causing issues, but proper patches should be developed:

@@ -117,6 +117,11 @@
 	busybox_config_option n USE_PORTABLE_CODE
 	busybox_config_option n WERROR
 
+	# turn off some options causing trouble with musl
+	busybox_config_option n EXTRA_COMPAT
+	busybox_config_option n FEATURE_VI_REGEX_SEARCH
+	busybox_config_option n IFPLUGD
+
 	# If these are not set and we are using a uclibc/busybox setup
 	# all calls to system() will fail.
 	busybox_config_option y ASH


Maybe take a look at what alpine linux is doing with busybox.
Comment 3 Felix Janda 2015-06-15 18:23:48 UTC
All low hanging fruit is already fixed upstream.

ifplugd seems to compile fine now.

FEATURE_VI_REGEX_SEARCH and EXTRA_COMPAT need the unportable GNU regex
and are not easy to fix.
Comment 4 Anthony Basile gentoo-dev 2015-12-05 15:17:20 UTC
(In reply to Felix Janda from comment #3)
> All low hanging fruit is already fixed upstream.
> 
> ifplugd seems to compile fine now.

yep just discovered that

> 
> FEATURE_VI_REGEX_SEARCH and EXTRA_COMPAT need the unportable GNU regex
> and are not easy to fix.

these are still off, its UTMP that needs clean up in 1.24.1.  It looks easy enough to cleanup with a patch but I just haven't had time to do it cleanly so it can go upstream.

So this is now fixed with bug #567506.
Comment 5 Anthony Basile gentoo-dev 2015-12-05 15:31:48 UTC
(In reply to Anthony Basile from comment #4)
> 
> So this is now fixed with bug #567506.

sorry i should not say "fixed"  because the proper fix is to patch busybox.  I mean the workarounds for the build are in busybox-1.24.1-r99.ebuild on the musl overlay.