It is needed by dnf, and only when using Python 2.x, so can be dropped after moving dnf/rpm4 stack to Python 3.x.
Signed-off-by: Alexander Kanavin <alexander.kana...@linux.intel.com> --- ...-not-add-include-and-library-directories-.patch | 32 ++++++++++++++++++++++ .../python-backports-lzma_git.bb | 21 ++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 meta/recipes-devtools/python-backports-lzma/python-backports-lzma/0001-setup.py-do-not-add-include-and-library-directories-.patch create mode 100644 meta/recipes-devtools/python-backports-lzma/python-backports-lzma_git.bb diff --git a/meta/recipes-devtools/python-backports-lzma/python-backports-lzma/0001-setup.py-do-not-add-include-and-library-directories-.patch b/meta/recipes-devtools/python-backports-lzma/python-backports-lzma/0001-setup.py-do-not-add-include-and-library-directories-.patch new file mode 100644 index 00000000000..0eb904a8a70 --- /dev/null +++ b/meta/recipes-devtools/python-backports-lzma/python-backports-lzma/0001-setup.py-do-not-add-include-and-library-directories-.patch @@ -0,0 +1,32 @@ +From e5e3196cf69172b625c8c6ccca991c02fd18137c Mon Sep 17 00:00:00 2001 +From: Alexander Kanavin <alex.kana...@gmail.com> +Date: Fri, 30 Dec 2016 18:02:12 +0200 +Subject: [PATCH] setup.py: do not add include and library directories from the + host + +This avoids host contamination. + +Upstream-Status: Inappropriate [oe-core specific] +Signed-off-by: Alexander Kanavin <alex.kana...@gmail.com> +--- + setup.py | 4 +--- + 1 file changed, 1 insertion(+), 3 deletions(-) + +diff --git a/setup.py b/setup.py +index 7886cf7..9a0356a 100644 +--- a/setup.py ++++ b/setup.py +@@ -31,9 +31,7 @@ packages = ["backports", "backports.lzma"] + home = os.path.expanduser("~") + extens = [Extension('backports/lzma/_lzma', + ['backports/lzma/_lzmamodule.c'], +- libraries = ['lzma'], +- include_dirs = [os.path.join(home, 'include'), '/opt/local/include', '/usr/local/include'], +- library_dirs = [os.path.join(home, 'lib'), '/opt/local/lib', '/usr/local/lib'] ++ libraries = ['lzma'] + )] + + descr = "Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed files." +-- +2.11.0 + diff --git a/meta/recipes-devtools/python-backports-lzma/python-backports-lzma_git.bb b/meta/recipes-devtools/python-backports-lzma/python-backports-lzma_git.bb new file mode 100644 index 00000000000..6d3b8d569de --- /dev/null +++ b/meta/recipes-devtools/python-backports-lzma/python-backports-lzma_git.bb @@ -0,0 +1,21 @@ +HOMEPAGE = "https://github.com/peterjc/backports.lzma" +LICENSE = "BSD" +LIC_FILES_CHKSUM = "file://LICENSE;md5=846e05e7e9e1c886b2637c230cfcd5dd" + +SRC_URI = "git://github.com/peterjc/backports.lzma.git \ + file://0001-setup.py-do-not-add-include-and-library-directories-.patch \ + " + +PV = "0.0.6+git${SRCPV}" +SRCREV = "718b3316ae7aee8e03c02e7e110108779ce3aec8" + +S = "${WORKDIR}/git" + +inherit distutils + +DEPENDS_append = " xz" + +RDEPENDS_${PN} += "python-core python-io python-pkgutil" +RDEPENDS_${PN}_class-native += "python-core" + +BBCLASSEXTEND = "native" -- 2.11.0 -- _______________________________________________ Openembedded-core mailing list Openembedded-core@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-core