mirror of
https://github.com/thead-yocto-mirror/meta-openembedded
synced 2026-09-16 12:12:16 +02:00
* with usrmerge ${base_bindir} is /usr/bin/sh and libsmi fails with:
ERROR: libsmi-0.5.0-r0 do_package_qa: QA Issue: /usr/bin/smistrip contained in package libsmi requires /usr/bin/sh, but no providers found in RDEPENDS_libsmi? [file-rdeps]
ERROR: libsmi-0.5.0-r0 do_package_qa: QA run found fatal errors. Please consider fixing them.
* this is a bit strange as busybox does install /usr/bin/sh file:
./1.33.0-r0.usrmerge/image/usr/bin/sh
./1.33.0-r0.default/image/bin/sh
but also adds /bin/sh to RPROVIDES_${PN} for usrmerge in DISTRO_FEATURES:
RPROVIDES_${PN} += "${@bb.utils.contains('DISTRO_FEATURES', 'usrmerge', '/bin/sh', '', d)}"
added in:
https://git.openembedded.org/openembedded-core/commit/?id=1f6c14939c8daa5e09103789c3ff5031cc888d16
and 1.33.0-r0.usrmerge/pkgdata/runtime/busybox:FILERPROVIDES_/usr/bin/busybox.nosuid_busybox
correctly contains /usr/bin/sh
* adding runtime dependency on busybox as /usr/bin/sh provider would silence the QA warning
but people might not like adding busybox to their image
* using /bin/sh silences the QA warning as well, because /bin/sh is explicitly ignored in file-rdeps insane.bbclass:
https://git.openembedded.org/openembedded-core/tree/meta/classes/insane.bbclass?id=1f6c14939c8daa5e09103789c3ff5031cc888d16#n907
if "file-rdeps" not in skip:
ignored_file_rdeps = set(['/bin/sh', '/usr/bin/env', 'rtld(GNU_HASH)'])
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
33 lines
1003 B
BlitzBasic
33 lines
1003 B
BlitzBasic
SUMMARY = "A Library to Access SMI MIB Information"
|
|
HOMEPAGE = "https://www.ibr.cs.tu-bs.de/projects/libsmi"
|
|
|
|
LICENSE = "BSD-3-Clause & tcl"
|
|
LIC_FILES_CHKSUM = "file://COPYING;md5=3ad3076f9332343a21636cfd351f05b7"
|
|
|
|
SRC_URI = "https://www.ibr.cs.tu-bs.de/projects/${BPN}/download/${BP}.tar.gz \
|
|
file://smi.conf \
|
|
file://libsmi-fix-the-test-dump-files.patch \
|
|
"
|
|
|
|
SRC_URI[md5sum] = "4bf47483c06c9f07d1b10fbc74eddf11"
|
|
SRC_URI[sha256sum] = "f21accdadb1bb328ea3f8a13fc34d715baac6e2db66065898346322c725754d3"
|
|
|
|
RDEPENDS_${PN} += "wget"
|
|
|
|
inherit autotools
|
|
|
|
EXTRA_OECONF = "ac_cv_path_SH=/bin/sh ac_cv_path_WGET=${bindir}/wget ac_cv_path_AWK=${bindir}/awk"
|
|
|
|
do_install_append () {
|
|
install -d ${D}${sysconfdir}
|
|
install -m 0644 ${WORKDIR}/smi.conf ${D}${sysconfdir}/smi.conf
|
|
}
|
|
|
|
PACKAGES += "${PN}-mibs ${PN}-pibs ${PN}-yang"
|
|
|
|
FILES_${PN}-mibs += "${datadir}/mibs"
|
|
FILES_${PN}-pibs += "${datadir}/pibs"
|
|
FILES_${PN}-yang += "${datadir}/yang"
|
|
|
|
RRECOMMENDS_${PN} = "${BPN}-mibs"
|