Skip to contentSkip to conversation

package/python-pillow: set new build options

PATCH Applied James Hilliard 2 participants 2 messages Oct 31, 2024 – Nov 12, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/python-pillow: set new build options

Explicitly set new imagequant raqm and zlib build options.

---
 package/python-pillow/python-pillow.mk | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)
package/python-pillow/python-pillow.mk +11 -1
index e87c817c68..4f4d2ec933 100644
@@ -14,7 +14,10 @@ PYTHON_PILLOW_CPE_ID_PRODUCT = pillow
 PYTHON_PILLOW_SETUP_TYPE = setuptools
 
 PYTHON_PILLOW_DEPENDENCIES = host-pkgconf
-PYTHON_PILLOW_BUILD_OPTS = -Cplatform-guessing=disable
+PYTHON_PILLOW_BUILD_OPTS = \
+	-Cplatform-guessing=disable \
+	-Cimagequant=disable \
+	-Craqm=disable
 
 ifeq ($(BR2_PACKAGE_FREETYPE),y)
 PYTHON_PILLOW_DEPENDENCIES += freetype
@@ -70,4 +73,11 @@ else
 PYTHON_PILLOW_BUILD_OPTS += -Cwebp=disable -Cwebpmux=disable
 endif
 
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+PYTHON_PILLOW_DEPENDENCIES += zlib
+PYTHON_PILLOW_BUILD_OPTS += -Czlib=enable
+else
+PYTHON_PILLOW_BUILD_OPTS += -Czlib=disable
+endif
+
 $(eval $(python-package))
Signature · 6 lines
2.34.1

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw
Quoted 2 lines · James Hilliard

Explicitly set new imagequant raqm and zlib build options.

I added a Fixes tag for this one as well.

Applied to master, thanks.

Regards,
Arnout

Quoted 23 lines
---
  package/python-pillow/python-pillow.mk | 12 +++++++++++-
  1 file changed, 11 insertions(+), 1 deletion(-)
package/python-pillow/python-pillow.mk +4 -1
index e87c817c68..4f4d2ec933 100644
@@ -14,7 +14,10 @@ PYTHON_PILLOW_CPE_ID_PRODUCT = pillow
  PYTHON_PILLOW_SETUP_TYPE = setuptools
 
  PYTHON_PILLOW_DEPENDENCIES = host-pkgconf
-PYTHON_PILLOW_BUILD_OPTS = -Cplatform-guessing=disable
+PYTHON_PILLOW_BUILD_OPTS = \
+	-Cplatform-guessing=disable \
+	-Cimagequant=disable \
+	-Craqm=disable
 
  ifeq ($(BR2_PACKAGE_FREETYPE),y)
  PYTHON_PILLOW_DEPENDENCIES += freetype
@@ -70,4 +73,11 @@ else
  PYTHON_PILLOW_BUILD_OPTS += -Cwebp=disable -Cwebpmux=disable

package/python-pillow/python-pillow.mk else · line 83

Quoted 10 lines
package/python-pillow/python-pillow.mk +7 -0
  endif
 
+ifeq ($(BR2_PACKAGE_ZLIB),y)
+PYTHON_PILLOW_DEPENDENCIES += zlib
+PYTHON_PILLOW_BUILD_OPTS += -Czlib=enable
+else
+PYTHON_PILLOW_BUILD_OPTS += -Czlib=disable
+endif
+
  $(eval $(python-package))

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot