meta-openembedded/meta-python/recipes-devtools/python/python3-pillow/0001-support-cross-compiling.patch
Wang Mingyu f194c49e99
python3-pillow: upgrade 10.3.0 -> 10.4.0
0001-support-cross-compiling.patch
refreshed for 10.4.0

Changelog:
===========
- Raise FileNotFoundError if show_file() path does not exist
- Improved reading 16-bit TGA images with colour
- Deprecate non-image ImageCms modes
- Fixed processing multiple JPEG EXIF markers
- Do not preserve EXIFIFD tag by default when saving TIFF images
- Added ImageFont.load_default_imagefont()
- Added Image.WARN_POSSIBLE_FORMATS
- Remove zero-byte end padding when parsing any XMP data
- Do not detect Ultra HDR images as MPO
- Raise SyntaxError specific to JP2
- Do not use first frame duration for other frames when saving APNG images
- Consider I;16 pixel size when using a 1 mode mask
- When saving multiple PNG frames, convert to mode rather than raw mode
- Added byte support to FreeTypeFont
- Allow float center for rotate operations
- Do not read layers immediately when opening PSD images
- Restore original thread state
- Read IM and TIFF images as RGB, rather than RGBX
- Only preserve TIFF IPTC_NAA_CHUNK tag if type is BYTE or UNDEFINED
- Clarify ImageDraw2 error message when size is missing
- Support unpacking more rawmodes to RGBA palettes
- Removed support for Qt 5
- Improve ImageFont.freetype support for XDG directories on Linux
- Improved consistency of XMP handling
- Use pkg-config to help find libwebp and raqm
- Accept 't' suffix for libtiff version #8126,
- Deprecate ImageDraw.getdraw hints parameter
- Added ImageDraw circle()
- Add mypy target to Makefile
- Added more modes to Image.MODES
- Deprecate BGR;15, BGR;16 and BGR;24 modes
- Fix ImagingAccess for I;16N on big-endian
- Support reading P mode TIFF images with padding
- Deprecate support for libtiff < 4
- Corrected ImageShow UnixViewer command
- Use functools.cached_property in ImageStat
- Add support for reading BITMAPV2INFOHEADER and BITMAPV3INFOHEADER
- Support reading CMYK JPEG2000 images

Signed-off-by: Wang Mingyu <wangmy@fujitsu.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-07-15 16:36:14 -07:00

42 lines
1.4 KiB
Diff

From 5b28d19d6513cc3eb3105d3f917df352283f3c5e Mon Sep 17 00:00:00 2001
From: Leon Anavi <leon.anavi@konsulko.com>
Date: Mon, 11 Jan 2021 13:25:12 +0000
Subject: [PATCH] support cross compiling
Upstream-Status: Inappropriate [oe specific]
Suggested-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
---
setup.py | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/setup.py b/setup.py
index 0abfaaddc..557420a6b 100644
--- a/setup.py
+++ b/setup.py
@@ -129,7 +129,7 @@ _LIB_IMAGING = (
"codec_fd",
)
-DEBUG = False
+DEBUG = True
class DependencyException(Exception):
@@ -508,12 +508,12 @@ class pil_build_ext(build_ext):
_add_directory(library_dirs, match.group(1))
# include, rpath, if set as environment variables:
- for k in ("C_INCLUDE_PATH", "CPATH", "INCLUDE"):
+ for k in ("C_INCLUDE_PATH", "CPATH", "INCLUDE", "STAGING_INCDIR"):
if k in os.environ:
for d in os.environ[k].split(os.path.pathsep):
_add_directory(include_dirs, d)
- for k in ("LD_RUN_PATH", "LIBRARY_PATH", "LIB"):
+ for k in ("LD_RUN_PATH", "LIBRARY_PATH", "LIB", "STAGING_LIBDIR"):
if k in os.environ:
for d in os.environ[k].split(os.path.pathsep):
_add_directory(library_dirs, d)