summaryrefslogtreecommitdiffstats
path: root/meta-python
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2020-07-09 21:01:07 -0700
committerKhem Raj <raj.khem@gmail.com>2020-07-12 19:04:17 -0700
commit74c3fc3084c7adce390fe7ca33651ea5949319f8 (patch)
tree22a2cbecd09ad4135a9d86a4d5dc112db980e9ab /meta-python
parent48509aec24e819237926cfbc29ccdb1b8ca311ee (diff)
downloadmeta-openembedded-74c3fc3084c7adce390fe7ca33651ea5949319f8.tar.gz
python3-icu: add new package
needed by python3-natsort Signed-off-by: Armin Kuster <akuster808@gmail.com> Acked-by: Trevor Gamblin <trevor.gamblin@windriver.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-python')
-rw-r--r--meta-python/recipes-devtools/python/python3-icu/fix_host_include.patch30
-rw-r--r--meta-python/recipes-devtools/python/python3-icu_2.5.bb13
2 files changed, 43 insertions, 0 deletions
diff --git a/meta-python/recipes-devtools/python/python3-icu/fix_host_include.patch b/meta-python/recipes-devtools/python/python3-icu/fix_host_include.patch
new file mode 100644
index 0000000000..1b6e890436
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-icu/fix_host_include.patch
@@ -0,0 +1,30 @@
1Fixed host contamination of include files
2
3python3-icu-2.5-r0 do_package_qa: QA Issue: python3-icu: The compile log indicates that host include and/or library paths were used.
4
5Also, don't use icu-config
6
7Upstream-Status: [inappropriate] OE specific
8Signed-off-by: Armin Kuster <akuster808@gmail.com>
9
10Index: PyICU-2.5/setup.py
11===================================================================
12--- PyICU-2.5.orig/setup.py
13+++ PyICU-2.5/setup.py
14@@ -81,7 +81,7 @@ Building PyICU %s for ICU %s (max ICU ma
15
16 CONFIGURE_WITH_ICU_CONFIG = {
17 'darwin': True,
18- 'linux': True,
19+ 'linux': False,
20 'freebsd': False, # not tested
21 'win32': False, # no icu-config
22 'sunos5': False, # not tested
23@@ -274,7 +274,6 @@ setup(name="PyICU",
24 ext_modules=[Extension('_icu',
25 [filename for filename in sorted(os.listdir(os.curdir))
26 if filename.endswith('.cpp')],
27- include_dirs=_includes,
28 extra_compile_args=_cflags,
29 extra_link_args=_lflags,
30 libraries=_libraries)],
diff --git a/meta-python/recipes-devtools/python/python3-icu_2.5.bb b/meta-python/recipes-devtools/python/python3-icu_2.5.bb
new file mode 100644
index 0000000000..5e8c8a3a02
--- /dev/null
+++ b/meta-python/recipes-devtools/python/python3-icu_2.5.bb
@@ -0,0 +1,13 @@
1SUMMARY = "Python extension wrapping the ICU C++ API"
2SECTION = "devel/python"
3LICENSE = "MIT"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=c7c4bfd81a21e3b6368bdcced992bf59"
5
6DEPENDS += "pkgconfig icu"
7
8PYPI_PACKAGE = "PyICU"
9SRC_URI[sha256sum] = "a120b68c53f769f37bfb70b7e84ca12c3f4ab1e4df43e87a02dff05ae472cdbc"
10
11SRC_URI += "file://fix_host_include.patch"
12
13inherit pypi setuptools3