package/python-pillow: bump to version 8.0.1
authorAngelo Compagnucci <angelo.compagnucci@gmail.com>
Sun, 8 Nov 2020 15:41:48 +0000 (16:41 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Tue, 10 Nov 2020 09:36:51 +0000 (10:36 +0100)
Bumping the package requires two fixes:
* pillow looks for header files in paths returned by pkg-config.
  On buildroot, pkg-config returns nothing if PKG_CONFIG_ALLOW_SYSTEM_CFLAGS
  is disabled.
* png is the default pillow image format and png format is working only
  if python zlib module is available.

Signed-off-by: Angelo Compagnucci <angelo@amarulasolutions.com>
Tested-by: Adam Duskett <aduskett@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/python-pillow/Config.in
package/python-pillow/python-pillow.hash
package/python-pillow/python-pillow.mk

index f98a4a9e5bf8a5126b1cf7dd07b4cc71b267c2b4..ae6d8c8346f915509152e519c2ff4cec54fd0413 100644 (file)
@@ -2,6 +2,7 @@ config BR2_PACKAGE_PYTHON_PILLOW
        bool "python-pillow"
        depends on BR2_PACKAGE_PYTHON3
        select BR2_PACKAGE_PYTHON3_PYEXPAT # runtime
+       select BR2_PACKAGE_PYTHON3_ZLIB
        help
          Pillow is the "friendly" PIL fork by Alex Clark and
          Contributors. PIL is the Python Imaging Library by Fredrik
index f80b79fe5f78c47c517ee709692f3e8bdf62147e..0849577f66006d2915e14da3ca094e3dfb4b2348 100644 (file)
@@ -1,5 +1,4 @@
 # md5, sha256 from https://pypi.org/project/Pillow/
-md5    f1f7592c51260e5080d3cd71781ea675  Pillow-7.1.2.tar.gz
-sha256 97f9e7953a77d5a70f49b9a48da7776dc51e9b738151b22dacf101641594a626  Pillow-7.2.0.tar.gz
+sha256 11c5c6e9b02c9dac08af04f093eb5a2f84857df70a7d4a6a6ad461aca803fb9e  Pillow-8.0.1.tar.gz
 # Locally computed sha256 checksums
 sha256 37de42abe33a247e8f03d2313657a0f174a239a198f526add6544ff3e2643b81  LICENSE
index 931dce53d2376e8e9aa09b9810ff202c548367fa..60a0bb3e1b9480605a78eb8114eda4a9a812cc22 100644 (file)
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-PYTHON_PILLOW_VERSION = 7.2.0
-PYTHON_PILLOW_SITE = https://files.pythonhosted.org/packages/3e/02/b09732ca4b14405ff159c470a612979acfc6e8645dc32f83ea0129709f7a
+PYTHON_PILLOW_VERSION = 8.0.1
+PYTHON_PILLOW_SITE = https://files.pythonhosted.org/packages/2b/06/93bf1626ef36815010e971a5ce90f49919d84ab5d2fa310329f843a74bc1
 PYTHON_PILLOW_SOURCE = Pillow-$(PYTHON_PILLOW_VERSION).tar.gz
 PYTHON_PILLOW_LICENSE = PIL Software License
 PYTHON_PILLOW_LICENSE_FILES = LICENSE
@@ -47,15 +47,9 @@ else
 PYTHON_PILLOW_BUILD_OPTS += --disable-webp
 endif
 
-ifeq ($(BR2_PACKAGE_ZLIB),y)
-PYTHON_PILLOW_DEPENDENCIES += zlib
-PYTHON_PILLOW_BUILD_OPTS += --enable-zlib
-else
-PYTHON_PILLOW_BUILD_OPTS += --disable-zlib
-endif
-
 define PYTHON_PILLOW_BUILD_CMDS
        cd $(PYTHON_PILLOW_BUILDDIR); \
+               PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
                $(PYTHON_PILLOW_BASE_ENV) $(PYTHON_PILLOW_ENV) \
                $(PYTHON_PILLOW_PYTHON_INTERPRETER) setup.py build_ext \
                $(PYTHON_PILLOW_BASE_BUILD_OPTS) $(PYTHON_PILLOW_BUILD_OPTS)
@@ -63,6 +57,7 @@ endef
 
 define PYTHON_PILLOW_INSTALL_TARGET_CMDS
        cd $(PYTHON_PILLOW_BUILDDIR); \
+               PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1 \
                $(PYTHON_PILLOW_BASE_ENV) $(PYTHON_PILLOW_ENV) \
                $(PYTHON_PILLOW_PYTHON_INTERPRETER) setup.py build_ext \
                $(PYTHON_PILLOW_BUILD_OPTS) install \