mirror of
https://git.yoctoproject.org/poky
synced 2026-05-01 06:32:11 +02:00
elfutils: fix ptest failures
* Add missing files which needed by ptest test
to fix the ptest failures such as:
| sh: ../src/elflint: No such file or directory
| FAIL: asm-tst4
* Rework 0001-skip-the-test-when-gcc-not-deployed.patch
to skip the tests which depend on gcc
* Define INHIBIT_PACKAGE_STRIP_FILES for elfutils to
avoid stripping some generated binaries otherwise
some of the tests such as test-nlist, run-strip-reloc.sh,
run-strip-strmerge.sh and so on will fail
* Set EXCLUDE_PACKAGES_FROM_SHLIBS = "${PN}-ptest"
to avoid ${PN}-ptest be the shlibs provider to
fix below error:
Problem 1: package rpm-1:4.14.2.1-r0.core2_32 requires elfutils-ptest >= 0.176, but none of the providers can be installed
- conflicting requests
- nothing provides elfutils-binutils needed by elfutils-ptest-0.176-r0.core2_32
Problem 2: package dnf-4.2.2-r0.core2_32 requires python3-rpm, but none of the providers can be installed
- package python3-rpm-1:4.14.2.1-r0.core2_32 requires elfutils-ptest >= 0.176, but none of the providers can be installed
- conflicting requests
- nothing provides elfutils-binutils needed by elfutils-ptest-0.176-r0.core2_32
Problem 3: package ltp-20190115-r0.core2_32 requires iproute2, but none of the providers can be installed
- package packagegroup-core-tools-testapps-1.0-r2.qemux86 requires ltp, but none of the providers can be installed
- package iproute2-5.1.0-r0.core2_32 requires elfutils-ptest >= 0.176, but none of the providers can be installed
- conflicting requests
- nothing provides elfutils-binutils needed by elfutils-ptest-0.176-r0.core2_32
Before:
--------------------------------------------
Recipe | Passed | Failed | Skipped
--------------------------------------------
elfutils | 176 | 23 | 4
--------------------------------------------
After:
--------------------------------------------
Recipe | Passed | Failed | Skipped
--------------------------------------------
elfutils | 199 | 0 | 4
--------------------------------------------
(From OE-Core rev: 174690b1745eadc6981d83b7c6869712e835b5d0)
Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
e59bdafc65
commit
72cc2de0d9
@@ -61,6 +61,18 @@ do_compile_ptest() {
|
||||
|
||||
do_install_ptest() {
|
||||
if [ ${PTEST_ENABLED} = "1" ]; then
|
||||
# copy the files which needed by the cases
|
||||
TEST_FILES="strip strip.o addr2line elfcmp objdump readelf size.o nm.o nm elflint"
|
||||
install -d -m 755 ${D}${PTEST_PATH}/src
|
||||
install -d -m 755 ${D}${PTEST_PATH}/libelf
|
||||
install -d -m 755 ${D}${PTEST_PATH}/libdw
|
||||
for test_file in ${TEST_FILES}; do
|
||||
if [ -f ${B}/src/${test_file} ]; then
|
||||
cp -r ${B}/src/${test_file} ${D}${PTEST_PATH}/src
|
||||
fi
|
||||
done
|
||||
cp ${D}${libdir}/libelf-${PV}.so ${D}${PTEST_PATH}/libelf/libelf.so
|
||||
cp ${D}${libdir}/libdw-${PV}.so ${D}${PTEST_PATH}/libdw/libdw.so
|
||||
cp -r ${S}/tests/ ${D}${PTEST_PATH}
|
||||
cp -r ${B}/tests/* ${D}${PTEST_PATH}/tests
|
||||
cp -r ${B}/config.h ${D}${PTEST_PATH}
|
||||
@@ -109,3 +121,26 @@ FILES_libdw = "${libdir}/libdw-${PV}.so ${libdir}/libdw.so.* ${libdir}/elfutils
|
||||
|
||||
# The package contains symlinks that trip up insane
|
||||
INSANE_SKIP_${MLPREFIX}libdw = "dev-so"
|
||||
|
||||
# avoid stripping some generated binaries otherwise some of the tests such as test-nlist,
|
||||
# run-strip-reloc.sh, run-strip-strmerge.sh and so on will fail
|
||||
INHIBIT_PACKAGE_STRIP_FILES = "\
|
||||
${PKGD}${PTEST_PATH}/tests/test-nlist \
|
||||
${PKGD}${PTEST_PATH}/tests/elfstrmerge \
|
||||
${PKGD}${PTEST_PATH}/tests/backtrace-child \
|
||||
${PKGD}${PTEST_PATH}/tests/backtrace-data \
|
||||
${PKGD}${PTEST_PATH}/tests/deleted \
|
||||
${PKGD}${PTEST_PATH}/src/strip \
|
||||
${PKGD}${PTEST_PATH}/src/addr2line \
|
||||
${PKGD}${PTEST_PATH}/src/elfcmp \
|
||||
${PKGD}${PTEST_PATH}/src/objdump \
|
||||
${PKGD}${PTEST_PATH}/src/readelf \
|
||||
${PKGD}${PTEST_PATH}/src/nm \
|
||||
${PKGD}${PTEST_PATH}/src/elflint \
|
||||
${PKGD}${PTEST_PATH}/libelf/libelf.so \
|
||||
${PKGD}${PTEST_PATH}/libdw/libdw.so \
|
||||
${PKGD}${PTEST_PATH}/backends/libebl_i386.so \
|
||||
${PKGD}${PTEST_PATH}/backends/libebl_x86_64.so \
|
||||
"
|
||||
|
||||
EXCLUDE_PACKAGES_FROM_SHLIBS = "${PN}-ptest"
|
||||
|
||||
Reference in New Issue
Block a user