commit:     3e91117dcc9b762f44552cbb25a75e70a5383e5d
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed Jul 15 15:42:05 2015 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed Jul 15 15:42:05 2015 +0000
URL:        https://gitweb.gentoo.org/proj/musl.git/commit/?id=3e91117d

sys-apps/busybox: clean up.

Package-Manager: portage-2.2.18
Manifest-Sign-Key: 0xF52D4BBA

 sys-apps/busybox/Manifest                          |  19 +-
 sys-apps/busybox/busybox-1.21.0-r99.ebuild         | 304 --------------------
 sys-apps/busybox/busybox-1.22.1-r99.ebuild         | 304 --------------------
 sys-apps/busybox/busybox-1.23.0-r99.ebuild         | 305 --------------------
 sys-apps/busybox/busybox-1.23.1-r99.ebuild         | 308 ---------------------
 sys-apps/busybox/busybox-1.23.2-r99.ebuild         |   2 +
 .../busybox/files/busybox-1.21.0-ifconfig.patch    |  11 -
 sys-apps/busybox/files/busybox-1.21.0-iplink.patch |  12 -
 sys-apps/busybox/files/busybox-1.21.0-mdev.patch   |  35 ---
 .../busybox/files/busybox-1.21.0-platform.patch    |  24 --
 sys-apps/busybox/files/busybox-1.21.0-xz.patch     |  84 ------
 sys-apps/busybox/files/busybox-1.22.1-ash.patch    |  11 -
 sys-apps/busybox/files/busybox-1.22.1-date.patch   |  30 --
 sys-apps/busybox/files/busybox-1.22.1-iplink.patch |  19 --
 .../files/busybox-1.23.1-trylink-flags.patch       |  39 +++
 15 files changed, 43 insertions(+), 1464 deletions(-)

diff --git a/sys-apps/busybox/Manifest b/sys-apps/busybox/Manifest
index cb75bf5..43bbecd 100644
--- a/sys-apps/busybox/Manifest
+++ b/sys-apps/busybox/Manifest
@@ -1,12 +1,5 @@
 AUX busybox-1.19.0-bb.patch 908 SHA256 
98f92c2edbcf61d1bacef783ea8b08cce07051b0a4489ed3f4579296846f89f1 SHA512 
d4024e531ce7113cf554646608b1ef356e51691e3e21d165621b3690c82b56a319867b90d9daba548b635d9dbd41be5efea63181b7123d4505e529d863a8214c
 WHIRLPOOL 
b0d6d9b08ad0930e5243c7addc8a6db61505e95ed8e72c64fbfd734cb6ff9e303b3eb8ea6ec4790b2be567783664230cf278eb3e673fa0844c3881cf993f7cb8
-AUX busybox-1.21.0-ifconfig.patch 281 SHA256 
81a8ea4471d2d0c6b925878b7276ad9837d2d3fda2db0669a4934c63f8d42c43 SHA512 
5a1d6a20a349562cc217663aea91c494703725f80e46a4fcf81bff2ed6940a4080f2008b9216f73b75c80c7408f933743d6b783da5b780b5731475dace85832f
 WHIRLPOOL 
d1f0219f407acdf131a33db01c0fb74dfd42d56e180feb7c549fb2867b4483e6255ab0bb9651f35f4446bd9159167b33086e5599a2e4b88f52a79821c6401a48
-AUX busybox-1.21.0-iplink.patch 401 SHA256 
f3ef2c9294c83860fd1dbd10cd40347118b96d42e60a4a8cb12d76a19215ceb0 SHA512 
45a13ca6749771319414090a86fa15644e57062641cdaf7b908136125aad6cb25628c85830b150392debb87992f386ece9ea3a730eee72a5e5727655429f451b
 WHIRLPOOL 
64cf91527c39f0dd3fb8d2bf35df6c82d0d470a00aa98c3d680d7fb63a986885f6f834785d27afda7131a8fa46381a285be57b5ef7d22a4691b459dcf330e994
-AUX busybox-1.21.0-mdev.patch 1173 SHA256 
911371ceff8c6a899323cda8d63a20b5f98d503681e5617b2448b555c4fecc61 SHA512 
490a9a85d6df17e0111ad86f420207fed1b699b3b4e9ebe8d6700d4ce33ab3de0e0137dba1326efb5011dbcd53c769448ddab855995c896135ed6adbe61d2e44
 WHIRLPOOL 
2a302d310a6e82f3aa1c878a14fc4d2b1644d4e724aae1e25c1390cbd3852d252a38c76fd38fc79ee4b08d8f83aa2a442963955fe49486a28c060d1d4b6edc47
-AUX busybox-1.21.0-platform.patch 1227 SHA256 
ee7b96577330a68598d4ec48ce94f6eca3079c32a86cca32f3bb6cc28d467654 SHA512 
595e1081dcc9f2dca714066c1f59659d7c7e3f702df937c138ff60cf9af42272b71ac354521c3abd26ac406eb07a710c14c4f94e62a293edcd6473ba1fd53675
 WHIRLPOOL 
d18661bccd8f43bc4fcb492013a647480ff4e0e88a1ac8ea9a1a3f176193363bfbd7777589b2796ccdf92315cd80a5d6999a321dafc441f4939546d6272002eb
-AUX busybox-1.21.0-xz.patch 2647 SHA256 
c807f73718e836a81ee74987306c72297ddba209038240f81fab96b4a28b73b4 SHA512 
696dd31a73bbd919435a3ee1b8cd05769e6c3a45e853e3e052a22b7290bf332cd3b7e17e394911864b3c7ed7f9eea604dfbd7a5c43f0eb1e65b257d679fcccd3
 WHIRLPOOL 
a3be95e60602374daff1629c38556f93b2342d81939afda86613f5fb0af0f7b600656118712ac33237cba230369f622a18502347e1dad0aa3570dc1d0a1725f1
-AUX busybox-1.22.1-ash.patch 344 SHA256 
c3b5b5c5522fda8014b12a23c370d7f70f6d1625fefa93a62c5c14414528ad12 SHA512 
297736a2b41badba50a64881e20778e05c9df5f6fed5cbe45cf8c5a31e5486a5fe85ce00897c2ef0c60787cc33467f03fc586f39945f513a7caeaea57aafc8d7
 WHIRLPOOL 
bea756e5335b2ebcabb487b9a4f64e1aae0cf9a4652ed3bbab5232b31fb5730cdb726a152f1ef494aaaacc251a24a30c40bc89485d2b008eb56290f88008ea4e
-AUX busybox-1.22.1-date.patch 1008 SHA256 
8502dd7454e948a56fcd8201f4fe9d629d2844b9df2bacff7ee0bb09398d12e8 SHA512 
0836ef682e24fc0e6d660d0d835200d5f4cd863691a6b58d071e40d001923664389f61670037140c2f95deb2080a93c989037308c761ac9304165d83cbfd3d34
 WHIRLPOOL 
58b93b0553e81f98c49503bfec33f473c1a7cde2ca3110e96c0d80f45d458c98b5cea1528637b4d9bbbb3df4de6e074446d43cbeeee285cec3ea52a352c374d2
-AUX busybox-1.22.1-iplink.patch 425 SHA256 
186b41734e43ee117cb367055ce6a4d5b3aac671c09d71f2a6347793874d653b SHA512 
f213d11c842841a5b7a6c8b1ffb38719eb038cde220b06f8b5419e63998e21629b0e3f481ad7549d67a764e113abe524d8a7fa0fd9286b8b355a1f20211fd889
 WHIRLPOOL 
c87b1c0dafab79fd707ec22d7540de939595d3fb6665df2c20e22059b4c675fab1d5f81353230e1a172a9fc618c766db32c8e0c35913f160a06224cd13de47a5
+AUX busybox-1.23.1-trylink-flags.patch 1334 SHA256 
9791303d0ec22b8c97223758987c0c4fa562ace05a56be4c17837c9f1e1ce490 SHA512 
5ca429047719943cde0493790c9212f1386ac1ebeb65a15b0497ac49821cac36c60f78aa9f35551af28ab21465ef4118782260636968393f19ecd27c44a6a046
 WHIRLPOOL 
0fb2d02660c100ab1defc03da3292a9ec055697553aeb62094f1ae933edd99fe105ba2687910197dd253b7b970673973003707479f7a4865168d39f679b12f61
 AUX ginit.c 3097 SHA256 
fd6a4715d3dd10f6db479020433da3997d397658301335c847fb779129238b8c SHA512 
8bf70f13db0fbeecedf9a9f862c5391c0d8b7aa3ddd2ec85cda9b360c3117a01e32b01017b8c30197f587e521ba360ff70d1caf8d0f69d5c3a27f37ecc252e7c
 WHIRLPOOL 
a1ec3ccc296033d88a9504b693c7d249d0bd11b1d75e3f59a62137c5e4b4c914fe2b8971c86dbca2cc8ccc0d86f3f8c2c45bb44cec85a3628c44f091476baa92
 AUX klogd.confd 218 SHA256 
737b78745964e110da2fd3357c6d5fb80ccacf979039b8d40c03cf1cb969e5f3 SHA512 
3348d5376b368b28d1431692a93868cd4550be12ad729340c5f78da35a5bd295e7613d70ce8ccde5029ad6d87a41c2f24155180f3570de8a9174dd63dece143f
 WHIRLPOOL 
ea28c1d926e36fba0ab69de8ddfd2503889b7cfa3a4ada347a9d22d9894fe30be068c0ed55f899b952e62b8de3cb69e1a4209f7864787988ded28ede10c7445a
 AUX klogd.initd 359 SHA256 
ef607b72d270797e4be1fba425c23ba26078633c47c698063bd4b17e7b4ff8c3 SHA512 
e9d6215e4b0dcc4fbb507ce2bb84c818ad18951282c47c98b0c98b3fa58e6b28218f608689a7786cb0447673ae1f5c3ba5767f9b29cffd73325d93bf2a928ac9
 WHIRLPOOL 
