[oe-commits] Paul Eggleton : createrepo: add wrapper script to fix paths
git at git.openembedded.org
git at git.openembedded.org
Mon Aug 13 19:14:17 UTC 2012
Module: openembedded-core.git
Branch: master
Commit: b5028cc84ad7c40c51cadbdf7fdc892cde4462cb
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=b5028cc84ad7c40c51cadbdf7fdc892cde4462cb
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
Date: Mon Aug 13 18:58:00 2012 +0000
createrepo: add wrapper script to fix paths
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:
python: dbconfig.c:493: db3New: Assertion `dbOpts != ((void *)0) && *dbOpts != '\0'' failed.
Fixes [YOCTO #2753].
Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
.../createrepo/createrepo_0.4.11.bb | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/meta/recipes-support/createrepo/createrepo_0.4.11.bb b/meta/recipes-support/createrepo/createrepo_0.4.11.bb
index 42c7214..344cc77 100644
--- a/meta/recipes-support/createrepo/createrepo_0.4.11.bb
+++ b/meta/recipes-support/createrepo/createrepo_0.4.11.bb
@@ -6,7 +6,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760"
RDEPENDS_${PN}_virtclass-native += "libxml2-native rpm-native"
-PR = "r6"
+PR = "r7"
SRC_URI= "http://createrepo.baseurl.org/download/${BP}.tar.gz \
file://fix-native-install.patch \
@@ -36,4 +36,9 @@ do_install_append_virtclass-native () {
${D}${bindir}/rpm-createsolvedb.py ; do
create_wrapper $i ${STAGING_BINDIR_NATIVE}/python-native/python
done
+
+ create_wrapper ${D}/${bindir}/createrepo \
+ RPM_USRLIBRPM=${STAGING_LIBDIR_NATIVE}/rpm \
+ RPM_ETCRPM=${STAGING_ETCDIR_NATIVE}/rpm \
+ RPM_LOCALEDIRRPM=${STAGING_DATADIR_NATIVE}/locale
}
More information about the Openembedded-commits
mailing list