Skip to contentSkip to conversation

toybox: New recipe for toybox-0.4.9

PATCH New Paul Barker 1 participant 1 message Sep 8, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 toybox: New recipe for toybox-0.4.9

Toybox is a BSD-licensed alternative to Busybox which may be of interest to a few people. It's still a work in progress but it already covers a large number of the basic commands a system needs.

Removing toybox after it has been installed currently bricks the system though as the postrm script runs after '/bin/toybox' has been removed (so things like '/bin/ln' become broken links and the update-alternatives script can't run).

Toybox is patched to change the install paths of several utilities to match the paths used by Busybox. This is needed as update-alternatives from opkg-utils cannot handle two providers of a given utility which place their links in different locations. Link locations have so far only been matched with Busybox, other packages such as coreutils still cause clashes. Therefore, toybox currently installs cleanly on core-image-minimal but fails to install cleanly on core-image-full-cmdline.

Hopefully Toybox is still usable for testing in the current state. With further development of the recipe it should be possible to install and uninstall toybox cleanly on all core images. With further upstream development it should become a viable replacement for Busybox.

---
 meta-oe/licenses/BSD-0-Clause                      |  12 +
 .../toybox/0001-Match-paths-with-busybox.patch     | 365 +++++++++++++++++++++
 meta-oe/recipes-core/toybox/toybox_0.4.9.bb        |  64 ++++
 3 files changed, 441 insertions(+)
 create mode 100644 meta-oe/licenses/BSD-0-Clause
 create mode 100644 meta-oe/recipes-core/toybox/toybox/0001-Match-paths-with-busybox.patch
 create mode 100644 meta-oe/recipes-core/toybox/toybox_0.4.9.bb
meta-oe/licenses/BSD-0-Clause new file +12 -0
new file mode 100644
index 0000000..328bdd6
@@ -0,0 +1,12 @@
+Copyright (C) <YEAR> by <OWNER>
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
meta-oe/recipes-core/toybox/toybox/0001-Match-paths-with-busybox.patch new file +365 -0

365 lines not on this page · raw message

meta-oe/recipes-core/toybox/toybox_0.4.9.bb new file +64 -0

64 lines not on this page · raw message

Signature · 1 line
2.1.0