d7e82a0d2a6a60b2444a3b212022250297ca163001045bf508442972fc6330c4eea55cb965920778e090c92a69441e864e6721f02ecc6d10279b6196b14f7e71
@@ -24,14 +17,6 @@ AUX syslogd.confd 234 SHA256 
65166088cb173582200b8c0d3bc6ea339b5929dbafa816780bf
 AUX syslogd.initd 383 SHA256 
b66e709317513b79139d5441c712839e271ff5177a3d743b86e39f70906fe2ee SHA512 
b6bd8b7cb990c7c9c242baf4b3d20b3351e6ca0054b6d231787540b318ea9ac2332ac97ae4b56d07d2cf9ae52fb9c1644dede47bbfdd9f8bc7727bcfd0da8ed7
 WHIRLPOOL 
4b7a3e4ad7cc9e07853cc0e43b8f15aa0cb71642afeee89392190ba75d547e156ec4b790f8e35e56851bae01ff3965ef36e9160bf61aae95376c9fa2189f11a7
 AUX watchdog.confd 232 SHA256 
786d9497ad55c29d6fff231709e71ecad94f2ee1de3b45b461deb29c3eba1c63 SHA512 
8fd7121075535195f3e5d43ec773713c883fb7865cd5e5927b3b20c2605c50acb81d50461bd1a246c1282006ce74b11932ac1cec67ddc2be15da2f9aa8674232
 WHIRLPOOL 
8ea0f6b759198c978f10bf0b2b00cc73343e72401a05edf257b9c5e1032e8a619328aaa02936b5b5a717a021baa84b5653b8c9826e14e5c07c7b7af98f878767
 AUX watchdog.initd 334 SHA256 
ae335a9540d282277d0a127673efff279177a1bb643e98afd772eef9423fe79f SHA512 
e915a2b5567b1cfe5423b00ca984c37dea4afd72bc3b7a550858f7140dc18283831bb9cfeeb564ced2669706cf747f3934fd339f9e93d456b229b03781ac9303
 WHIRLPOOL 
c57eaf47d0501394f2f08a6b6f09529f91fd34f3d5027f6e159573ea8c5321a88c2cb01511971d15f8b25c9a44693c88e340ee35949c4cdab49d7fbbbe064c22
-DIST busybox-1.21.0.tar.bz2 2200841 SHA256 
eb9d268627783297f5f459cb9bd61a94e395dc7cb3647e10ec186e0159aa36ed SHA512 
ddafded24881f03db550d9793585bb5442c70f2a60a5d9770126f50981dadfe95fc0b280f83d5b8a8ce21c86bb7ce64e9f1a606cea140fb2f2599a21de55ba31
 WHIRLPOOL 
d50378bb823dd59e8a607ed6a72d4890f4e5ad3304f1ddba9f7f3d49b5ab820acc9daa2b3c4619f8b147dec085c53c3c6f4b4ebe4c60b431299031d2af00a4d3
-DIST busybox-1.22.1.tar.bz2 2218650 SHA256 
ae0b029d0a9e4dd71a077a790840e496dd838998e4571b87b60fed7462b6678b SHA512 
3e99fe373d638f714c3a61e1b02493d85ca532f472df038f7557db518ded38347072882ed568852941be7aac46fc34007257b4287375335ff5a09b60b295ce80
 WHIRLPOOL 
8f022480960b81d673772bdda857b5b3860edd893a833a64f5184ec6816b6b0f328079ca67ec1ba1d288a7c4b805b39c6038f0d385884762a396a86ccea7b0c8
-DIST busybox-1.23.0.tar.bz2 2253001 SHA256 
483ab594dd962ddbb332fd24e36ffdd6e36ac2182fbff055c56e1ca49fda09e4 SHA512 
02c8f9dd9e47ad67b417fa58ba952bbdda6e79bad5399fba3d8217803053c2fd045228bd76d56e97d40c98296841dc66e4fa829887c05378a83bdeabafeb7f72
 WHIRLPOOL 
01d68487d4d3cff4fb807970446f42db1dec3309fdd3fb0402f138eee28dc0885dba324b5b12b417effd4fad87581a32da09a0e9f7c050377025a52ecce2308b
-DIST busybox-1.23.1.tar.bz2 2252635 SHA256 
300f1db0a7ca4ecee8f8d8027aba250b903372e8339b7d9123d37c1e900473bf SHA512 
60849c220dde596c4197f16dd844573b24dd46c8544345a2d5a2b1976fa0ac340d22fbc97f5a1437b7de1c04f4e16aa07b3d62bc77eb83b2467582a50ed4b362
 WHIRLPOOL 
7cd25e42e74663849b094df699a72deaf02b1088064a511341f76aaa419c936557bbafd54523c6818082dfd4e17605f06ee51abed238ef57a56a9be12c910f99
 DIST busybox-1.23.2.tar.bz2 2252786 SHA256 
05a6f9e21aad8c098e388ae77de7b2361941afa7157ef74216703395b14e319a SHA512 
209c8ef26e40ccb81510f6b663202b080f9bbecac7faf386bbabf7e36a43d63b15dd6ce9f7a84c1ccc5345c524999812251da1e113ef9faadc6af1fedd24c7c9
 WHIRLPOOL 
a0396f7f49ae702f1617e72d5d4646aceec4eba67219c7125bd8d0926d1acb1ef41ea15a7406c3cf5e5e0d8925cc75910ed5128e5fbdd257b80e2cb4f7a048a2
-EBUILD busybox-1.21.0-r99.ebuild 8588 SHA256 
f7e1429315ca4ce61ef7d64f4661531c27f41d2b59692ca99ea7172a97d0f4e3 SHA512 
c511aa8f5b8760fad79afde3fec71bbe3c32b5786750fe20c8448af88b96ba99b24f7a949947dbf9a9e9daf2b65a70d5a8a4be24a33ac88d096eca5743979ed3
 WHIRLPOOL 
7598961b898f6cef190e1419772955bdb036dace22aa48947adfa665e1f0052b949c429001c4495b46e576acf8e5681dd5ffeae0074701238a216a8d9670668d
-EBUILD busybox-1.22.1-r99.ebuild 8594 SHA256 
fa0e6eee8c7759c8ac82355df9702132ccbec39dc38fb62cd8f211ac1bc10928 SHA512 
67a43091a833dfe6b35f58d25028206ec69acbf5a395ff43087881af49fb66c96ed693995aa13855c5b333826dbf6acdf4b666b3b008c0f873874a3d3140e09f
 WHIRLPOOL 
e3cb3d0fd69ecb53ff140332b896351a13b037a57bfb1d05c1f714c4918eb47194339b3cb9e3543bf95ba21374b0775df87a090a6303027099b8a8c92c28805c
-EBUILD busybox-1.23.0-r99.ebuild 8650 SHA256 
842aad5a812f0442db537949e3aecec3a0ad18624bf7d5c8a2e8f7b197f2aca5 SHA512 
625783b4b3d9c18d7e84389c6d405ae2e3a81a049c686fa9fae54a02a6fb468bbacdd6b9930d64be35bd32e3aa81d0a149d195b3941269b55f9864c446a0af82
 WHIRLPOOL 
e5937cc929f06cee0df09742bef8374b4c5da3006d862dabcbcf32cdee55df5e26547e5fcad3075645dba32619021678c550560d386a18e31dd3bbdd3d8bb628
-EBUILD busybox-1.23.1-r99.ebuild 8787 SHA256 
97a1ae68fbf5ba706133b5762aaa0e0058a82910cdd5af6ec18a04d0b682490b SHA512 
033a6ae2c843bfcd1797688d2bd3ef3e95f7236e2a9299e7cdce832ca4cc4bc7d1b0bfade57c476d5d9a574af59dd5f19a3feac148d3407ab61eab18b34356f7
 WHIRLPOOL 
6f4d6404a8ea710e303d33e71bf511992f3a51573eef40f1401f6220a5ba6e09f5f4ef8c84f8a0b219007f4cd8e64a7e8cca57bd90a8c0ecffce68c10098cdab
-EBUILD busybox-1.23.2-r99.ebuild 8787 SHA256 
ead09859c4cfbb4c6a5ad0d7806f59382e59cfe51e85bf9053beed4920b40400 SHA512 
a3fa1fc0dea7f6145374153f92891711a68d800409adfdb7e06dff45201505331da7c2d35513ddc0a4b71393127abd3782863eb3b2077c5d14a5bd9279342a82
 WHIRLPOOL 
dbb5ea28bd7780028ad60331801351f6507aba9788ab5b021a6bb75cd179a58a6273abfd77cd64506fca3b89d348253636169182461364575dbc8fd18fca5e8e
+EBUILD busybox-1.23.2-r99.ebuild 8889 SHA256 
395dec4ab6daeca4206d4b3ee45a901fbeee32a5c8faa516bb2abf98dc0b3e7d SHA512 
3853b2c04731a67a55275217b9eee79effde01352c4e261721dca8b7e31b5c594ad275524464291b5bdcbd306dc17c8f7167411beb310815da03c7cfdebb3fe0
 WHIRLPOOL 
26e7e3b94139010f74d95e68b1329c75c6716429ec6b5dc72e2c9ad82c8ab052d74b3db25e651e37138021c3fada808a5820f7a1a9ec6e3761c74fa26a056a02
 MISC metadata.xml 708 SHA256 
e17f2240f57d74f8847e7bbf4e3cf44fdcd3ab3f610e0a66eb186d2a598178be SHA512 
0d26c0593b156cc5764ad03c64e9b2a724b3877e348787d57818aec6b32f995951a9c0976a92d6ba824a2a5983d0c88116b9d335e51ba0e3c7b8f89e579482ba
 WHIRLPOOL 
2ab4758748cf6d83d1a3a1d2f5f9472825a01affe5c7fdf8cd78fb9c75a1abaf18d8895fce12c7c502453caf68dd40799f47cce502804c9ec60705af2bb4f388

