mirror of
https://git.yoctoproject.org/poky
synced 2026-09-08 12:49:32 +02:00
Fixes sstate relocation due to the path to /etc/rpm being baked into the libraries - this manifested in the form of the following assertion at runtime: rpmresolve: dbconfig.c:493: db3New: Assertion `dbOpts != ((void *)0) && *dbOpts != '\0'' failed. Fixes [YOCTO #2936]. (From OE-Core rev: 44c2fb7ea0228dd749129d334c76a1bd2983e585) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
30 lines
869 B
BlitzBasic
30 lines
869 B
BlitzBasic
SUMMARY = "OpenEmbedded RPM resolver utility"
|
|
DESCRIPTION = "OpenEmbedded RPM resolver - performs RPM database lookups in batches to avoid \
|
|
repeated invocations of rpm on the command line."
|
|
DEPENDS = "rpm"
|
|
LICENSE = "GPLv2"
|
|
LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6"
|
|
PR = "r1"
|
|
|
|
SRC_URI = "file://rpmresolve.c"
|
|
|
|
S = "${WORKDIR}"
|
|
|
|
do_compile() {
|
|
${CC} ${CFLAGS} -ggdb -I${STAGING_INCDIR}/rpm ${LDFLAGS} rpmresolve.c -o rpmresolve -lrpmbuild -lrpm -lrpmio -lrpmdb -lpopt
|
|
}
|
|
|
|
do_install() {
|
|
install -d ${D}${bindir}
|
|
install -m 0755 rpmresolve ${D}${bindir}
|
|
}
|
|
|
|
do_install_append_virtclass-native() {
|
|
create_wrapper ${D}/${bindir}/rpmresolve \
|
|
RPM_USRLIBRPM=${STAGING_LIBDIR_NATIVE}/rpm \
|
|
RPM_ETCRPM=${STAGING_ETCDIR_NATIVE}/rpm \
|
|
RPM_LOCALEDIRRPM=${STAGING_DATADIR_NATIVE}/locale
|
|
}
|
|
|
|
BBCLASSEXTEND = "native"
|