sys-apps/busybox: turn off features that are a problem on musl
authorAnthony G. Basile <blueness@gentoo.org>
Wed, 24 Jan 2018 18:42:19 +0000 (13:42 -0500)
committerAnthony G. Basile <blueness@gentoo.org>
Wed, 24 Jan 2018 18:42:19 +0000 (13:42 -0500)
Package-Manager: Portage-2.3.13, Repoman-2.3.3

sys-apps/busybox/busybox-1.28.0.ebuild
sys-apps/busybox/busybox-9999.ebuild

index ece00db5d1c3f2b29d416f11b2c94ba3e89ba376..68000bffa17468ba93a5732a53ea13c9dae51c54 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # See `man savedconfig.eclass` for info on how to use USE=savedconfig.
@@ -123,6 +123,13 @@ src_configure() {
        # triming the BSS size may be dangerous
        busybox_config_option n FEATURE_USE_BSS_TAIL
 
+       # These cause trouble with musl.
+       if use elibc_musl; then
+               busybox_config_option n FEATURE_UTMP
+               busybox_config_option n EXTRA_COMPAT
+               busybox_config_option n FEATURE_VI_REGEX_SEARCH
+       fi
+
        # If these are not set and we are using a uclibc/busybox setup
        # all calls to system() will fail.
        busybox_config_option y ASH
index ece00db5d1c3f2b29d416f11b2c94ba3e89ba376..68000bffa17468ba93a5732a53ea13c9dae51c54 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 # See `man savedconfig.eclass` for info on how to use USE=savedconfig.
@@ -123,6 +123,13 @@ src_configure() {
        # triming the BSS size may be dangerous
        busybox_config_option n FEATURE_USE_BSS_TAIL
 
+       # These cause trouble with musl.
+       if use elibc_musl; then
+               busybox_config_option n FEATURE_UTMP
+               busybox_config_option n EXTRA_COMPAT
+               busybox_config_option n FEATURE_VI_REGEX_SEARCH
+       fi
+
        # If these are not set and we are using a uclibc/busybox setup
        # all calls to system() will fail.
        busybox_config_option y ASH