diff --git a/sys-apps/busybox/busybox-1.21.0-r99.ebuild 
b/sys-apps/busybox/busybox-1.21.0-r99.ebuild
deleted file mode 100644
index dab6258..0000000
--- a/sys-apps/busybox/busybox-1.21.0-r99.ebuild
+++ /dev/null
@@ -1,304 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-1.21.0.ebuild,v 
1.21 2013/09/14 10:38:45 ago Exp $
-
-# See `man savedconfig.eclass` for info on how to use USE=savedconfig.
-
-EAPI="4"
-inherit eutils flag-o-matic savedconfig toolchain-funcs multilib
-
-DESCRIPTION="Utilities for rescue and embedded systems"
-HOMEPAGE="http://www.busybox.net/";
-if [[ ${PV} == "9999" ]] ; then
-       MY_P=${PN}
-       EGIT_REPO_URI="git://busybox.net/busybox.git"
-       inherit git-2
-else
-       MY_P=${PN}-${PV/_/-}
-       SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2";
-       KEYWORDS="amd64 arm ~mips ppc x86"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-
-IUSE="ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog 
systemd"
-RESTRICT="test"
-
-RDEPEND="!static? ( selinux? ( sys-libs/libselinux ) )
-       pam? ( sys-libs/pam )"
-DEPEND="${RDEPEND}
-       static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) )
-       >=sys-kernel/linux-headers-2.6.39"
-
-S=${WORKDIR}/${MY_P}
-
-busybox_config_option() {
-       local flag=$1 ; shift
-       if [[ ${flag} != [yn] ]] ; then
-               busybox_config_option $(usex ${flag} y n) "$@"
-               return
-       fi
-       while [[ $# -gt 0 ]] ; do
-               if [[ ${flag} == "y" ]] ; then
-                       sed -i -e "s:.*\<CONFIG_$1\>.*set:CONFIG_$1=y:g" .config
-               else
-                       sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" 
.config
-               fi
-               einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find 
CONFIG_$1 ...)
-               shift
-       done
-}
-
-busybox_config_enabled() {
-       local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config)
-       case ${val} in
-       "") return 1 ;;
-       y)  return 0 ;;
-       *)  echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;;
-       esac
-}
-
-src_prepare() {
-       unset KBUILD_OUTPUT #88088
-       append-flags -fno-strict-aliasing #310413
-       use ppc64 && append-flags -mminimal-toc #130943
-
-       # patches go here!
-       epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch
-       epatch "${FILESDIR}"/${P}-*.patch
-       cp "${FILESDIR}"/ginit.c init/ || die
-
-       # flag cleanup
-       sed -i -r \
-               -e 
's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g'
 \
-               Makefile.flags || die
-       #sed -i '/bbsh/s:^//::' include/applets.h
-       sed -i '/^#error Aborting compilation./d' applets/applets.c || die
-       use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile
-       sed -i \
-               -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \
-               -e "/^AR\>/s:=.*:= $(tc-getAR):" \
-               -e "/^CC\>/s:=.*:= $(tc-getCC):" \
-               -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \
-               -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \
-               Makefile || die
-       sed -i \
-               -e 's:-static-libgcc::' \
-               Makefile.flags || die
-}
-
-src_configure() {
-       # check for a busybox config before making one of our own.
-       # if one exist lets return and use it.
-
-       restore_config .config
-       if [ -f .config ]; then
-               yes "" | emake -j1 oldconfig > /dev/null
-               return 0
-       else
-               ewarn "Could not locate user configfile, so we will save a 
default one"
-       fi
-
-       # setup the config file
-       emake -j1 allyesconfig > /dev/null
-       # nommu forces a bunch of things off which we want on #387555
-       busybox_config_option n NOMMU
-       sed -i '/^#/d' .config
-       yes "" | emake -j1 oldconfig >/dev/null
-
-       # now turn off stuff we really don't want
-       busybox_config_option n DMALLOC
-       busybox_config_option n FEATURE_SUID_CONFIG
-       busybox_config_option n BUILD_AT_ONCE
-       busybox_config_option n BUILD_LIBBUSYBOX
-       busybox_config_option n FEATURE_CLEAN_UP
-       busybox_config_option n MONOTONIC_SYSCALL
-       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
-       busybox_config_option n HUSH
-
-       # disable ipv6 applets
-       if ! use ipv6; then
-               busybox_config_option n FEATURE_IPV6
-               busybox_config_option n TRACEROUTE6
-               busybox_config_option n PING6
-       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
-       busybox_config_option systemd FEATURE_SYSTEMD
-       busybox_config_option math FEATURE_AWK_LIBM
-
-       # all the debug options are compiler related, so punt them
-       busybox_config_option n DEBUG
-       busybox_config_option y NO_DEBUG_LIB
-       busybox_config_option n DMALLOC
-       busybox_config_option n EFENCE
-
-       busybox_config_option selinux SELINUX
-
-       # this opt only controls mounting with <linux-2.6.23
-       busybox_config_option n FEATURE_MOUNT_NFS
-
-       # default a bunch of uncommon options to off
-       local opt
-       for opt in \
-               ADD_SHELL \
-               BEEP BOOTCHARTD \
-               CRONTAB \
-               DC DEVFSD DNSD DPKG{,_DEB} \
-               FAKEIDENTD FBSPLASH FOLD FSCK_MINIX FTP{GET,PUT} \
-               FEATURE_DEVFS \
-               HOSTID HUSH \
-               INETD INOTIFYD IPCALC \
-               LOCALE_SUPPORT LOGNAME LPD \
-               MAKEMIME MKFS_MINIX MSH \
-               OD \
-               RDEV READPROFILE REFORMIME REMOVE_SHELL RFKILL RUN_PARTS 
RUNSV{,DIR} \
-               SLATTACH SMEMCAP SULOGIN SV{,LOGD} \
-               TASKSET TCPSVD \
-               RPM RPM2CPIO \
-               UDPSVD UUDECODE UUENCODE
-       do
-               busybox_config_option n ${opt}
-       done
-
-       emake -j1 oldconfig > /dev/null
-}
-
-src_compile() {
-       unset KBUILD_OUTPUT #88088
-       export SKIP_STRIP=y
-
-       emake V=1 busybox
-}
-
-src_install() {
-       unset KBUILD_OUTPUT #88088
-       save_config .config
-
-       into /
-       dodir /bin
-       if use sep-usr ; then
-               # install /ginit to take care of mounting stuff
-               exeinto /
-               newexe busybox_unstripped ginit
-               dosym /ginit /bin/bb
-               dosym bb /bin/busybox
-       else
-               newbin busybox_unstripped busybox
-               dosym busybox /bin/bb
-       fi
-       if use mdev ; then
-               dodir /$(get_libdir)/mdev/
-               use make-symlinks || dosym /bin/bb /sbin/mdev
-               cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf
-
-               exeinto /$(get_libdir)/mdev/
-               doexe "${FILESDIR}"/mdev/*
-
-               newinitd "${FILESDIR}"/mdev.rc.1 mdev
-       fi
-       if use livecd ; then
-               dosym busybox /bin/vi
-       fi
-
-       # add busybox daemon's, bug #444718
-       if busybox_config_enabled FEATURE_NTPD_SERVER; then
-               newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd"
-               newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd"
-       fi
-       if busybox_config_enabled SYSLOGD; then
-               newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd"
-               newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd"
-       fi
-       if busybox_config_enabled KLOGD; then
-               newconfd "${FILESDIR}/klogd.confd" "busybox-klogd"
-               newinitd "${FILESDIR}/klogd.initd" "busybox-klogd"
-       fi
-       if busybox_config_enabled WATCHDOG; then
-               newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog"
-               newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog"
-       fi
-       if busybox_config_enabled UDHCPC; then
-               local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT)
-               exeinto "${path%/*}"
-               newexe examples/udhcp/simple.script "${path##*/}"
-       fi
-       if busybox_config_enabled UDHCPD; then
-               insinto /etc
-               doins examples/udhcp/udhcpd.conf
-       fi
-
-       # bundle up the symlink files for use later
-       emake DESTDIR="${ED}" install
-       rm _install/bin/busybox
-       # for compatibility, provide /usr/bin/env
-       mkdir -p _install/usr/bin
-       ln -s /bin/env _install/usr/bin/env
-       tar cf busybox-links.tar -C _install . || : #;die
-       insinto /usr/share/${PN}
-       use make-symlinks && doins busybox-links.tar
-
-       dodoc AUTHORS README TODO
-
-       cd docs
-       docinto txt
-       dodoc *.txt
-       docinto pod
-       dodoc *.pod
-       dohtml *.html
-
-       cd ../examples
-       docinto examples
-       dodoc inittab depmod.pl *.conf *.script undeb unrpm
-}
-
-pkg_preinst() {
-       if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && 
[[ ${ROOT} == "/" ]] ; then
-               ewarn "setting USE=make-symlinks and emerging to / is very 
dangerous."
-               ewarn "it WILL overwrite lots of system programs like: ls bash 
awk grep (bug 60805 for full list)."
-               ewarn "If you are creating a binary only and not merging this 
is probably ok."
-               ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really 
what you want."
-               die "silly options will destroy your system"
-       fi
-
-       if use make-symlinks ; then
-               mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die
-       fi
-}
-
-pkg_postinst() {
-       savedconfig_pkg_postinst
-
-       if use make-symlinks ; then
-               cd "${T}" || die
-               mkdir _install
-               tar xf busybox-links.tar -C _install || die
-               cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} 
failed"
-       fi
-
-       if use sep-usr ; then
-               elog "In order to use the sep-usr support, you have to update 
your"
-               elog "kernel command line.  Add the option:"
-               elog "     init=/ginit"
-               elog "To launch a different init than /sbin/init, use:"
-               elog "     init=/ginit /sbin/yourinit"
-               elog "To get a rescue shell, you may boot with:"
-               elog "     init=/ginit bb"
-       fi
-}

