From: Ross Burton Date: Wed, 12 Jun 2013 16:29:21 +0000 (+0100) Subject: createrepo: drop the usage of create_wrapper X-Git-Tag: rev_ivi_2015_02_04~12171 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5eff6e8678463d4f564e3955be45a8bf6e82b3e3;p=scm%2Fbb%2Ftizen-distro.git 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 Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-support/createrepo/createrepo_0.4.11.bb b/meta/recipes-support/createrepo/createrepo_0.4.11.bb index c977c2e..523d31b 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 () { for i in ${D}${datadir}/createrepo/genpkgmetadata.py \ ${D}${datadir}/createrepo/modifyrepo.py \ ${D}${bindir}/rpm-createsolvedb.py ; do - create_wrapper $i ${STAGING_BINDIR_NATIVE}/python-native/python + sed -i -e 's|^#!.*/usr/bin/env python|#! /usr/bin/env nativepython|' $i done create_wrapper ${D}/${bindir}/createrepo \