Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 1 | From a82fea9663f0c70cf57cd06650f400e878afc5e4 Mon Sep 17 00:00:00 2001 |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Fri, 16 Apr 2021 10:48:36 -0700 |
| 4 | Subject: [PATCH] Fix host contamination of include files |
| 5 | |
| 6 | python3-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 | |
| 8 | Also, don't use icu-config |
| 9 | |
| 10 | Upstream-Status: Inappropriate [OE specific] |
| 11 | Signed-off-by: Armin Kuster <akuster808@gmail.com> |
| 12 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 13 | |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 14 | --- |
| 15 | setup.py | 3 +-- |
| 16 | 1 file changed, 1 insertion(+), 2 deletions(-) |
| 17 | |
| 18 | diff --git a/setup.py b/setup.py |
Andrew Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 19 | index d308b80..56e9c74 100644 |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 20 | --- 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 Geissler | 9aee500 | 2022-03-30 16:27:02 +0000 | [diff] [blame] | 31 | @@ -273,7 +273,6 @@ setup(name="PyICU", |
| 32 | ext_modules=[Extension('icu._icu_', |
Andrew Geissler | f103a7f | 2021-05-07 16:09:40 -0500 | [diff] [blame] | 33 | [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)], |