diff options
author | Adrian Bunk <bunk@stusta.de> | 2019-10-31 14:28:14 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-31 16:09:35 +0000 |
commit | b23f006851e5aaf920d0d4dfccbb96da954eda20 (patch) | |
tree | c9680e5fbe1599399ab6eef9263765b33f12e74c /meta | |
parent | 5c5a58d25582d047fdaa1946fd65a68fbb919723 (diff) | |
download | poky-b23f006851e5aaf920d0d4dfccbb96da954eda20.tar.gz |
coreutils: Move stdbuf into an own package coreutils-stdbuf
The coreutils implementation of stdbuf uses LD_PRELOAD
to dynamically load libstdbuf which calls setvbuf().
This can't be implemented simply in busybox since it produces
one or two statically linked executables. Therefore, stdbuf
should be packaged separately for people who are using busybox
instead of coreutils for the other tools.
coreutils depends on the new package,
so nothing changes when installing coreutils.
(From OE-Core rev: 992cec44ad2073cfe05cb2c58936032af189748a)
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/coreutils/coreutils_8.31.bb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/recipes-core/coreutils/coreutils_8.31.bb b/meta/recipes-core/coreutils/coreutils_8.31.bb index 4a74f619af..57b2c1bdba 100644 --- a/meta/recipes-core/coreutils/coreutils_8.31.bb +++ b/meta/recipes-core/coreutils/coreutils_8.31.bb | |||
@@ -49,7 +49,7 @@ bindir_progs = "arch basename chcon cksum comm csplit cut dir dircolors dirname | |||
49 | env expand expr factor fmt fold groups head hostid id install \ | 49 | env expand expr factor fmt fold groups head hostid id install \ |
50 | join link logname md5sum mkfifo nl nohup nproc od paste pathchk \ | 50 | join link logname md5sum mkfifo nl nohup nproc od paste pathchk \ |
51 | pinky pr printf ptx readlink realpath runcon seq sha1sum sha224sum sha256sum \ | 51 | pinky pr printf ptx readlink realpath runcon seq sha1sum sha224sum sha256sum \ |
52 | sha384sum sha512sum shred shuf sort split stdbuf sum tac tail tee test timeout \ | 52 | sha384sum sha512sum shred shuf sort split sum tac tail tee test timeout \ |
53 | tr truncate tsort tty unexpand uniq unlink uptime users vdir wc who whoami yes" | 53 | tr truncate tsort tty unexpand uniq unlink uptime users vdir wc who whoami yes" |
54 | 54 | ||
55 | # hostname gets a special treatment and is not included in this | 55 | # hostname gets a special treatment and is not included in this |
@@ -58,6 +58,10 @@ base_bindir_progs = "cat chgrp chmod chown cp date dd echo false hostname kill l | |||
58 | 58 | ||
59 | sbindir_progs= "chroot" | 59 | sbindir_progs= "chroot" |
60 | 60 | ||
61 | PACKAGE_BEFORE_PN_class-target += "coreutils-stdbuf" | ||
62 | FILES_coreutils-stdbuf = "${bindir}/stdbuf ${libdir}/coreutils/libstdbuf.so" | ||
63 | RDEPENDS_coreutils_class-target += "coreutils-stdbuf" | ||
64 | |||
61 | # Let aclocal use the relative path for the m4 file rather than the | 65 | # Let aclocal use the relative path for the m4 file rather than the |
62 | # absolute since coreutils has a lot of m4 files, otherwise there might | 66 | # absolute since coreutils has a lot of m4 files, otherwise there might |
63 | # be an "Argument list too long" error when it is built in a long/deep | 67 | # be an "Argument list too long" error when it is built in a long/deep |