From f194c49e99c10444eada881ad8839374eba0a5a8 Mon Sep 17 00:00:00 2001 From: Wang Mingyu Date: Mon, 15 Jul 2024 17:02:16 +0800 Subject: 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 Signed-off-by: Khem Raj --- .../0001-support-cross-compiling.patch | 11 ++-- .../python/python3-pillow_10.3.0.bb | 72 ---------------------- .../python/python3-pillow_10.4.0.bb | 72 ++++++++++++++++++++++ 3 files changed, 76 insertions(+), 79 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python3-pillow_10.3.0.bb create mode 100644 meta-python/recipes-devtools/python/python3-pillow_10.4.0.bb (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python3-pillow/0001-support-cross-compiling.patch b/meta-python/recipes-devtools/python/python3-pillow/0001-support-cross-compiling.patch index e4ba35b886..220c4edc3f 100644 --- a/meta-python/recipes-devtools/python/python3-pillow/0001-support-cross-compiling.patch +++ b/meta-python/recipes-devtools/python/python3-pillow/0001-support-cross-compiling.patch @@ -1,4 +1,4 @@ -From cd09b6f68aa49c72e9a9bb0765e8c666238a7b7e Mon Sep 17 00:00:00 2001 +From 5b28d19d6513cc3eb3105d3f917df352283f3c5e Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Mon, 11 Jan 2021 13:25:12 +0000 Subject: [PATCH] support cross compiling @@ -12,10 +12,10 @@ Signed-off-by: Leon Anavi 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py -index cbc2641c..302bc6e7 100755 +index 0abfaaddc..557420a6b 100644 --- a/setup.py +++ b/setup.py -@@ -123,7 +123,7 @@ _LIB_IMAGING = ( +@@ -129,7 +129,7 @@ _LIB_IMAGING = ( "codec_fd", ) @@ -24,7 +24,7 @@ index cbc2641c..302bc6e7 100755 class DependencyException(Exception): -@@ -408,12 +408,12 @@ class pil_build_ext(build_ext): +@@ -508,12 +508,12 @@ class pil_build_ext(build_ext): _add_directory(library_dirs, match.group(1)) # include, rpath, if set as environment variables: @@ -39,6 +39,3 @@ index cbc2641c..302bc6e7 100755 if k in os.environ: for d in os.environ[k].split(os.path.pathsep): _add_directory(library_dirs, d) --- -2.17.1 - diff --git a/meta-python/recipes-devtools/python/python3-pillow_10.3.0.bb b/meta-python/recipes-devtools/python/python3-pillow_10.3.0.bb deleted file mode 100644 index debf488154..0000000000 --- a/meta-python/recipes-devtools/python/python3-pillow_10.3.0.bb +++ /dev/null @@ -1,72 +0,0 @@ -SUMMARY = "Python Imaging Library (Fork). Pillow is the friendly PIL fork by Alex \ -Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and \ -Contributors." -HOMEPAGE = "https://pillow.readthedocs.io" -LICENSE = "MIT" -LIC_FILES_CHKSUM = "file://LICENSE;md5=c349a4b4b9ec2377a8fd6a7df87dbffe" - -SRC_URI = "git://github.com/python-pillow/Pillow.git;branch=main;protocol=https \ - file://0001-support-cross-compiling.patch \ - file://run-ptest \ - " -SRCREV = "5c89d88eee199ba53f64581ea39b6a1bc52feb1a" - -inherit python_setuptools_build_meta ptest - -PEP517_BUILD_OPTS += " \ - -C platform-guessing=disable \ - -C zlib=enable \ - -C jpeg=enable \ - -C tiff=enable \ - -C freetype=enable \ - -C lcms=enable \ - -C jpeg2000=enable \ - -C webp=disable \ - -C webpmux=disable \ - -C imagequant=disable \ -" - -DEPENDS += " \ - zlib \ - jpeg \ - tiff \ - freetype \ - lcms \ - openjpeg \ -" - -RDEPENDS:${PN} += " \ - python3-misc \ - python3-logging \ - python3-numbers \ - ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxcb', '', d)} \ -" - -RDEPENDS:${PN}-ptest += " \ - bash \ - ghostscript \ - jpeg-tools \ - libwebp \ - python3-core \ - python3-image \ - python3-mmap \ - python3-pytest \ - python3-pytest-timeout \ - python3-resource \ - python3-unittest-automake-output \ - python3-unixadmin\ - ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'tk', '', d)} \ -" - -CVE_PRODUCT = "pillow" - -S = "${WORKDIR}/git" - -RPROVIDES:${PN} += "python3-imaging" - -do_install_ptest() { - install -d ${D}${PTEST_PATH}/Tests - cp -rf ${S}/Tests ${D}${PTEST_PATH}/ -} - -BBCLASSEXTEND = "native" diff --git a/meta-python/recipes-devtools/python/python3-pillow_10.4.0.bb b/meta-python/recipes-devtools/python/python3-pillow_10.4.0.bb new file mode 100644 index 0000000000..71159ba500 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-pillow_10.4.0.bb @@ -0,0 +1,72 @@ +SUMMARY = "Python Imaging Library (Fork). Pillow is the friendly PIL fork by Alex \ +Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and \ +Contributors." +HOMEPAGE = "https://pillow.readthedocs.io" +LICENSE = "MIT" +LIC_FILES_CHKSUM = "file://LICENSE;md5=c349a4b4b9ec2377a8fd6a7df87dbffe" + +SRC_URI = "git://github.com/python-pillow/Pillow.git;branch=main;protocol=https \ + file://0001-support-cross-compiling.patch \ + file://run-ptest \ + " +SRCREV = "9b4fae77178e827ab17118fbc89c739ffd6a0fab" + +inherit python_setuptools_build_meta ptest + +PEP517_BUILD_OPTS += " \ + -C platform-guessing=disable \ + -C zlib=enable \ + -C jpeg=enable \ + -C tiff=enable \ + -C freetype=enable \ + -C lcms=enable \ + -C jpeg2000=enable \ + -C webp=disable \ + -C webpmux=disable \ + -C imagequant=disable \ +" + +DEPENDS += " \ + zlib \ + jpeg \ + tiff \ + freetype \ + lcms \ + openjpeg \ +" + +RDEPENDS:${PN} += " \ + python3-misc \ + python3-logging \ + python3-numbers \ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'libxcb', '', d)} \ +" + +RDEPENDS:${PN}-ptest += " \ + bash \ + ghostscript \ + jpeg-tools \ + libwebp \ + python3-core \ + python3-image \ + python3-mmap \ + python3-pytest \ + python3-pytest-timeout \ + python3-resource \ + python3-unittest-automake-output \ + python3-unixadmin\ + ${@bb.utils.contains('DISTRO_FEATURES', 'x11', 'tk', '', d)} \ +" + +CVE_PRODUCT = "pillow" + +S = "${WORKDIR}/git" + +RPROVIDES:${PN} += "python3-imaging" + +do_install_ptest() { + install -d ${D}${PTEST_PATH}/Tests + cp -rf ${S}/Tests ${D}${PTEST_PATH}/ +} + +BBCLASSEXTEND = "native" -- cgit v1.2.3-54-g00ecf