sys-apps/busybox: move USE=static default to the profile #468580
authorMike Frysinger <vapier@gentoo.org>
Fri, 13 Nov 2015 05:31:00 +0000 (00:31 -0500)
committerMike Frysinger <vapier@gentoo.org>
Fri, 13 Nov 2015 05:33:19 +0000 (00:33 -0500)
Since busybox is pulled in via the linux profile (as we use it as the
rescue shell there), we should have the static USE flag set via the
profile too rather than the ebuild.  This way we apply it only to the
subset of profiles where it makes sense.

For the live ebuild, we also switch to REQUIRED_USE since package.use
is able to override make.defaults (which is where USE=pam is set).  We
can see how users react to this behavior before pulling it back into
the released versions.

profiles/default/linux/package.use
profiles/embedded/package.use
sys-apps/busybox/busybox-1.24.1.ebuild
sys-apps/busybox/busybox-9999.ebuild

index 8dd735c8cf1e38611acdd09116179ff63479003a..827b0534890dccb7c0b33a50e0aa5cbf88c0bc75 100644 (file)
@@ -2,6 +2,11 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
+# Mike Frysinger <vapier@gentoo.org> (12 Nov 2015)
+# We want busybox statically linked by default as it is the system rescue shell.
+# But we cannot statically link pam, so turn that off by default. #468580
+sys-apps/busybox -pam static
+
 # Arfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org> (13 Feb 2011)
 # Disable deprecated bsddb module of Python 2 by default.
 =dev-lang/python-2* -berkdb
index 49943b14e95462fe2ab427ad7b30367ddc34e67d..7dda9d81fe00fa934dbeb4567677d9ba69f3b5e1 100644 (file)
@@ -1 +1 @@
-sys-apps/busybox make-symlinks
+sys-apps/busybox make-symlinks static
index 9f87f6ef12755e7c01a3814817dfadc0314f51eb..f385277ea6b2695778e95a38a2d0e9c8f16c797c 100644 (file)
@@ -21,7 +21,7 @@ fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="debug ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd"
+IUSE="debug ipv6 livecd make-symlinks math mdev pam selinux sep-usr static syslog systemd"
 RESTRICT="test"
 
 COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) )
index 3fd4db957adbaa12f9cb65f78918f91749e6026f..af1e7532d1ab616a1ed6d719551089a6e2f247ef 100644 (file)
@@ -21,7 +21,8 @@ fi
 
 LICENSE="GPL-2"
 SLOT="0"
-IUSE="debug ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog systemd"
+IUSE="debug ipv6 livecd make-symlinks math mdev pam selinux sep-usr static syslog systemd"
+REQUIRED_USE="pam? ( !static )"
 RESTRICT="test"
 
 COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) )
@@ -131,9 +132,6 @@ src_configure() {
                busybox_config_option n UDHCPC6
        fi
 
-       if use static && use pam ; then
-               ewarn "You cannot have USE='static pam'.  Assuming static is more important."
-       fi
        busybox_config_option $(usex static n pam) PAM
        busybox_config_option static STATIC
        busybox_config_option syslog {K,SYS}LOGD LOGGER