Initial commit
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
SUMMARY = "find, locate, and xargs binaries"
|
||||
DESCRIPTION = "The GNU Find Utilities are the basic directory searching utilities of the GNU operating system. \
|
||||
These programs are typically used in conjunction with other programs to provide modular and powerful directory \
|
||||
search and file locating capabilities to other commands."
|
||||
HOMEPAGE = "http://www.gnu.org/software/findutils/"
|
||||
BUGTRACKER = "http://savannah.gnu.org/bugs/?group=findutils"
|
||||
SECTION = "console/utils"
|
||||
|
||||
SRC_URI = "${GNU_MIRROR}/${BPN}/${BP}.tar.xz \
|
||||
file://run-ptest \
|
||||
"
|
||||
|
||||
inherit autotools gettext texinfo update-alternatives ptest
|
||||
|
||||
ALTERNATIVE:${PN} = "find xargs"
|
||||
ALTERNATIVE_PRIORITY = "100"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
@@ -0,0 +1,57 @@
|
||||
#!/bin/bash
|
||||
|
||||
# create temporary symlink to workaround missing oldfind
|
||||
ln -s /usr/bin/find /tmp/oldfind
|
||||
# make oldfind visible
|
||||
export PATH="/tmp:${PATH}"
|
||||
|
||||
export built_programs="find xargs locate updatedb"
|
||||
|
||||
# this gets substituted by sed during build
|
||||
export VERSION="__run_ptest_version__"
|
||||
|
||||
# define missing functions for tests/init.sh
|
||||
fu_path_prepend_ () {
|
||||
path_prepend_ $@
|
||||
}
|
||||
|
||||
print_ver_ () {
|
||||
:
|
||||
}
|
||||
|
||||
skip_if_root_ () {
|
||||
[ $(id -u) = 0 ] && exit 77;
|
||||
}
|
||||
|
||||
require_root_ () {
|
||||
[ $(id -u) = 0 ] || exit 77;
|
||||
}
|
||||
|
||||
expensive_ () {
|
||||
:
|
||||
}
|
||||
|
||||
export -f fu_path_prepend_
|
||||
export -f print_ver_
|
||||
export -f skip_if_root_
|
||||
export -f require_root_
|
||||
export -f expensive_
|
||||
|
||||
|
||||
for f in tests/*/*.sh; do
|
||||
bash $f ;
|
||||
case $? in
|
||||
0 )
|
||||
echo -n "PASS";;
|
||||
77 )
|
||||
echo -n "SKIP";;
|
||||
* )
|
||||
echo -n "FAIL";;
|
||||
esac
|
||||
echo ": $f"
|
||||
done
|
||||
|
||||
#remove symlink
|
||||
rm -f /tmp/oldfind
|
||||
|
||||
echo
|
||||
@@ -0,0 +1,27 @@
|
||||
require findutils.inc
|
||||
|
||||
# GPL-2.0-or-later (<< 4.2.32), GPL-3.0-or-later (>= 4.2.32)
|
||||
LICENSE = "GPL-3.0-or-later"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464"
|
||||
|
||||
DEPENDS = "bison-native"
|
||||
|
||||
SRC_URI[sha256sum] = "a2bfb8c09d436770edc59f50fa483e785b161a3b7b9d547573cb08065fd462fe"
|
||||
|
||||
PACKAGECONFIG[selinux] = "--with-selinux,--without-selinux,libselinux"
|
||||
# http://savannah.gnu.org/bugs/?27299
|
||||
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"
|
||||
|
||||
do_install_ptest:class-target() {
|
||||
mkdir -p ${D}${PTEST_PATH}/tests/
|
||||
cp -r ${S}/tests/* ${D}${PTEST_PATH}/tests/
|
||||
|
||||
# substitute value in run-ptest with actual version
|
||||
sed -i -e 's/__run_ptest_version__/${PV}/' ${D}${PTEST_PATH}/run-ptest
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user