blob: 36485d56ced06570203333b5268aa83014101034 [file] [log] [blame]
Andrew Geissler9aee5002022-03-30 16:27:02 +00001From a82fea9663f0c70cf57cd06650f400e878afc5e4 Mon Sep 17 00:00:00 2001
Andrew Geisslerf103a7f2021-05-07 16:09:40 -05002From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 16 Apr 2021 10:48:36 -0700
4Subject: [PATCH] Fix host contamination of include files
5
6python3-icu-2.5-r0 do_package_qa: QA Issue: python3-icu: The compile log indicates that host include and/or library paths were used.
7
8Also, don't use icu-config
9
10Upstream-Status: Inappropriate [OE specific]
11Signed-off-by: Armin Kuster <akuster808@gmail.com>
12Signed-off-by: Khem Raj <raj.khem@gmail.com>
Andrew Geissler9aee5002022-03-30 16:27:02 +000013
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050014---
15 setup.py | 3 +--
16 1 file changed, 1 insertion(+), 2 deletions(-)
17
18diff --git a/setup.py b/setup.py
Andrew Geissler9aee5002022-03-30 16:27:02 +000019index d308b80..56e9c74 100644
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050020--- a/setup.py
21+++ b/setup.py
22@@ -81,7 +81,7 @@ Building PyICU %s for ICU %s (max ICU major version supported: %s)
23
24 CONFIGURE_WITH_ICU_CONFIG = {
25 'darwin': True,
26- 'linux': True,
27+ 'linux': False,
28 'freebsd': False, # not tested
29 'win32': False, # no icu-config
30 'sunos5': False, # not tested
Andrew Geissler9aee5002022-03-30 16:27:02 +000031@@ -273,7 +273,6 @@ setup(name="PyICU",
32 ext_modules=[Extension('icu._icu_',
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050033 [filename for filename in sorted(os.listdir(os.curdir))
34 if filename.endswith('.cpp')],
35- include_dirs=_includes,
36 extra_compile_args=_cflags,
37 extra_link_args=_lflags,
38 libraries=_libraries)],