diff options
author | Andrei Gherzan <andrei@gherzan.ro> | 2012-04-11 17:26:15 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-04-13 16:00:59 +0100 |
commit | 164475b9669dc99c14461e1d749ec0626c62cb71 (patch) | |
tree | 569a14ada63fd741264aa7dd8db3719fde2e2529 /meta/recipes-support | |
parent | 7c95d554c431451f975e1e5d0336d1fb7d0ce7ae (diff) | |
download | openembedded-core-164475b9669dc99c14461e1d749ec0626c62cb71.tar.gz openembedded-core-164475b9669dc99c14461e1d749ec0626c62cb71.tar.bz2 openembedded-core-164475b9669dc99c14461e1d749ec0626c62cb71.tar.xz openembedded-core-164475b9669dc99c14461e1d749ec0626c62cb71.zip |
createrepo: Python scripts should use the python interpreter from env
Added path to modify the hardcoded path of python interpreter from python
scripts.
The python interpreter should be the one from native sysroot and not the
one from host machine.
[YOCTO #2134]
Signed-off-by: Andrei Gherzan <andrei@gherzan.ro>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support')
-rw-r--r-- | meta/recipes-support/createrepo/createrepo/python-scripts-should-use-interpreter-from-env.patch | 47 | ||||
-rw-r--r-- | meta/recipes-support/createrepo/createrepo_0.4.11.bb | 3 |
2 files changed, 49 insertions, 1 deletions
diff --git a/meta/recipes-support/createrepo/createrepo/python-scripts-should-use-interpreter-from-env.patch b/meta/recipes-support/createrepo/createrepo/python-scripts-should-use-interpreter-from-env.patch new file mode 100644 index 000000000..80205a150 --- /dev/null +++ b/meta/recipes-support/createrepo/createrepo/python-scripts-should-use-interpreter-from-env.patch @@ -0,0 +1,47 @@ +Author: Andrei Gherzan <andrei@gherzan.ro> + +Python interpreter should be use from PATH - native python - and not the one from +host. + +Upstream-Status: Inappropriate [configuration] + +Index: createrepo-0.4.11/genpkgmetadata.py +=================================================================== +--- createrepo-0.4.11.orig/genpkgmetadata.py 2012-04-10 17:14:05.278649384 +0300 ++++ createrepo-0.4.11/genpkgmetadata.py 2012-04-10 17:14:22.290648886 +0300 +@@ -1,4 +1,4 @@ +-#!/usr/bin/python -t ++#! /usr/bin/env python + # primary functions and glue for generating the repository metadata + # + +Index: createrepo-0.4.11/modifyrepo.py +=================================================================== +--- createrepo-0.4.11.orig/modifyrepo.py 2012-04-10 17:14:09.106649272 +0300 ++++ createrepo-0.4.11/modifyrepo.py 2012-04-10 17:14:27.818648725 +0300 +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#! /usr/bin/env python + # $Id$ + # + # This tools is used to insert arbitrary metadata into an RPM repository. +Index: createrepo-0.4.11/dumpMetadata.py +=================================================================== +--- createrepo-0.4.11.orig/dumpMetadata.py 2012-04-10 17:19:23.874640068 +0300 ++++ createrepo-0.4.11/dumpMetadata.py 2012-04-10 17:19:34.502639756 +0300 +@@ -1,4 +1,4 @@ +-#!/usr/bin/python -t ++#! /usr/bin/env python + # base classes and functions for dumping out package Metadata + # + # This program is free software; you can redistribute it and/or modify +Index: createrepo-0.4.11/readMetadata.py +=================================================================== +--- createrepo-0.4.11.orig/readMetadata.py 2012-04-10 17:19:19.626640193 +0300 ++++ createrepo-0.4.11/readMetadata.py 2012-04-10 17:19:40.198639590 +0300 +@@ -1,4 +1,4 @@ +-#!/usr/bin/python -t ++#! /usr/bin/env python + + # This program is free software; you can redistribute it and/or modify + # it under the terms of the GNU General Public License as published by diff --git a/meta/recipes-support/createrepo/createrepo_0.4.11.bb b/meta/recipes-support/createrepo/createrepo_0.4.11.bb index ba1d04b2b..989a7456e 100644 --- a/meta/recipes-support/createrepo/createrepo_0.4.11.bb +++ b/meta/recipes-support/createrepo/createrepo_0.4.11.bb @@ -4,10 +4,11 @@ HOMEPAGE = "http://createrepo.baseurl.org/" LICENSE = "GPLv2+" LIC_FILES_CHKSUM = "file://COPYING;md5=18810669f13b87348459e611d31ab760" -PR = "r1" +PR = "r2" SRC_URI= "http://createrepo.baseurl.org/download/${BP}.tar.gz \ file://fix-native-install.patch \ + file://python-scripts-should-use-interpreter-from-env.patch \ " SRC_URI[md5sum] = "3e9ccf4abcffe3f49af078c83611eda2" |