diff options
| author | Chen Qi <Qi.Chen@windriver.com> | 2024-06-06 20:20:12 +0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2024-06-07 23:21:42 +0100 |
| commit | 149584beef1e1b28a4e51f40515204e7edaa9d1f (patch) | |
| tree | 979607ac3e05e62c7bff9c0d4db45d26905a28d7 /meta | |
| parent | c5b985c953117480f9a876169e51d45e384f6f33 (diff) | |
| download | poky-149584beef1e1b28a4e51f40515204e7edaa9d1f.tar.gz | |
coreutils: split out coreutils-getlimits
Previously, the noinst_PROGRAM getlimits is put in coreutils-ptest
package in order to execute the ptest. However, this command might
also be needed by other ptest packages. As an example, findutils
4.10.0 ptest pacakge would need this command. So we split it out
into a new package.
(From OE-Core rev: 7bc06eed72ceb55d2c5342e9130e39bd15c04b9a)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
| -rw-r--r-- | meta/recipes-core/coreutils/coreutils_9.5.bb | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/meta/recipes-core/coreutils/coreutils_9.5.bb b/meta/recipes-core/coreutils/coreutils_9.5.bb index 9a5f836ebe..178dadc3c5 100644 --- a/meta/recipes-core/coreutils/coreutils_9.5.bb +++ b/meta/recipes-core/coreutils/coreutils_9.5.bb | |||
| @@ -76,6 +76,11 @@ RDEPENDS:coreutils:class-target += "${@bb.utils.contains('PACKAGECONFIG', 'singl | |||
| 76 | # regardless of whether single-binary is in effect. | 76 | # regardless of whether single-binary is in effect. |
| 77 | RPROVIDES:coreutils += "${@bb.utils.contains('PACKAGECONFIG', 'single-binary', 'coreutils-stdbuf', '', d)}" | 77 | RPROVIDES:coreutils += "${@bb.utils.contains('PACKAGECONFIG', 'single-binary', 'coreutils-stdbuf', '', d)}" |
| 78 | 78 | ||
| 79 | # put getlimits into coreutils-getlimits, because other ptest packages such as | ||
| 80 | # findutils-ptest may need this command. Note that getlimits is a noinst_PROGRAM | ||
| 81 | PACKAGE_BEFORE_PN:class-target += "${PN}-getlimits" | ||
| 82 | FILES:${PN}-getlimits = "${bindir}/getlimits" | ||
| 83 | |||
| 79 | # Let aclocal use the relative path for the m4 file rather than the | 84 | # Let aclocal use the relative path for the m4 file rather than the |
| 80 | # absolute since coreutils has a lot of m4 files, otherwise there might | 85 | # absolute since coreutils has a lot of m4 files, otherwise there might |
| 81 | # be an "Argument list too long" error when it is built in a long/deep | 86 | # be an "Argument list too long" error when it is built in a long/deep |
| @@ -109,6 +114,9 @@ do_install:append() { | |||
| 109 | # in update-alternatives to fail, therefore use lbracket - the name used | 114 | # in update-alternatives to fail, therefore use lbracket - the name used |
| 110 | # for the actual source file. | 115 | # for the actual source file. |
| 111 | mv ${D}${bindir}/[ ${D}${bindir}/lbracket.${BPN} | 116 | mv ${D}${bindir}/[ ${D}${bindir}/lbracket.${BPN} |
| 117 | |||
| 118 | # this getlimits noinst_PROGRAM would possibly be needed by other ptest packages | ||
| 119 | install ${B}/src/getlimits ${D}/${bindir} | ||
| 112 | } | 120 | } |
| 113 | 121 | ||
| 114 | inherit update-alternatives | 122 | inherit update-alternatives |
| @@ -204,7 +212,6 @@ do_install_ptest () { | |||
| 204 | 212 | ||
| 205 | # Tweak test d_type-check to use python3 instead of python | 213 | # Tweak test d_type-check to use python3 instead of python |
| 206 | sed -i "1s@.*@#!/usr/bin/python3@" ${D}${PTEST_PATH}/tests/d_type-check | 214 | sed -i "1s@.*@#!/usr/bin/python3@" ${D}${PTEST_PATH}/tests/d_type-check |
| 207 | install ${B}/src/getlimits ${D}/${bindir} | ||
| 208 | 215 | ||
| 209 | # handle multilib | 216 | # handle multilib |
| 210 | sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest | 217 | sed -i s:@libdir@:${libdir}:g ${D}${PTEST_PATH}/run-ptest |
| @@ -216,4 +223,4 @@ do_install_ptest:append:libc-musl () { | |||
| 216 | sed -i -e '/tests\/dd\/no-allocate.sh/d' ${D}${PTEST_PATH}/Makefile | 223 | sed -i -e '/tests\/dd\/no-allocate.sh/d' ${D}${PTEST_PATH}/Makefile |
| 217 | sed -i -e '/tests\/split\/line-bytes.sh/d' ${D}${PTEST_PATH}/Makefile | 224 | sed -i -e '/tests\/split\/line-bytes.sh/d' ${D}${PTEST_PATH}/Makefile |
| 218 | } | 225 | } |
| 219 | FILES:${PN}-ptest += "${bindir}/getlimits" | 226 | RDEPENDS:${PN}-ptest += "${PN}-getlimits" |
