From e88faa7efb1862843a58682fd5da6c4c980236c3 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Sat, 23 Jun 2012 02:14:28 -0400 Subject: Add task "Removing libbb from opkg" to /dev/todo. --- (limited to 'dev/todo.html') diff --git a/dev/todo.html b/dev/todo.html index a18da8a..9d6c3fa 100755 --- a/dev/todo.html +++ b/dev/todo.html @@ -110,4 +110,20 @@

U-Boot is a bootloader used on many embedded computers, including the BeagleBoard-xM.

+

Removing libbb from opkg

+

opkg includes and is statically linked with a copy of libbb, BusyBox's helper library. Of course, BusyBox is also linked against its own copy of libbb. This is a bad idea in general, since duplicated code makes maintenance more difficult and is often subject to bit rot (resulting in long-standing bugs and security problems). It's an even larger problem (no pun intended) in embedded systems, where saving space is important.

+

The Good News

+

libbb can be built as a shared library by setting the CONFIG_BUILD_LIBBUSYBOX option to y in BusyBox's configuration. So, we can make libbusybox.N and libbusybox.N-dev binary packages that provide this shared library and its header files, modify opkg to dynamically link against this library (instead of statically linking against its own copy), and add dependency information to the opkg source package and its binary packages.

+

The Bad News

+

The copy of libbb in opkg hasn't been updated from its upstream source since at least 2008, when opkg development began from the old ipkg sources. Three months later, an attempt was made by Koen Kooi to update the copy of libbb, but it was determined that BusyBox had changed significantly since the code was added to ipkg. Things have most likely gotten much worse in the more than three years since then.

+

To make matters slightly worse, many of the libbb files have been patched in opkg. Any files in /trunk/libbb newer than revision 3 have opkg modifications.

+

The Plan

+ -- cgit v0.9.1