meta-openembedded/meta-python/recipes-devtools/python/python3-icu/0001-Fix-host-contamination-of-include-files.patch
Wang Mingyu aafff40e02 python3-icu: upgrade 2.8.1 -> 2.10.2
0001-Fix-host-contamination-of-include-files.patch
updated for 2.10.2

Changelog:
==========
  - fixed bug in logic computing max_char for PyUnicode_New()
  - fixed build issues with ICU < 72
  - fixed bug with building on MacOS when pkg-config is present
  - added link to note about building everything from sources
  - added wrapper for u_cleanup/u_init sequence as ResourceBundle.resetICU()
  - added wrapper for TimeZone.getRegion()
  - added support for ICU 72.1
  - added wrapper for UnicodeSetIterator::skipToStrings()
  - added wrapper for DisplayOptions, DisplayOptions::Builder and related enums
  - added wrapper for FormattedNumber::getNounClass()
  - added wrapper for NumberFormatter.displayOptions()
  - added support for ICU 71.1
  - added wrappers for UMeasurePrefix, MeasureUnit.withPrefix()|getPrefix()
  - added UNumberRoundingPriority, FractionPrecision.withSignificantDigits()
  - added UNumberTrailingZeroDisplay, Precision.trailingZeroDisplay()

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2023-02-08 08:51:44 -08:00

42 lines
1.4 KiB
Diff

From a82fea9663f0c70cf57cd06650f400e878afc5e4 Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Fri, 16 Apr 2021 10:48:36 -0700
Subject: [PATCH] Fix host contamination of include files
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.
Also, don't use icu-config
Upstream-Status: Inappropriate [OE specific]
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
---
setup.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/setup.py b/setup.py
index 176c9ab..0a10268 100644
--- a/setup.py
+++ b/setup.py
@@ -68,7 +68,7 @@ elif platform.startswith('freebsd'):
CONFIGURE_WITH_ICU_CONFIG = {
'darwin': False,
- 'linux': True,
+ 'linux': False,
'freebsd': False, # not tested
'win32': False, # no icu-config
'sunos5': False, # not tested
@@ -277,7 +277,6 @@ setup(name="PyICU",
ext_modules=[Extension('icu._icu_',
[filename for filename in sorted(os.listdir(os.curdir))
if filename.endswith('.cpp')],
- include_dirs=_includes,
extra_compile_args=_cflags,
extra_link_args=_lflags,
libraries=_libraries)],
--
2.34.1