diff options
author | Robert Yang <liezhi.yang@windriver.com> | 2012-08-01 17:14:54 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-01 23:11:17 +0100 |
commit | dfd86b645b239b1a935d6304bbd0e3f787a53003 (patch) | |
tree | f96758f089efedab06d98c86a7c989fb6ec2d00d /meta/recipes-support | |
parent | 148e19e880f0c132f7679bd8779377fa4e1e6778 (diff) | |
download | poky-dfd86b645b239b1a935d6304bbd0e3f787a53003.tar.gz |
createrepo 0.4.11: create wrapper for python script
The native python is installed to
${STAGING_BINDIR_NATIVE}/python-native/python, so we should use wrapper
for the python script.
[YOCTO #2822]
(From OE-Core rev: 1e96a8460b93ba9c0c9a6c4ea4ffd6a19302831c)
Signed-off-by: Robert Yang <liezhi.yang@windriver.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.bb | 15 |
1 files changed, 14 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 dcddcf8331..42c7214bb2 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 | ||
7 | RDEPENDS_${PN}_virtclass-native += "libxml2-native rpm-native" | 7 | RDEPENDS_${PN}_virtclass-native += "libxml2-native rpm-native" |
8 | 8 | ||
9 | PR = "r5" | 9 | PR = "r6" |
10 | 10 | ||
11 | SRC_URI= "http://createrepo.baseurl.org/download/${BP}.tar.gz \ | 11 | SRC_URI= "http://createrepo.baseurl.org/download/${BP}.tar.gz \ |
12 | file://fix-native-install.patch \ | 12 | file://fix-native-install.patch \ |
@@ -24,3 +24,16 @@ do_install () { | |||
24 | oe_runmake -e 'DESTDIR=${D}' install | 24 | oe_runmake -e 'DESTDIR=${D}' install |
25 | install -m 0755 ${WORKDIR}/rpm-createsolvedb.py ${D}${bindir}/ | 25 | install -m 0755 ${WORKDIR}/rpm-createsolvedb.py ${D}${bindir}/ |
26 | } | 26 | } |
27 | |||
28 | # Wrap the python script since the native python is | ||
29 | # ${bindir}/python-native/python, and the "#! /usr/bin/env python" can't | ||
30 | # find it since it is not in PATH. | ||
31 | do_install_append_virtclass-native () { | ||
32 | # Not all the python scripts should be wrapped since some of | ||
33 | # them are modules (be imported). | ||
34 | for i in ${D}${datadir}/createrepo/genpkgmetadata.py \ | ||
35 | ${D}${datadir}/createrepo/modifyrepo.py \ | ||
36 | ${D}${bindir}/rpm-createsolvedb.py ; do | ||
37 | create_wrapper $i ${STAGING_BINDIR_NATIVE}/python-native/python | ||
38 | done | ||
39 | } | ||