summaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/findutils
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-extended/findutils')
-rw-r--r--meta/recipes-extended/findutils/findutils.inc8
-rw-r--r--meta/recipes-extended/findutils/findutils/run-ptest32
-rw-r--r--meta/recipes-extended/findutils/findutils_4.10.0.bb28
-rw-r--r--meta/recipes-extended/findutils/findutils_4.8.0.bb14
4 files changed, 65 insertions, 17 deletions
diff --git a/meta/recipes-extended/findutils/findutils.inc b/meta/recipes-extended/findutils/findutils.inc
index 9aa7239825..ddcc05750b 100644
--- a/meta/recipes-extended/findutils/findutils.inc
+++ b/meta/recipes-extended/findutils/findutils.inc
@@ -6,11 +6,13 @@ HOMEPAGE = "http://www.gnu.org/software/findutils/"
6BUGTRACKER = "http://savannah.gnu.org/bugs/?group=findutils" 6BUGTRACKER = "http://savannah.gnu.org/bugs/?group=findutils"
7SECTION = "console/utils" 7SECTION = "console/utils"
8 8
9SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.xz" 9SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.xz \
10 file://run-ptest \
11 "
10 12
11inherit autotools gettext texinfo update-alternatives 13inherit autotools gettext texinfo update-alternatives ptest
12 14
13ALTERNATIVE_${PN} = "find xargs" 15ALTERNATIVE:${PN} = "find xargs"
14ALTERNATIVE_PRIORITY = "100" 16ALTERNATIVE_PRIORITY = "100"
15 17
16BBCLASSEXTEND = "native nativesdk" 18BBCLASSEXTEND = "native nativesdk"
diff --git a/meta/recipes-extended/findutils/findutils/run-ptest b/meta/recipes-extended/findutils/findutils/run-ptest
new file mode 100644
index 0000000000..0c9af47efd
--- /dev/null
+++ b/meta/recipes-extended/findutils/findutils/run-ptest
@@ -0,0 +1,32 @@
1#!/bin/bash
2
3# create temporary symlink to workaround missing oldfind
4ln -s /usr/bin/find /tmp/oldfind
5# make oldfind visible
6export PATH="/tmp:${PATH}"
7
8# Add findutils ptest directory to PATH for getlimits
9export PATH="/usr/lib/findutils/ptest:${PATH}"
10
11export built_programs="find xargs locate updatedb"
12
13# this gets substituted by sed during build
14export VERSION="__run_ptest_version__"
15
16for f in tests/*/*.sh; do
17 bash $f ;
18 case $? in
19 0 )
20 echo -n "PASS";;
21 77 )
22 echo -n "SKIP";;
23 * )
24 echo -n "FAIL";;
25 esac
26 echo ": $f"
27done
28
29#remove symlink
30rm -f /tmp/oldfind
31
32echo
diff --git a/meta/recipes-extended/findutils/findutils_4.10.0.bb b/meta/recipes-extended/findutils/findutils_4.10.0.bb
new file mode 100644
index 0000000000..aa21637657
--- /dev/null
+++ b/meta/recipes-extended/findutils/findutils_4.10.0.bb
@@ -0,0 +1,28 @@
1require findutils.inc
2
3# GPL-2.0-or-later (<< 4.2.32), GPL-3.0-or-later (>= 4.2.32)
4LICENSE = "GPL-3.0-or-later"
5LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
6
7DEPENDS = "bison-native"
8
9SRC_URI[sha256sum] = "1387e0b67ff247d2abde998f90dfbf70c1491391a59ddfecb8ae698789f0a4f5"
10
11PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
12# http://savannah.gnu.org/bugs/?27299
13CACHED_CONFIGUREVARS += "gl_cv_func_wcwidth_works=yes"
14
15EXTRA_OECONF += "ac_cv_path_SORT=${bindir}/sort"
16
17# need od from coreutils for -t option
18RDEPENDS:${PN}-ptest += "bash sed grep coreutils"
19
20do_install_ptest:class-target() {
21 mkdir -p ${D}${PTEST_PATH}/tests/
22 cp ${S}/init.cfg ${D}${PTEST_PATH}
23 cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests/
24 install -m 755 ${B}/find/getlimits ${D}${PTEST_PATH}/
25
26 # substitute value in run-ptest with actual version
27 sed -i -e 's/__run_ptest_version__/${PV}/' ${D}${PTEST_PATH}/run-ptest
28}
diff --git a/meta/recipes-extended/findutils/findutils_4.8.0.bb b/meta/recipes-extended/findutils/findutils_4.8.0.bb
deleted file mode 100644
index 675e53c0da..0000000000
--- a/meta/recipes-extended/findutils/findutils_4.8.0.bb
+++ /dev/null
@@ -1,14 +0,0 @@
1require findutils.inc
2
3# GPLv2+ (<< 4.2.32), GPLv3+ (>= 4.2.32)
4LICENSE = "GPLv3+"
5LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
6
7DEPENDS = "bison-native"
8
9SRC_URI[sha256sum] = "57127b7e97d91282c6ace556378d5455a9509898297e46e10443016ea1387164"
10
11# http://savannah.gnu.org/bugs/?27299
12CACHED_CONFIGUREVARS += "gl_cv_func_wcwidth_works=yes"
13
14EXTRA_OECONF += "ac_cv_path_SORT=${bindir}/sort"