diff --git a/sys-apps/busybox/busybox-1.22.1-r99.ebuild 
b/sys-apps/busybox/busybox-1.22.1-r99.ebuild
deleted file mode 100644
index da1fea1..0000000
--- a/sys-apps/busybox/busybox-1.22.1-r99.ebuild
+++ /dev/null
@@ -1,304 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-1.22.1.ebuild,v 
1.2 2014/02/02 08:17:37 vapier Exp $
-
-# See `man savedconfig.eclass` for info on how to use USE=savedconfig.
-
-EAPI="4"
-inherit eutils flag-o-matic savedconfig toolchain-funcs multilib
-
-DESCRIPTION="Utilities for rescue and embedded systems"
-HOMEPAGE="http://www.busybox.net/";
-if [[ ${PV} == "9999" ]] ; then
-       MY_P=${PN}
-       EGIT_REPO_URI="git://busybox.net/busybox.git"
-       inherit git-2
-else
-       MY_P=${PN}-${PV/_/-}
-       SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2";
-       KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-
-IUSE="ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static syslog 
systemd"
-RESTRICT="test"
-
-RDEPEND="!static? ( selinux? ( sys-libs/libselinux ) )
-       pam? ( sys-libs/pam )"
-DEPEND="${RDEPEND}
-       static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) )
-       >=sys-kernel/linux-headers-2.6.39"
-
-S=${WORKDIR}/${MY_P}
-
-busybox_config_option() {
-       local flag=$1 ; shift
-       if [[ ${flag} != [yn] ]] ; then
-               busybox_config_option $(usex ${flag} y n) "$@"
-               return
-       fi
-       while [[ $# -gt 0 ]] ; do
-               if [[ ${flag} == "y" ]] ; then
-                       sed -i -e "s:.*\<CONFIG_$1\>.*set:CONFIG_$1=y:g" .config
-               else
-                       sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" 
.config
-               fi
-               einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find 
CONFIG_$1 ...)
-               shift
-       done
-}
-
-busybox_config_enabled() {
-       local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config)
-       case ${val} in
-       "") return 1 ;;
-       y)  return 0 ;;
-       *)  echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;;
-       esac
-}
-
-src_prepare() {
-       unset KBUILD_OUTPUT #88088
-       append-flags -fno-strict-aliasing #310413
-       use ppc64 && append-flags -mminimal-toc #130943
-
-       # patches go here!
-       epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch
-       epatch "${FILESDIR}"/${P}-*.patch
-       cp "${FILESDIR}"/ginit.c init/ || die
-
-       # flag cleanup
-       sed -i -r \
-               -e 
's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g'
 \
-               Makefile.flags || die
-       #sed -i '/bbsh/s:^//::' include/applets.h
-       sed -i '/^#error Aborting compilation./d' applets/applets.c || die
-       use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile
-       sed -i \
-               -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \
-               -e "/^AR\>/s:=.*:= $(tc-getAR):" \
-               -e "/^CC\>/s:=.*:= $(tc-getCC):" \
-               -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \
-               -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \
-               Makefile || die
-       sed -i \
-               -e 's:-static-libgcc::' \
-               Makefile.flags || die
-}
-
-src_configure() {
-       # check for a busybox config before making one of our own.
-       # if one exist lets return and use it.
-
-       restore_config .config
-       if [ -f .config ]; then
-               yes "" | emake -j1 oldconfig > /dev/null
-               return 0
-       else
-               ewarn "Could not locate user configfile, so we will save a 
default one"
-       fi
-
-       # setup the config file
-       emake -j1 allyesconfig > /dev/null
-       # nommu forces a bunch of things off which we want on #387555
-       busybox_config_option n NOMMU
-       sed -i '/^#/d' .config
-       yes "" | emake -j1 oldconfig >/dev/null
-
-       # now turn off stuff we really don't want
-       busybox_config_option n DMALLOC
-       busybox_config_option n FEATURE_SUID_CONFIG
-       busybox_config_option n BUILD_AT_ONCE
-       busybox_config_option n BUILD_LIBBUSYBOX
-       busybox_config_option n FEATURE_CLEAN_UP
-       busybox_config_option n MONOTONIC_SYSCALL
-       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
-       busybox_config_option n HUSH
-
-       # disable ipv6 applets
-       if ! use ipv6; then
-               busybox_config_option n FEATURE_IPV6
-               busybox_config_option n TRACEROUTE6
-               busybox_config_option n PING6
-       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
-       busybox_config_option systemd FEATURE_SYSTEMD
-       busybox_config_option math FEATURE_AWK_LIBM
-
-       # all the debug options are compiler related, so punt them
-       busybox_config_option n DEBUG
-       busybox_config_option y NO_DEBUG_LIB
-       busybox_config_option n DMALLOC
-       busybox_config_option n EFENCE
-
-       busybox_config_option selinux SELINUX
-
-       # this opt only controls mounting with <linux-2.6.23
-       busybox_config_option n FEATURE_MOUNT_NFS
-
-       # default a bunch of uncommon options to off
-       local opt
-       for opt in \
-               ADD_SHELL \
-               BEEP BOOTCHARTD \
-               CRONTAB \
-               DC DEVFSD DNSD DPKG{,_DEB} \
-               FAKEIDENTD FBSPLASH FOLD FSCK_MINIX FTP{GET,PUT} \
-               FEATURE_DEVFS \
-               HOSTID HUSH \
-               INETD INOTIFYD IPCALC \
-               LOCALE_SUPPORT LOGNAME LPD \
-               MAKEMIME MKFS_MINIX MSH \
-               OD \
-               RDEV READPROFILE REFORMIME REMOVE_SHELL RFKILL RUN_PARTS 
RUNSV{,DIR} \
-               SLATTACH SMEMCAP SULOGIN SV{,LOGD} \
-               TASKSET TCPSVD \
-               RPM RPM2CPIO \
-               UDPSVD UUDECODE UUENCODE
-       do
-               busybox_config_option n ${opt}
-       done
-
-       emake -j1 oldconfig > /dev/null
-}
-
-src_compile() {
-       unset KBUILD_OUTPUT #88088
-       export SKIP_STRIP=y
-
-       emake V=1 busybox
-}
-
-src_install() {
-       unset KBUILD_OUTPUT #88088
-       save_config .config
-
-       into /
-       dodir /bin
-       if use sep-usr ; then
-               # install /ginit to take care of mounting stuff
-               exeinto /
-               newexe busybox_unstripped ginit
-               dosym /ginit /bin/bb
-               dosym bb /bin/busybox
-       else
-               newbin busybox_unstripped busybox
-               dosym busybox /bin/bb
-       fi
-       if use mdev ; then
-               dodir /$(get_libdir)/mdev/
-               use make-symlinks || dosym /bin/bb /sbin/mdev
-               cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf
-
-               exeinto /$(get_libdir)/mdev/
-               doexe "${FILESDIR}"/mdev/*
-
-               newinitd "${FILESDIR}"/mdev.rc.1 mdev
-       fi
-       if use livecd ; then
-               dosym busybox /bin/vi
-       fi
-
-       # add busybox daemon's, bug #444718
-       if busybox_config_enabled FEATURE_NTPD_SERVER; then
-               newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd"
-               newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd"
-       fi
-       if busybox_config_enabled SYSLOGD; then
-               newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd"
-               newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd"
-       fi
-       if busybox_config_enabled KLOGD; then
-               newconfd "${FILESDIR}/klogd.confd" "busybox-klogd"
-               newinitd "${FILESDIR}/klogd.initd" "busybox-klogd"
-       fi
-       if busybox_config_enabled WATCHDOG; then
-               newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog"
-               newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog"
-       fi
-       if busybox_config_enabled UDHCPC; then
-               local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT)
-               exeinto "${path%/*}"
-               newexe examples/udhcp/simple.script "${path##*/}"
-       fi
-       if busybox_config_enabled UDHCPD; then
-               insinto /etc
-               doins examples/udhcp/udhcpd.conf
-       fi
-
-       # bundle up the symlink files for use later
-       emake DESTDIR="${ED}" install
-       rm _install/bin/busybox
-       # for compatibility, provide /usr/bin/env
-       mkdir -p _install/usr/bin
-       ln -s /bin/env _install/usr/bin/env
-       tar cf busybox-links.tar -C _install . || : #;die
-       insinto /usr/share/${PN}
-       use make-symlinks && doins busybox-links.tar
-
-       dodoc AUTHORS README TODO
-
-       cd docs
-       docinto txt
-       dodoc *.txt
-       docinto pod
-       dodoc *.pod
-       dohtml *.html
-
-       cd ../examples
-       docinto examples
-       dodoc inittab depmod.pl *.conf *.script undeb unrpm
-}
-
-pkg_preinst() {
-       if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && 
[[ ${ROOT} == "/" ]] ; then
-               ewarn "setting USE=make-symlinks and emerging to / is very 
dangerous."
-               ewarn "it WILL overwrite lots of system programs like: ls bash 
awk grep (bug 60805 for full list)."
-               ewarn "If you are creating a binary only and not merging this 
is probably ok."
-               ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really 
what you want."
-               die "silly options will destroy your system"
-       fi
-
-       if use make-symlinks ; then
-               mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die
-       fi
-}
-
-pkg_postinst() {
-       savedconfig_pkg_postinst
-
-       if use make-symlinks ; then
-               cd "${T}" || die
-               mkdir _install
-               tar xf busybox-links.tar -C _install || die
-               cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} 
failed"
-       fi
-
-       if use sep-usr ; then
-               elog "In order to use the sep-usr support, you have to update 
your"
-               elog "kernel command line.  Add the option:"
-               elog "     init=/ginit"
-               elog "To launch a different init than /sbin/init, use:"
-               elog "     init=/ginit /sbin/yourinit"
-               elog "To get a rescue shell, you may boot with:"
-               elog "     init=/ginit bb"
-       fi
-}

