diff options
author | Alexander Kanavin <alexander.kanavin@linux.intel.com> | 2017-03-10 13:23:49 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-11 16:09:14 +0000 |
commit | 5892bb7577b8c146d00551ff5dfde146c65e1a76 (patch) | |
tree | 974148ca973b0f4df586433953d5929a1572022d /meta/recipes-devtools | |
parent | 647dd10215546c0f1bda2de1ee68e3f5bba07377 (diff) | |
download | poky-5892bb7577b8c146d00551ff5dfde146c65e1a76.tar.gz |
python-backports-lzma: add a recipe
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.
(From OE-Core rev: e58f876acdac8fff24ecd3076287eda61ef1e4d3)
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools')
2 files changed, 53 insertions, 0 deletions
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 0000000000..0eb904a8a7 --- /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 @@ | |||
1 | From e5e3196cf69172b625c8c6ccca991c02fd18137c Mon Sep 17 00:00:00 2001 | ||
2 | From: Alexander Kanavin <alex.kanavin@gmail.com> | ||
3 | Date: Fri, 30 Dec 2016 18:02:12 +0200 | ||
4 | Subject: [PATCH] setup.py: do not add include and library directories from the | ||
5 | host | ||
6 | |||
7 | This avoids host contamination. | ||
8 | |||
9 | Upstream-Status: Inappropriate [oe-core specific] | ||
10 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
11 | --- | ||
12 | setup.py | 4 +--- | ||
13 | 1 file changed, 1 insertion(+), 3 deletions(-) | ||
14 | |||
15 | diff --git a/setup.py b/setup.py | ||
16 | index 7886cf7..9a0356a 100644 | ||
17 | --- a/setup.py | ||
18 | +++ b/setup.py | ||
19 | @@ -31,9 +31,7 @@ packages = ["backports", "backports.lzma"] | ||
20 | home = os.path.expanduser("~") | ||
21 | extens = [Extension('backports/lzma/_lzma', | ||
22 | ['backports/lzma/_lzmamodule.c'], | ||
23 | - libraries = ['lzma'], | ||
24 | - include_dirs = [os.path.join(home, 'include'), '/opt/local/include', '/usr/local/include'], | ||
25 | - library_dirs = [os.path.join(home, 'lib'), '/opt/local/lib', '/usr/local/lib'] | ||
26 | + libraries = ['lzma'] | ||
27 | )] | ||
28 | |||
29 | descr = "Backport of Python 3.3's 'lzma' module for XZ/LZMA compressed files." | ||
30 | -- | ||
31 | 2.11.0 | ||
32 | |||
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 0000000000..6d3b8d569d --- /dev/null +++ b/meta/recipes-devtools/python-backports-lzma/python-backports-lzma_git.bb | |||
@@ -0,0 +1,21 @@ | |||
1 | HOMEPAGE = "https://github.com/peterjc/backports.lzma" | ||
2 | LICENSE = "BSD" | ||
3 | LIC_FILES_CHKSUM = "file://LICENSE;md5=846e05e7e9e1c886b2637c230cfcd5dd" | ||
4 | |||
5 | SRC_URI = "git://github.com/peterjc/backports.lzma.git \ | ||
6 | file://0001-setup.py-do-not-add-include-and-library-directories-.patch \ | ||
7 | " | ||
8 | |||
9 | PV = "0.0.6+git${SRCPV}" | ||
10 | SRCREV = "718b3316ae7aee8e03c02e7e110108779ce3aec8" | ||
11 | |||
12 | S = "${WORKDIR}/git" | ||
13 | |||
14 | inherit distutils | ||
15 | |||
16 | DEPENDS_append = " xz" | ||
17 | |||
18 | RDEPENDS_${PN} += "python-core python-io python-pkgutil" | ||
19 | RDEPENDS_${PN}_class-native += "python-core" | ||
20 | |||
21 | BBCLASSEXTEND = "native" | ||