findutils: use getlimits from findutils

Having findutils depending on coreutils-getlimits makes it harder to replace GNU coreutils with uutils-coreutils
using PREFERRED_PROVIDER.
Also, the findutils repository contains a version of getlimits used for the tests, so there is no need to depend
on coreutils's version of getlimits.

(From OE-Core rev: 4e4149c13adda3dd3b07712b1025ef077dd460b4)

Signed-off-by: Etienne Cordonnier <ecordonnier@snap.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Etienne Cordonnier
2025-06-08 23:00:31 +02:00
committed by Richard Purdie
parent 2db3a58bc7
commit 88dc0474de
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,9 @@ ln -s /usr/bin/find /tmp/oldfind
# make oldfind visible
export PATH="/tmp:${PATH}"
# Add findutils ptest directory to PATH for getlimits
export PATH="/usr/lib/findutils/ptest:${PATH}"
export built_programs="find xargs locate updatedb"
# this gets substituted by sed during build

View File

@@ -15,12 +15,13 @@ CACHED_CONFIGUREVARS += "gl_cv_func_wcwidth_works=yes"
EXTRA_OECONF += "ac_cv_path_SORT=${bindir}/sort"
# need od from coreutils for -t option
RDEPENDS:${PN}-ptest += "bash sed grep coreutils coreutils-getlimits"
RDEPENDS:${PN}-ptest += "bash sed grep coreutils"
do_install_ptest:class-target() {
mkdir -p ${D}${PTEST_PATH}/tests/
cp ${S}/init.cfg ${D}${PTEST_PATH}
cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests/
install -m 755 ${B}/find/getlimits ${D}${PTEST_PATH}/
# substitute value in run-ptest with actual version
sed -i -e 's/__run_ptest_version__/${PV}/' ${D}${PTEST_PATH}/run-ptest