diff --git a/sys-apps/busybox/busybox-1.23.0-r99.ebuild 
b/sys-apps/busybox/busybox-1.23.0-r99.ebuild
deleted file mode 100644
index cdc38d1..0000000
--- a/sys-apps/busybox/busybox-1.23.0-r99.ebuild
+++ /dev/null
@@ -1,305 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-1.23.0.ebuild,v 
1.4 2015/01/17 03:11:56 zlogene Exp $
-
-# See `man savedconfig.eclass` for info on how to use USE=savedconfig.
-
-EAPI="4"
-inherit eutils flag-o-matic savedconfig toolchain-funcs multilib
-
-DESCRIPTION="Utilities for rescue and embedded systems"
-HOMEPAGE="http://www.busybox.net/";
-if [[ ${PV} == "9999" ]] ; then
-       MY_P=${PN}
-       EGIT_REPO_URI="git://busybox.net/busybox.git"
-       inherit git-2
-else
-       MY_P=${PN}-${PV/_/-}
-       SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2";
-       KEYWORDS="amd64 arm ~mips ppc x86"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="debug ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static 
syslog systemd"
-RESTRICT="test"
-
-COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) )
-       pam? ( sys-libs/pam )"
-DEPEND="${COMMON_DEPEND}
-       static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) )
-       >=sys-kernel/linux-headers-2.6.39"
-RDEPEND="${COMMON_DEPEND}
-mdev? ( !<sys-apps/openrc-0.13 )"
-
-S=${WORKDIR}/${MY_P}
-
-busybox_config_option() {
-       local flag=$1 ; shift
-       if [[ ${flag} != [yn] ]] ; then
-               busybox_config_option $(usex ${flag} y n) "$@"
-               return
-       fi
-       while [[ $# -gt 0 ]] ; do
-               if [[ ${flag} == "y" ]] ; then
-                       sed -i -e "s:.*\<CONFIG_$1\>.*set:CONFIG_$1=y:g" .config
-               else
-                       sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" 
.config
-               fi
-               einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find 
CONFIG_$1 ...)
-               shift
-       done
-}
-
-busybox_config_enabled() {
-       local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config)
-       case ${val} in
-       "") return 1 ;;
-       y)  return 0 ;;
-       *)  echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;;
-       esac
-}
-
-src_prepare() {
-       unset KBUILD_OUTPUT #88088
-       append-flags -fno-strict-aliasing #310413
-       use ppc64 && append-flags -mminimal-toc #130943
-
-       # patches go here!
-       epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch
-#      epatch "${FILESDIR}"/${P}-*.patch
-       cp "${FILESDIR}"/ginit.c init/ || die
-
-       # flag cleanup
-       sed -i -r \
-               -e 
's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g'
 \
-               Makefile.flags || die
-       #sed -i '/bbsh/s:^//::' include/applets.h
-       sed -i '/^#error Aborting compilation./d' applets/applets.c || die
-       use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile
-       sed -i \
-               -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \
-               -e "/^AR\>/s:=.*:= $(tc-getAR):" \
-               -e "/^CC\>/s:=.*:= $(tc-getCC):" \
-               -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \
-               -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \
-               Makefile || die
-       sed -i \
-               -e 's:-static-libgcc::' \
-               Makefile.flags || die
-}
-
-src_configure() {
-       # check for a busybox config before making one of our own.
-       # if one exist lets return and use it.
-
-       restore_config .config
-       if [ -f .config ]; then
-               yes "" | emake -j1 -s oldconfig >/dev/null
-               return 0
-       else
-               ewarn "Could not locate user configfile, so we will save a 
default one"
-       fi
-
-       # setup the config file
-       emake -j1 -s defconfig >/dev/null
-       # nommu forces a bunch of things off which we want on #387555
-       busybox_config_option n NOMMU
-       sed -i '/^#/d' .config
-       yes "" | emake -j1 -s oldconfig >/dev/null
-
-       # now turn off stuff we really don't want
-       busybox_config_option n DMALLOC
-       busybox_config_option n FEATURE_SUID_CONFIG
-       busybox_config_option n BUILD_AT_ONCE
-       busybox_config_option n BUILD_LIBBUSYBOX
-       busybox_config_option n FEATURE_CLEAN_UP
-       busybox_config_option n MONOTONIC_SYSCALL
-       busybox_config_option n USE_PORTABLE_CODE
-       busybox_config_option n WERROR
-
-       # causes trouble with musl
-       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
-       busybox_config_option n HUSH
-
-       # disable ipv6 applets
-       if ! use ipv6; then
-               busybox_config_option n FEATURE_IPV6
-               busybox_config_option n TRACEROUTE6
-               busybox_config_option n PING6
-               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
-       busybox_config_option systemd FEATURE_SYSTEMD
-       busybox_config_option math FEATURE_AWK_LIBM
-
-       # all the debug options are compiler related, so punt them
-       busybox_config_option n DEBUG
-       busybox_config_option y NO_DEBUG_LIB
-       busybox_config_option n DMALLOC
-       busybox_config_option n EFENCE
-       busybox_config_option $(usex debug y n) TFTP_DEBUG
-
-       busybox_config_option selinux SELINUX
-
-       # this opt only controls mounting with <linux-2.6.23
-       busybox_config_option n FEATURE_MOUNT_NFS
-
-       # default a bunch of uncommon options to off
-       local opt
-       for opt in \
-               ADD_SHELL \
-               BEEP BOOTCHARTD \
-               CRONTAB \
-               DC DEVFSD DNSD DPKG{,_DEB} \
-               FAKEIDENTD FBSPLASH FOLD FSCK_MINIX FTP{GET,PUT} \
-               FEATURE_DEVFS \
-               HOSTID HUSH \
-               INETD INOTIFYD IPCALC \
-               LOCALE_SUPPORT LOGNAME LPD \
-               MAKEMIME MKFS_MINIX MSH \
-               OD \
-               RDEV READPROFILE REFORMIME REMOVE_SHELL RFKILL RUN_PARTS 
RUNSV{,DIR} \
-               SLATTACH SMEMCAP SULOGIN SV{,LOGD} \
-               TASKSET TCPSVD \
-               RPM RPM2CPIO \
-               UDPSVD UUDECODE UUENCODE
-       do
-               busybox_config_option n ${opt}
-       done
-
-       emake -j1 oldconfig > /dev/null
-}
-
-src_compile() {
-       unset KBUILD_OUTPUT #88088
-       export SKIP_STRIP=y
-
-       emake V=1 busybox
-}
-
-src_install() {
-       unset KBUILD_OUTPUT #88088
-       save_config .config
-
-       into /
-       dodir /bin
-       if use sep-usr ; then
-               # install /ginit to take care of mounting stuff
-               exeinto /
-               newexe busybox_unstripped ginit
-               dosym /ginit /bin/bb
-               dosym bb /bin/busybox
-       else
-               newbin busybox_unstripped busybox
-               dosym busybox /bin/bb
-       fi
-       if use mdev ; then
-               dodir /$(get_libdir)/mdev/
-               use make-symlinks || dosym /bin/bb /sbin/mdev
-               cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf
-
-               exeinto /$(get_libdir)/mdev/
-               doexe "${FILESDIR}"/mdev/*
-
-               newinitd "${FILESDIR}"/mdev.initd mdev
-       fi
-       if use livecd ; then
-               dosym busybox /bin/vi
-       fi
-
-       # add busybox daemon's, bug #444718
-       if busybox_config_enabled FEATURE_NTPD_SERVER; then
-               newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd"
-               newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd"
-       fi
-       if busybox_config_enabled SYSLOGD; then
-               newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd"
-               newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd"
-       fi
-       if busybox_config_enabled KLOGD; then
-               newconfd "${FILESDIR}/klogd.confd" "busybox-klogd"
-               newinitd "${FILESDIR}/klogd.initd" "busybox-klogd"
-       fi
-       if busybox_config_enabled WATCHDOG; then
-               newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog"
-               newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog"
-       fi
-       if busybox_config_enabled UDHCPC; then
-               local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT)
-               exeinto "${path%/*}"
-               newexe examples/udhcp/simple.script "${path##*/}"
-       fi
-       if busybox_config_enabled UDHCPD; then
-               insinto /etc
-               doins examples/udhcp/udhcpd.conf
-       fi
-
-       # bundle up the symlink files for use later
-       emake DESTDIR="${ED}" install
-       rm _install/bin/busybox
-       # for compatibility, provide /usr/bin/env
-       mkdir -p _install/usr/bin
-       ln -s /bin/env _install/usr/bin/env
-       tar cf busybox-links.tar -C _install . || : #;die
-       insinto /usr/share/${PN}
-       use make-symlinks && doins busybox-links.tar
-
-       dodoc AUTHORS README TODO
-
-       cd docs
-       docinto txt
-       dodoc *.txt
-       docinto pod
-       dodoc *.pod
-       dohtml *.html
-
-       cd ../examples
-       docinto examples
-       dodoc inittab depmod.pl *.conf *.script undeb unrpm
-}
-
-pkg_preinst() {
-       if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && 
[[ ${ROOT} == "/" ]] ; then
-               ewarn "setting USE=make-symlinks and emerging to / is very 
dangerous."
-               ewarn "it WILL overwrite lots of system programs like: ls bash 
awk grep (bug 60805 for full list)."
-               ewarn "If you are creating a binary only and not merging this 
is probably ok."
-               ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really 
what you want."
-               die "silly options will destroy your system"
-       fi
-
-       if use make-symlinks ; then
-               mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die
-       fi
-}
-
-pkg_postinst() {
-       savedconfig_pkg_postinst
-
-       if use make-symlinks ; then
-               cd "${T}" || die
-               mkdir _install
-               tar xf busybox-links.tar -C _install || die
-               cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} 
failed"
-       fi
-
-       if use sep-usr ; then
-               elog "In order to use the sep-usr support, you have to update 
your"
-               elog "kernel command line.  Add the option:"
-               elog "     init=/ginit"
-               elog "To launch a different init than /sbin/init, use:"
-               elog "     init=/ginit /sbin/yourinit"
-               elog "To get a rescue shell, you may boot with:"
-               elog "     init=/ginit bb"
-       fi
-}

