diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2014-02-23 23:58:07 +0100 |
---|---|---|
committer | Peter Korsgaard <peter@korsgaard.com> | 2014-02-24 09:01:05 +0100 |
commit | a8da3cd61aafd3e2fd44b87725fcc14b60b93be8 (patch) | |
tree | 880e89124200130bd995505e8d6ca4d503952bce /system | |
parent | 848c5b948092c7904a53119e7760e61c391667e9 (diff) | |
download | buildroot-a8da3cd61aafd3e2fd44b87725fcc14b60b93be8.tar.gz buildroot-a8da3cd61aafd3e2fd44b87725fcc14b60b93be8.zip |
util-linux: libblkid needs fork(), disable on !MMU
The libblkid library in util-linux uses fork. While it seems
potentially possible to disable the parts of the library that use fork
(the only parts using fork are parts related to LVM and Device Mapper,
which are said to be legacy as they are replaced by sysfs based
scanning, instead of having to fork to run a separate process).
However, since libblkid is used by:
- e2fsprogs, which uses lots of fork all over the place
- udev, which most likely will also need fork
There is not much point in making libblkid fork-less. As a
consequence, this commit makes util-linux/libblkid unavailable on
non-MMU architectures, and propagates the relevant dependency to the
reverse dependencies of libblkid.
This fixes the e2fsprogs build failure seen on Blackfin. The failure
was due to a configure test of e2fsprogs which was trying to link a
small test program against libblkid, which failed because there was an
undefined reference to fork() in the libblkid code.
Fixes:
http://autobuild.buildroot.net/results/ee2c1568d16ac040011dd4d6d8b543ff9e9e2622/
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'system')
-rw-r--r-- | system/Config.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/system/Config.in b/system/Config.in index 181a0ac12a..f9623b97ab 100644 --- a/system/Config.in +++ b/system/Config.in @@ -127,6 +127,7 @@ config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV depends on BR2_LARGEFILE # udev depends on BR2_USE_WCHAR # udev depends on !BR2_PREFER_STATIC_LIB # udev -> kmod + depends on BR2_USE_MMU # udev -> util-linux/libblkid select BR2_PACKAGE_UDEV comment "udev needs a toolchain w/ largefile, wchar" |