[Buildroot] Proposed util-linux split
thomas.petazzoni at free-electrons.com
Tue Feb 26 18:33:30 UTC 2013
Dear Gustavo Zacarias,
On Tue, 26 Feb 2013 07:53:14 -0300, Gustavo Zacarias wrote:
> The last couple of days i've been thinking and working towards a
> solution that would split out libblkid/libuuid out of the util-linux
> It's a remake of my previous "util-linux don't install binaries" patch.
> The objectives are:
> * Upgrading to newer versions of the libraries - it's not required by
> any package, but it's useful for libblkid to recognize newer superblock
> * We can't upgrade util-linux past 2.20.1 unless we want to drop the
> basic loginutils functionality since it requires PAM starting from 2.21.
> By splitting the libraries out i can use just the libraries from newer
> util-linux versions. Caveat is you won't get the newer libraries if
> you're installing util-linux with the library options on.
I would suggest that we upgrade util-linux and add the necessary PAM
dependency when needed. We already have package/linux-pam/, so it
shouldn't be a big effort.
Of course, only the util-linux programs that actually need PAM support
should make this library become a dependency of util-linux.
> * Reduce bloat! The most important point for me, one packages needs
> libuuid and we get a dozen util-linux binaries around as a free gift.
> I've got a working not-quite-ready (needs cleanup) patchset that adds
> the libblkid and libuuid packages. These are based on a slightly patched
> (configure.ac & Makefile.am) util-linux-2.22.2 that basically reduces
> build time and keeps the original install target (you can't make -C
> libblkid install with newer util-linux versions, see
> When a package needs libuuid it would now change to:
> select BR2_PACKAGE_LIBUUID if !BR2_PACKAGE_UTIL_LINUX_LIBUUID
> to avoid duplication.
> And on libuuid Config.in:
> depends on !BR2_PACKAGE_UTIL_LINUX_LIBUUID
Would it be possible instead that util-linux always uses the libuuid
from the libuuid package?
> This lets us keep util-linux around (which doesn't work with external
> libblkid/libuuid because it doesn't expect them to be so) and slimmer
> versions of the libraries when people don't want util-linux.
> Another added bonus is libuuid doesn't require wchar this way.
> What do you think?
I must admit I don't really like having multiple packages for the same
upstream tarball. Another option is to make something like:
select BR2_PACKAGE_UTIL_LINUX_LIBUUID if !BR2_PACKAGE_UTIL_LINUX_AT_LEAST_SOMETHING
bool "program a"
This way, by default util-linux only installs libuuid.
Thomas Petazzoni, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
More information about the buildroot