diff --git a/sys-apps/busybox/busybox-1.23.1-r99.ebuild 
b/sys-apps/busybox/busybox-1.23.1-r99.ebuild
deleted file mode 100644
index 14887a0..0000000
--- a/sys-apps/busybox/busybox-1.23.1-r99.ebuild
+++ /dev/null
@@ -1,308 +0,0 @@
-# Copyright 1999-2015 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/busybox/busybox-1.23.1-r1.ebuild,v 
1.3 2015/02/08 22:35:39 blueness Exp $
-
-# See `man savedconfig.eclass` for info on how to use USE=savedconfig.
-
-EAPI="4"
-inherit eutils flag-o-matic savedconfig toolchain-funcs multilib
-
-DESCRIPTION="Utilities for rescue and embedded systems"
-HOMEPAGE="http://www.busybox.net/";
-if [[ ${PV} == "9999" ]] ; then
-       MY_P=${PN}
-       EGIT_REPO_URI="git://busybox.net/busybox.git"
-       inherit git-2
-else
-       MY_P=${PN}-${PV/_/-}
-       SRC_URI="http://www.busybox.net/downloads/${MY_P}.tar.bz2";
-       KEYWORDS="amd64 arm ~mips ppc x86"
-fi
-
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="debug ipv6 livecd make-symlinks math mdev -pam selinux sep-usr +static 
syslog systemd"
-RESTRICT="test"
-
-COMMON_DEPEND="!static? ( selinux? ( sys-libs/libselinux ) )
-       pam? ( sys-libs/pam )"
-DEPEND="${COMMON_DEPEND}
-       static? ( selinux? ( sys-libs/libselinux[static-libs(+)] ) )
-       >=sys-kernel/linux-headers-2.6.39"
-RDEPEND="${COMMON_DEPEND}
-mdev? ( !<sys-apps/openrc-0.13 )"
-
-S=${WORKDIR}/${MY_P}
-
-busybox_config_option() {
-       local flag=$1 ; shift
-       if [[ ${flag} != [yn] ]] ; then
-               busybox_config_option $(usex ${flag} y n) "$@"
-               return
-       fi
-       while [[ $# -gt 0 ]] ; do
-               if [[ ${flag} == "y" ]] ; then
-                       sed -i -e "s:.*\<CONFIG_$1\>.*set:CONFIG_$1=y:g" .config
-               else
-                       sed -i -e "s:CONFIG_$1=y:# CONFIG_$1 is not set:g" 
.config
-               fi
-               einfo $(grep "CONFIG_$1[= ]" .config || echo Could not find 
CONFIG_$1 ...)
-               shift
-       done
-}
-
-busybox_config_enabled() {
-       local val=$(sed -n "/^CONFIG_$1=/s:^[^=]*=::p" .config)
-       case ${val} in
-       "") return 1 ;;
-       y)  return 0 ;;
-       *)  echo "${val}" | sed -r 's:^"(.*)"$:\1:' ;;
-       esac
-}
-
-src_prepare() {
-       unset KBUILD_OUTPUT #88088
-       append-flags -fno-strict-aliasing #310413
-       use ppc64 && append-flags -mminimal-toc #130943
-
-       # patches go here!
-       epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch
-#      epatch "${FILESDIR}"/${P}-*.patch
-       cp "${FILESDIR}"/ginit.c init/ || die
-
-       # flag cleanup
-       sed -i -r \
-               -e 
's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|fomit-frame-pointer)\>::g'
 \
-               Makefile.flags || die
-       #sed -i '/bbsh/s:^//::' include/applets.h
-       sed -i '/^#error Aborting compilation./d' applets/applets.c || die
-       use elibc_glibc && sed -i 's:-Wl,--gc-sections::' Makefile
-       sed -i \
-               -e "/^CROSS_COMPILE/s:=.*:= ${CHOST}-:" \
-               -e "/^AR\>/s:=.*:= $(tc-getAR):" \
-               -e "/^CC\>/s:=.*:= $(tc-getCC):" \
-               -e "/^HOSTCC/s:=.*:= $(tc-getBUILD_CC):" \
-               -e "/^PKG_CONFIG\>/s:=.*:= $(tc-getPKG_CONFIG):" \
-               Makefile || die
-       sed -i \
-               -e 's:-static-libgcc::' \
-               Makefile.flags || die
-}
-
-src_configure() {
-       # check for a busybox config before making one of our own.
-       # if one exist lets return and use it.
-
-       restore_config .config
-       if [ -f .config ]; then
-               yes "" | emake -j1 -s oldconfig >/dev/null
-               return 0
-       else
-               ewarn "Could not locate user configfile, so we will save a 
default one"
-       fi
-
-       # setup the config file
-       emake -j1 -s allyesconfig >/dev/null
-       # nommu forces a bunch of things off which we want on #387555
-       busybox_config_option n NOMMU
-       sed -i '/^#/d' .config
-       yes "" | emake -j1 -s oldconfig >/dev/null
-
-       # now turn off stuff we really don't want
-       busybox_config_option n DMALLOC
-       busybox_config_option n FEATURE_SUID_CONFIG
-       busybox_config_option n BUILD_AT_ONCE
-       busybox_config_option n BUILD_LIBBUSYBOX
-       busybox_config_option n FEATURE_CLEAN_UP
-       busybox_config_option n MONOTONIC_SYSCALL
-       busybox_config_option n START_STOP_DAEMON
-       busybox_config_option n USE_PORTABLE_CODE
-       busybox_config_option n WERROR
-
-       # causes trouble with musl
-       busybox_config_option n IFPLUGD
-       busybox_config_option n EXTRA_COMPAT
-       busybox_config_option n FEATURE_VI_REGEX_SEARCH
-
-       # If these are not set and we are using a uclibc/busybox setup
-       # all calls to system() will fail.
-       busybox_config_option y ASH
-       busybox_config_option n HUSH
-
-       # disable ipv6 applets
-       if ! use ipv6; then
-               busybox_config_option n FEATURE_IPV6
-               busybox_config_option n TRACEROUTE6
-               busybox_config_option n PING6
-               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
-       busybox_config_option systemd FEATURE_SYSTEMD
-       busybox_config_option math FEATURE_AWK_LIBM
-
-       # all the debug options are compiler related, so punt them
-       busybox_config_option n DEBUG
-       busybox_config_option y NO_DEBUG_LIB
-       busybox_config_option n DMALLOC
-       busybox_config_option n EFENCE
-       busybox_config_option $(usex debug y n) TFTP_DEBUG
-
-       busybox_config_option selinux SELINUX
-
-       # this opt only controls mounting with <linux-2.6.23
-       busybox_config_option n FEATURE_MOUNT_NFS
-
-       # default a bunch of uncommon options to off
-       local opt
-       for opt in \
-               ADD_SHELL \
-               BEEP BOOTCHARTD \
-               CRONTAB \
-               DC DEVFSD DNSD DPKG{,_DEB} \
-               FAKEIDENTD FBSPLASH FOLD FSCK_MINIX FTP{GET,PUT} \
-               FEATURE_DEVFS \
-               HOSTID HUSH \
-               INETD INOTIFYD IPCALC \
-               LOCALE_SUPPORT LOGNAME LPD \
-               MAKEMIME MKFS_MINIX MSH \
-               OD \
-               RDEV READPROFILE REFORMIME REMOVE_SHELL RFKILL RUN_PARTS 
RUNSV{,DIR} \
-               SLATTACH SMEMCAP SULOGIN SV{,LOGD} \
-               TASKSET TCPSVD \
-               RPM RPM2CPIO \
-               UDPSVD UUDECODE UUENCODE
-       do
-               busybox_config_option n ${opt}
-       done
-
-       emake -j1 oldconfig > /dev/null
-}
-
-src_compile() {
-       unset KBUILD_OUTPUT #88088
-       export SKIP_STRIP=y
-
-       emake V=1 busybox
-}
-
-src_install() {
-       unset KBUILD_OUTPUT #88088
-       save_config .config
-
-       into /
-       dodir /bin
-       if use sep-usr ; then
-               # install /ginit to take care of mounting stuff
-               exeinto /
-               newexe busybox_unstripped ginit
-               dosym /ginit /bin/bb
-               dosym bb /bin/busybox
-       else
-               newbin busybox_unstripped busybox
-               dosym busybox /bin/bb
-       fi
-       if use mdev ; then
-               dodir /$(get_libdir)/mdev/
-               use make-symlinks || dosym /bin/bb /sbin/mdev
-               cp "${S}"/examples/mdev_fat.conf "${ED}"/etc/mdev.conf
-
-               exeinto /$(get_libdir)/mdev/
-               doexe "${FILESDIR}"/mdev/*
-
-               newinitd "${FILESDIR}"/mdev.initd mdev
-       fi
-       if use livecd ; then
-               dosym busybox /bin/vi
-       fi
-
-       # add busybox daemon's, bug #444718
-       if busybox_config_enabled FEATURE_NTPD_SERVER; then
-               newconfd "${FILESDIR}/ntpd.confd" "busybox-ntpd"
-               newinitd "${FILESDIR}/ntpd.initd" "busybox-ntpd"
-       fi
-       if busybox_config_enabled SYSLOGD; then
-               newconfd "${FILESDIR}/syslogd.confd" "busybox-syslogd"
-               newinitd "${FILESDIR}/syslogd.initd" "busybox-syslogd"
-       fi
-       if busybox_config_enabled KLOGD; then
-               newconfd "${FILESDIR}/klogd.confd" "busybox-klogd"
-               newinitd "${FILESDIR}/klogd.initd" "busybox-klogd"
-       fi
-       if busybox_config_enabled WATCHDOG; then
-               newconfd "${FILESDIR}/watchdog.confd" "busybox-watchdog"
-               newinitd "${FILESDIR}/watchdog.initd" "busybox-watchdog"
-       fi
-       if busybox_config_enabled UDHCPC; then
-               local path=$(busybox_config_enabled UDHCPC_DEFAULT_SCRIPT)
-               exeinto "${path%/*}"
-               newexe examples/udhcp/simple.script "${path##*/}"
-       fi
-       if busybox_config_enabled UDHCPD; then
-               insinto /etc
-               doins examples/udhcp/udhcpd.conf
-       fi
-
-       # bundle up the symlink files for use later
-       emake DESTDIR="${ED}" install
-       rm _install/bin/busybox
-       # for compatibility, provide /usr/bin/env
-       mkdir -p _install/usr/bin
-       ln -s /bin/env _install/usr/bin/env
-       tar cf busybox-links.tar -C _install . || : #;die
-       insinto /usr/share/${PN}
-       use make-symlinks && doins busybox-links.tar
-
-       dodoc AUTHORS README TODO
-
-       cd docs
-       docinto txt
-       dodoc *.txt
-       docinto pod
-       dodoc *.pod
-       dohtml *.html
-
-       cd ../examples
-       docinto examples
-       dodoc inittab depmod.pl *.conf *.script undeb unrpm
-}
-
-pkg_preinst() {
-       if use make-symlinks && [[ ! ${VERY_BRAVE_OR_VERY_DUMB} == "yes" ]] && 
[[ ${ROOT} == "/" ]] ; then
-               ewarn "setting USE=make-symlinks and emerging to / is very 
dangerous."
-               ewarn "it WILL overwrite lots of system programs like: ls bash 
awk grep (bug 60805 for full list)."
-               ewarn "If you are creating a binary only and not merging this 
is probably ok."
-               ewarn "set env VERY_BRAVE_OR_VERY_DUMB=yes if this is really 
what you want."
-               die "silly options will destroy your system"
-       fi
-
-       if use make-symlinks ; then
-               mv "${ED}"/usr/share/${PN}/busybox-links.tar "${T}"/ || die
-       fi
-}
-
-pkg_postinst() {
-       savedconfig_pkg_postinst
-
-       if use make-symlinks ; then
-               cd "${T}" || die
-               mkdir _install
-               tar xf busybox-links.tar -C _install || die
-               cp -vpPR _install/* "${ROOT}"/ || die "copying links for ${x} 
failed"
-       fi
-
-       if use sep-usr ; then
-               elog "In order to use the sep-usr support, you have to update 
your"
-               elog "kernel command line.  Add the option:"
-               elog "     init=/ginit"
-               elog "To launch a different init than /sbin/init, use:"
-               elog "     init=/ginit /sbin/yourinit"
-               elog "To get a rescue shell, you may boot with:"
-               elog "     init=/ginit bb"
-       fi
-}

diff --git a/sys-apps/busybox/busybox-1.23.2-r99.ebuild 
b/sys-apps/busybox/busybox-1.23.2-r99.ebuild
index 98f537d..f92920e 100644
--- a/sys-apps/busybox/busybox-1.23.2-r99.ebuild
+++ b/sys-apps/busybox/busybox-1.23.2-r99.ebuild
@@ -67,6 +67,8 @@ src_prepare() {
 
        # patches go here!
        epatch "${FILESDIR}"/${PN}-1.19.0-bb.patch
+       epatch "${FILESDIR}"/${PN}-1.23.1-trylink-flags.patch
+       # No busybox-1.23.2 specific patches ... yet!
        #epatch "${FILESDIR}"/${P}-*.patch
        cp "${FILESDIR}"/ginit.c init/ || die
 

diff --git a/sys-apps/busybox/files/busybox-1.21.0-ifconfig.patch 
b/sys-apps/busybox/files/busybox-1.21.0-ifconfig.patch
deleted file mode 100644
index bc74904..0000000
--- a/sys-apps/busybox/files/busybox-1.21.0-ifconfig.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/busybox-1.21.0/networking/ifconfig.c
-+++ b/busybox-1.21.0/networking/ifconfig.c
-@@ -56,7 +56,7 @@
- #endif
- 
- #if ENABLE_FEATURE_IFCONFIG_SLIP
--# include <net/if_slip.h>
-+# include <linux/if_slip.h>
- #endif
- 
- /* I don't know if this is needed for busybox or not.  Anyone? */

diff --git a/sys-apps/busybox/files/busybox-1.21.0-iplink.patch 
b/sys-apps/busybox/files/busybox-1.21.0-iplink.patch
deleted file mode 100644
index 80d8e5d..0000000
--- a/sys-apps/busybox/files/busybox-1.21.0-iplink.patch
+++ /dev/null
@@ -1,12 +0,0 @@
---- a/busybox-1.21.0/networking/libiproute/iplink.c
-+++ b/busybox-1.21.0/networking/libiproute/iplink.c
-@@ -5,8 +5,7 @@
-  * Licensed under GPLv2 or later, see file LICENSE in this source tree.
-  */
- #include <net/if.h>
--#include <net/if_packet.h>
--#include <netpacket/packet.h>
-+#include <linux/if_packet.h>
- #include <netinet/if_ether.h>
- 
- #include "ip_common.h"  /* #include "libbb.h" is inside */

diff --git a/sys-apps/busybox/files/busybox-1.21.0-mdev.patch 
b/sys-apps/busybox/files/busybox-1.21.0-mdev.patch
deleted file mode 100644
index cb873fa..0000000
--- a/sys-apps/busybox/files/busybox-1.21.0-mdev.patch
+++ /dev/null
@@ -1,35 +0,0 @@
---- busybox-1.21.0/util-linux/mdev.c
-+++ busybox-1.21.0-mdev/util-linux/mdev.c
-@@ -661,6 +661,8 @@ static void make_device(char *device_nam
-                       if (mknod(node_name, rule->mode | type, makedev(major, 
minor)) && errno != EEXIST)
-                               bb_perror_msg("can't create '%s'", node_name);
-                       if (ENABLE_FEATURE_MDEV_CONF) {
-+                              if (G.verbose)
-+                                      bb_error_msg("chmod: %o chown: %u:%u", 
rule->mode, rule->ugid.uid, rule->ugid.gid);
-                               chmod(node_name, rule->mode);
-                               chown(node_name, rule->ugid.uid, 
rule->ugid.gid);
-                       }
-@@ -813,6 +815,7 @@ static void load_firmware(const char *fi
-               full_write(loading_fd, "-1", 2);
- 
-  out:
-+      xchdir("/dev");
-       if (ENABLE_FEATURE_CLEAN_UP) {
-               close(firmware_fd);
-               close(loading_fd);
-@@ -919,11 +922,13 @@ int mdev_main(int argc UNUSED_PARAM, cha
-               }
- 
-               {
--                      int logfd = open("/dev/mdev.log", O_WRONLY | O_APPEND);
-+                      int logfd = open("mdev.log", O_WRONLY | O_APPEND);
-                       if (logfd >= 0) {
-                               xmove_fd(logfd, STDERR_FILENO);
-                               G.verbose = 1;
--                              bb_error_msg("seq: %s action: %s", seq, action);
-+                              if (seq)
-+                                      applet_name = xasprintf("%s[%s]", 
applet_name, seq);
-+                              bb_error_msg("action: %s", action);
-                       }
-               }
- 

diff --git a/sys-apps/busybox/files/busybox-1.21.0-platform.patch 
b/sys-apps/busybox/files/busybox-1.21.0-platform.patch
deleted file mode 100644
index 9be6cb8..0000000
--- a/sys-apps/busybox/files/busybox-1.21.0-platform.patch
+++ /dev/null
@@ -1,24 +0,0 @@
---- busybox-1.21.0/archival/libarchive/decompress_unxz.c
-+++ busybox-1.21.0-platform/archival/libarchive/decompress_unxz.c
-@@ -30,8 +30,8 @@ static uint32_t xz_crc32(const uint8_t *
- /* We use arch-optimized unaligned accessors */
- #define get_unaligned_le32(buf) ({ uint32_t v; move_from_unaligned32(v, buf); 
SWAP_LE32(v); })
- #define get_unaligned_be32(buf) ({ uint32_t v; move_from_unaligned32(v, buf); 
SWAP_BE32(v); })
--#define put_unaligned_le32(val, buf) move_to_unaligned16(buf, SWAP_LE32(val))
--#define put_unaligned_be32(val, buf) move_to_unaligned16(buf, SWAP_BE32(val))
-+#define put_unaligned_le32(val, buf) move_to_unaligned32(buf, SWAP_LE32(val))
-+#define put_unaligned_be32(val, buf) move_to_unaligned32(buf, SWAP_BE32(val))
- 
- #include "unxz/xz_dec_bcj.c"
- #include "unxz/xz_dec_lzma2.c"
---- busybox-1.21.0/include/platform.h
-+++ busybox-1.21.0-platform/include/platform.h
-@@ -228,7 +228,7 @@ typedef uint32_t bb__aliased_uint32_t FI
- # define move_from_unaligned32(v, u32p) (memcpy(&(v), (u32p), 4))
- # define move_to_unaligned16(u16p, v) do { \
-       uint16_t __t = (v); \
--      memcpy((u16p), &__t, 4); \
-+      memcpy((u16p), &__t, 2); \
- } while (0)
- # define move_to_unaligned32(u32p, v) do { \
-       uint32_t __t = (v); \

