Khem Raj d8259c30aa
e2tools: Do not hardcode 'git' as part of path in ptests
Before S was not inside UNPACKDIR and default path for recipes
using git fetcher would be in WORKDIR/git but it has changed
now recently after S moved inside UNPACKDIR the name of source folder
is no more 'git', use wildcard to find the files to delete

Fixes
ERROR: e2tools-0.1.2-r0 do_package_qa: QA Issue: /usr/lib/e2tools/ptest/e2tools-0.1.2/.git/hooks/update.sample contained in package e2tools-ptest requires /usr/bin/sh, but no providers found in RDEPENDS:e2tools-ptest? [file-rdeps]

Signed-off-by: Khem Raj <raj.khem@gmail.com>
2025-07-14 00:00:35 -07:00

48 lines
1.7 KiB
BlitzBasic

SUMMARY = "Set of GPL'ed utilities to ext2/ext3 filesystem."
DESCRIPTION = "e2tools is a simple set of GPL'ed utilities to read, write, \
and manipulate files in an ext2/ext3 filesystem. These utilities access a \
filesystem directly using the ext2fs library. Can also be used on a Linux \
machine to read/write to disk images or floppies without having to mount \
them or have root access."
HOMEPAGE = "https://github.com/e2tools/e2tools"
SECTION = "base"
LICENSE = "GPL-2.0-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263"
DEPENDS += "coreutils e2fsprogs"
SRC_URI = " \
git://github.com/e2tools/e2tools;protocol=https;branch=master \
file://run-ptest \
"
SRCREV = "46da6c398e70635a296245851fcedbc56c35e824"
inherit autotools pkgconfig ptest
# Otherwise these tools will be detected from build host and
# assumptions will go wrong, Fun of cross compiling
EXTRA_OECONF += "\
ac_cv_path_MKE2FS=${base_sbindir}/mke2fs \
ac_cv_path_CHMOD=${base_bindir}/chmod \
ac_cv_path_DD=${base_bindir}/dd \
ac_cv_path_GREP=${base_bindir}/grep \
"
do_install_ptest() {
rm -rf "${D}${PTEST_PATH}/*"
cp -r ../build "${D}${PTEST_PATH}"
cp -r "${S}/build-aux" "${D}${PTEST_PATH}/build"
cp -r "${S}" "${D}${PTEST_PATH}"
rm -rf ${D}${PTEST_PATH}/build/config.log \
${D}${PTEST_PATH}/build/autom4te.cache \
${D}${PTEST_PATH}/*/.git ${D}${PTEST_PATH}/*/.github \
${D}${PTEST_PATH}/*/autom4te.cache
sed -i -e 's;${TMPDIR};;g' ${D}${PTEST_PATH}/build/config.status
}
RDEPENDS:${PN}-ptest += "bash coreutils e2fsprogs e2tools gawk make perl"
BBCLASSEXTEND = "native"