summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/createrepo
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-06-12 17:29:21 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-06-13 17:38:11 +0100
commitec0b81a5319cb7258cdf30458c5740a687977ed2 (patch)
treefcc637b5e81362d04148ec71dc9c4b3e4ebcd284 /meta/recipes-support/createrepo
parent81c3428e5c6666dc05a792ae3632510ad3219bd6 (diff)
downloadpoky-ec0b81a5319cb7258cdf30458c5740a687977ed2.tar.gz
createrepo: drop the usage of create_wrapper
create_wrapper was previously abused to invoke the Python interpretter directly instead of relying on #! parsing, which is read into a 128 byte buffer so breaks with deep build directories. However now that we already install a "nativepython" binary into the native sysroot, use sed to change the #! line to /usr/bin/env nativepython. (From OE-Core rev: 7d91b44e00d6c50b7b5fbef17f2bae8e3a983a4c) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/createrepo')
-rw-r--r--meta/recipes-support/createrepo/createrepo_0.4.11.bb2
1 files changed, 1 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 c977c2e6e8..523d31b82a 100644
--- a/meta/recipes-support/createrepo/createrepo_0.4.11.bb
+++ b/meta/recipes-support/createrepo/createrepo_0.4.11.bb
@@ -35,7 +35,7 @@ do_install_append_class-native () {
35 for i in ${D}${datadir}/createrepo/genpkgmetadata.py \ 35 for i in ${D}${datadir}/createrepo/genpkgmetadata.py \
36 ${D}${datadir}/createrepo/modifyrepo.py \ 36 ${D}${datadir}/createrepo/modifyrepo.py \
37 ${D}${bindir}/rpm-createsolvedb.py ; do 37 ${D}${bindir}/rpm-createsolvedb.py ; do
38 create_wrapper $i ${STAGING_BINDIR_NATIVE}/python-native/python 38 sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env nativepython|' $i
39 done 39 done
40 40
41 create_wrapper ${D}/${bindir}/createrepo \ 41 create_wrapper ${D}/${bindir}/createrepo \