diff --git a/sys-apps/busybox/files/busybox-1.21.0-xz.patch 
b/sys-apps/busybox/files/busybox-1.21.0-xz.patch
deleted file mode 100644
index 56ba1a2..0000000
--- a/sys-apps/busybox/files/busybox-1.21.0-xz.patch
+++ /dev/null
@@ -1,84 +0,0 @@
---- busybox-1.21.0/archival/libarchive/decompress_unxz.c
-+++ busybox-1.21.0-xz/archival/libarchive/decompress_unxz.c
-@@ -40,6 +40,7 @@ static uint32_t xz_crc32(const uint8_t *
- IF_DESKTOP(long long) int FAST_FUNC
- unpack_xz_stream(transformer_aux_data_t *aux, int src_fd, int dst_fd)
- {
-+      enum xz_ret xz_result;
-       struct xz_buf iobuf;
-       struct xz_dec *state;
-       unsigned char *membuf;
-@@ -63,9 +64,8 @@ unpack_xz_stream(transformer_aux_data_t
-       /* Limit memory usage to about 64 MiB. */
-       state = xz_dec_init(XZ_DYNALLOC, 64*1024*1024);
- 
-+      xz_result = X_OK;
-       while (1) {
--              enum xz_ret r;
--
-               if (iobuf.in_pos == iobuf.in_size) {
-                       int rd = safe_read(src_fd, membuf, BUFSIZ);
-                       if (rd < 0) {
-@@ -73,28 +73,57 @@ unpack_xz_stream(transformer_aux_data_t
-                               total = -1;
-                               break;
-                       }
-+                      if (rd == 0 && xz_result == XZ_STREAM_END)
-+                              break;
-                       iobuf.in_size = rd;
-                       iobuf.in_pos = 0;
-               }
-+              if (xz_result == XZ_STREAM_END) {
-+                      /*
-+                       * Try to start decoding next concatenated stream.
-+                       * Stream padding must always be a multiple of four
-+                       * bytes to preserve four-byte alignment. To keep the
-+                       * code slightly smaller, we aren't as strict here as
-+                       * the .xz spec requires. We just skip all zero-bytes
-+                       * without checking the alignment and thus can accept
-+                       * files that aren't valid, e.g. the XZ utils test
-+                       * files bad-0pad-empty.xz and bad-0catpad-empty.xz.
-+                       */
-+                      do {
-+                              if (membuf[iobuf.in_pos] != 0) {
-+                                      xz_dec_reset(state);
-+                                      goto do_run;
-+                              }
-+                              iobuf.in_pos++;
-+                      } while (iobuf.in_pos < iobuf.in_size);
-+              }
-+ do_run:
- //            bb_error_msg(">in pos:%d size:%d out pos:%d size:%d",
- //                            iobuf.in_pos, iobuf.in_size, iobuf.out_pos, 
iobuf.out_size);
--              r = xz_dec_run(state, &iobuf);
-+              xz_result = xz_dec_run(state, &iobuf);
- //            bb_error_msg("<in pos:%d size:%d out pos:%d size:%d r:%d",
--//                            iobuf.in_pos, iobuf.in_size, iobuf.out_pos, 
iobuf.out_size, r);
-+//                            iobuf.in_pos, iobuf.in_size, iobuf.out_pos, 
iobuf.out_size, xz_result);
-               if (iobuf.out_pos) {
-                       xwrite(dst_fd, iobuf.out, iobuf.out_pos);
-                       IF_DESKTOP(total += iobuf.out_pos;)
-                       iobuf.out_pos = 0;
-               }
--              if (r == XZ_STREAM_END) {
--                      break;
-+              if (xz_result == XZ_STREAM_END) {
-+                      /*
-+                       * Can just "break;" here, if not for concatenated
-+                       * .xz streams.
-+                       * Checking for padding may require buffer
-+                       * replenishment. Can't do it here.
-+                       */
-+                      continue;
-               }
--              if (r != XZ_OK && r != XZ_UNSUPPORTED_CHECK) {
-+              if (xz_result != XZ_OK && xz_result != XZ_UNSUPPORTED_CHECK) {
-                       bb_error_msg("corrupted data");
-                       total = -1;
-                       break;
-               }
-       }
-+
-       xz_dec_end(state);
-       free(membuf);
- 

diff --git a/sys-apps/busybox/files/busybox-1.22.1-ash.patch 
b/sys-apps/busybox/files/busybox-1.22.1-ash.patch
deleted file mode 100644
index 301e942..0000000
--- a/sys-apps/busybox/files/busybox-1.22.1-ash.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- busybox-1.22.1/shell/ash.c
-+++ busybox-1.22.1-ash/shell/ash.c
-@@ -13014,7 +13014,7 @@ init(void)
-               setvar2("PPID", utoa(getppid()));
- #if ENABLE_ASH_BASH_COMPAT
-               p = lookupvar("SHLVL");
--              setvar2("SHLVL", utoa(p ? atoi(p) + 1 : 1));
-+              setvar("SHLVL", utoa((p ? atoi(p) : 0) + 1), VEXPORT);
- #endif
-               p = lookupvar("PWD");
-               if (p) {

diff --git a/sys-apps/busybox/files/busybox-1.22.1-date.patch 
b/sys-apps/busybox/files/busybox-1.22.1-date.patch
deleted file mode 100644
index 6380d87..0000000
--- a/sys-apps/busybox/files/busybox-1.22.1-date.patch
+++ /dev/null
@@ -1,30 +0,0 @@
---- busybox-1.22.1/libbb/time.c
-+++ busybox-1.22.1-date/libbb/time.c
-@@ -68,15 +68,23 @@ void FAST_FUNC parse_datestr(const char
-                       /* else end != NUL and we error out */
-               }
-       } else
--      /* yyyy-mm-dd HH */
--      if (sscanf(date_str, "%u-%u-%u %u%c", &ptm->tm_year,
-+      if (strchr(date_str, '-')
-+          /* Why strchr('-') check?
-+           * sscanf below will trash ptm->tm_year, this breaks
-+           * if parse_str is "10101010" (iow, "MMddhhmm" form)
-+           * because we destroy year. Do these sscanf
-+           * only if we saw a dash in parse_str.
-+           */
-+              /* yyyy-mm-dd HH */
-+       && (sscanf(date_str, "%u-%u-%u %u%c", &ptm->tm_year,
-                               &ptm->tm_mon, &ptm->tm_mday,
-                               &ptm->tm_hour,
-                               &end) >= 4
--      /* yyyy-mm-dd */
--       || sscanf(date_str, "%u-%u-%u%c", &ptm->tm_year,
-+              /* yyyy-mm-dd */
-+           || sscanf(date_str, "%u-%u-%u%c", &ptm->tm_year,
-                               &ptm->tm_mon, &ptm->tm_mday,
-                               &end) >= 3
-+          )
-       ) {
-               ptm->tm_year -= 1900; /* Adjust years */
-               ptm->tm_mon -= 1; /* Adjust month from 1-12 to 0-11 */

diff --git a/sys-apps/busybox/files/busybox-1.22.1-iplink.patch 
b/sys-apps/busybox/files/busybox-1.22.1-iplink.patch
deleted file mode 100644
index dbd76c5..0000000
--- a/sys-apps/busybox/files/busybox-1.22.1-iplink.patch
+++ /dev/null
@@ -1,19 +0,0 @@
---- busybox-1.22.1/networking/libiproute/iplink.c
-+++ busybox-1.22.1-iplink/networking/libiproute/iplink.c
-@@ -31,6 +31,16 @@
- #ifndef IFLA_LINKINFO
- # define IFLA_LINKINFO 18
- # define IFLA_INFO_KIND 1
-+# define IFLA_INFO_DATA 2
-+#endif
-+
-+#ifndef IFLA_VLAN_MAX
-+# define IFLA_VLAN_ID 1
-+# define IFLA_VLAN_FLAGS 2
-+struct ifla_vlan_flags {
-+      uint32_t        flags;
-+      uint32_t        mask;
-+};
- #endif
- 
- /* taken from linux/sockios.h */

diff --git a/sys-apps/busybox/files/busybox-1.23.1-trylink-flags.patch 
b/sys-apps/busybox/files/busybox-1.23.1-trylink-flags.patch
new file mode 100644
index 0000000..13725cb
--- /dev/null
+++ b/sys-apps/busybox/files/busybox-1.23.1-trylink-flags.patch
@@ -0,0 +1,39 @@
+From 6798564b9e2f1a81b8c2d0cb4add97cb736d982b Mon Sep 17 00:00:00 2001
+From: Mike Frysinger <[email protected]>
+Date: Mon, 16 Mar 2015 17:47:01 -0400
+Subject: [PATCH] trylink: respect compiler settings when probing features
+
+The CPPFLAGS/CFLAGS settings might have features that matter, so make
+sure we utilize them when testing the compiler.
+
+URL: https://bugs.gentoo.org/471118
+Signed-off-by: Mike Frysinger <[email protected]>
+---
+ scripts/trylink | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/scripts/trylink b/scripts/trylink
+index 5a67fcf..48c487b 100755
+--- a/scripts/trylink
++++ b/scripts/trylink
+@@ -49,7 +49,7 @@ check_cc() {
+     local tempname="$(mktemp)"
+     # Can use "-o /dev/null", but older gcc tend to *unlink it* on failure! :(
+     # "-xc": C language. "/dev/null" is an empty source file.
+-    if $CC $1 -shared -xc /dev/null -o "$tempname".o >/dev/null 2>&1; then
++    if $CC $CPPFLAGS $CFLAGS $1 -shared -xc /dev/null -o "$tempname".o 
>/dev/null 2>&1; then
+       echo "$1";
+     else
+       echo "$2";
+@@ -66,7 +66,7 @@ check_libc_is_glibc() {
+       syntax error here
+       #endif
+       " >"$tempname".c
+-    if $CC "$tempname".c -c -o "$tempname".o >/dev/null 2>&1; then
++    if $CC $CPPFLAGS $CFLAGS "$tempname".c -c -o "$tempname".o >/dev/null 
2>&1; then
+       echo "$2";
+     else
+       echo "$1";
+-- 
+2.3.2
+

Reply via email to