diff options
Diffstat (limited to 'meta/recipes-extended/findutils')
-rw-r--r-- | meta/recipes-extended/findutils/findutils.inc | 8 | ||||
-rw-r--r-- | meta/recipes-extended/findutils/findutils/run-ptest | 32 | ||||
-rw-r--r-- | meta/recipes-extended/findutils/findutils_4.10.0.bb | 28 | ||||
-rw-r--r-- | meta/recipes-extended/findutils/findutils_4.8.0.bb | 14 |
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/" | |||
6 | BUGTRACKER = "http://savannah.gnu.org/bugs/?group=findutils" | 6 | BUGTRACKER = "http://savannah.gnu.org/bugs/?group=findutils" |
7 | SECTION = "console/utils" | 7 | SECTION = "console/utils" |
8 | 8 | ||
9 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.xz" | 9 | SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.xz \ |
10 | file://run-ptest \ | ||
11 | " | ||
10 | 12 | ||
11 | inherit autotools gettext texinfo update-alternatives | 13 | inherit autotools gettext texinfo update-alternatives ptest |
12 | 14 | ||
13 | ALTERNATIVE_${PN} = "find xargs" | 15 | ALTERNATIVE:${PN} = "find xargs" |
14 | ALTERNATIVE_PRIORITY = "100" | 16 | ALTERNATIVE_PRIORITY = "100" |
15 | 17 | ||
16 | BBCLASSEXTEND = "native nativesdk" | 18 | BBCLASSEXTEND = "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 | ||
4 | ln -s /usr/bin/find /tmp/oldfind | ||
5 | # make oldfind visible | ||
6 | export PATH="/tmp:${PATH}" | ||
7 | |||
8 | # Add findutils ptest directory to PATH for getlimits | ||
9 | export PATH="/usr/lib/findutils/ptest:${PATH}" | ||
10 | |||
11 | export built_programs="find xargs locate updatedb" | ||
12 | |||
13 | # this gets substituted by sed during build | ||
14 | export VERSION="__run_ptest_version__" | ||
15 | |||
16 | for 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" | ||
27 | done | ||
28 | |||
29 | #remove symlink | ||
30 | rm -f /tmp/oldfind | ||
31 | |||
32 | echo | ||
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 @@ | |||
1 | require findutils.inc | ||
2 | |||
3 | # GPL-2.0-or-later (<< 4.2.32), GPL-3.0-or-later (>= 4.2.32) | ||
4 | LICENSE = "GPL-3.0-or-later" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464" | ||
6 | |||
7 | DEPENDS = "bison-native" | ||
8 | |||
9 | SRC_URI[sha256sum] = "1387e0b67ff247d2abde998f90dfbf70c1491391a59ddfecb8ae698789f0a4f5" | ||
10 | |||
11 | PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux" | ||
12 | # http://savannah.gnu.org/bugs/?27299 | ||
13 | CACHED_CONFIGUREVARS += "gl_cv_func_wcwidth_works=yes" | ||
14 | |||
15 | EXTRA_OECONF += "ac_cv_path_SORT=${bindir}/sort" | ||
16 | |||
17 | # need od from coreutils for -t option | ||
18 | RDEPENDS:${PN}-ptest += "bash sed grep coreutils" | ||
19 | |||
20 | do_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 @@ | |||
1 | require findutils.inc | ||
2 | |||
3 | # GPLv2+ (<< 4.2.32), GPLv3+ (>= 4.2.32) | ||
4 | LICENSE = "GPLv3+" | ||
5 | LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464" | ||
6 | |||
7 | DEPENDS = "bison-native" | ||
8 | |||
9 | SRC_URI[sha256sum] = "57127b7e97d91282c6ace556378d5455a9509898297e46e10443016ea1387164" | ||
10 | |||
11 | # http://savannah.gnu.org/bugs/?27299 | ||
12 | CACHED_CONFIGUREVARS += "gl_cv_func_wcwidth_works=yes" | ||
13 | |||
14 | EXTRA_OECONF += "ac_cv_path_SORT=${bindir}/sort" | ||