summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2012-08-13 18:58:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-08-13 20:10:34 +0100
commitd45bbc5c75a8f277fc1185a5f28847116eec376d (patch)
tree06cca7bcdca5d24a7bfbee27645988a78785b8df /meta/recipes-support
parent61addcc8536caef8cd8a2bf7ed3c6c34ce6a7f83 (diff)
downloadpoky-d45bbc5c75a8f277fc1185a5f28847116eec376d.tar.gz
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]. (From OE-Core rev: b5028cc84ad7c40c51cadbdf7fdc892cde4462cb) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r--meta/recipes-support/createrepo/createrepo_0.4.11.bb7
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 42c7214bb2..344cc77770 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"
6 6
7RDEPENDS_${PN}_virtclass-native += "libxml2-native rpm-native" 7RDEPENDS_${PN}_virtclass-native += "libxml2-native rpm-native"
8 8
9PR = "r6" 9PR = "r7"
10 10
11SRC_URI= "http://createrepo.baseurl.org/download/${BP}.tar.gz \ 11SRC_URI= "http://createrepo.baseurl.org/download/${BP}.tar.gz \
12 file://fix-native-install.patch \ 12 file://fix-native-install.patch \
@@ -36,4 +36,9 @@ do_install_append_virtclass-native () {
36 ${D}${bindir}/rpm-createsolvedb.py ; do 36 ${D}${bindir}/rpm-createsolvedb.py ; do
37 create_wrapper $i ${STAGING_BINDIR_NATIVE}/python-native/python 37 create_wrapper $i ${STAGING_BINDIR_NATIVE}/python-native/python
38 done 38 done
39
40 create_wrapper ${D}/${bindir}/createrepo \
41 RPM_USRLIBRPM=${STAGING_LIBDIR_NATIVE}/rpm \
42 RPM_ETCRPM=${STAGING_ETCDIR_NATIVE}/rpm \
43 RPM_LOCALEDIRRPM=${STAGING_DATADIR_NATIVE}/locale
39} 44}