blob: 7bb5ee58cc048609143b321b031393f5b8445ea3 [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 Geissler6aa7eec2023-03-03 12:41:14 -060013Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
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 Geissler6aa7eec2023-03-03 12:41:14 -060019index 176c9ab..0a10268 100644
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050020--- a/setup.py
21+++ b/setup.py
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060022@@ -68,7 +68,7 @@ elif platform.startswith('freebsd'):
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050023
24 CONFIGURE_WITH_ICU_CONFIG = {
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060025 'darwin': False,
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050026- 'linux': True,
27+ 'linux': False,
28 'freebsd': False, # not tested
29 'win32': False, # no icu-config
30 'sunos5': False, # not tested
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060031@@ -277,7 +277,6 @@ setup(name="PyICU",
Andrew Geissler9aee5002022-03-30 16:27:02 +000032 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)],
Andrew Geissler6aa7eec2023-03-03 12:41:14 -060039--
402.34.1
41