]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
python3-pillow: New package
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Aug 2025 09:51:03 +0000 (09:51 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 3 Sep 2025 17:42:01 +0000 (18:42 +0100)
This is required by reportlab.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
config/rootfiles/common/python3-pillow [new file with mode: 0644]
lfs/python3-pillow [new file with mode: 0644]
make.sh
src/patches/python3-pillow-11.3.0-fix-license.patch [new file with mode: 0644]

diff --git a/config/rootfiles/common/python3-pillow b/config/rootfiles/common/python3-pillow
new file mode 100644 (file)
index 0000000..67314e6
--- /dev/null
@@ -0,0 +1,119 @@
+usr/lib/python3.10/site-packages/PIL
+#usr/lib/python3.10/site-packages/PIL/AvifImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/BdfFontFile.py
+#usr/lib/python3.10/site-packages/PIL/BlpImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/BmpImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/BufrStubImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/ContainerIO.py
+#usr/lib/python3.10/site-packages/PIL/CurImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/DcxImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/DdsImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/EpsImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/ExifTags.py
+#usr/lib/python3.10/site-packages/PIL/FitsImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/FliImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/FontFile.py
+#usr/lib/python3.10/site-packages/PIL/FpxImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/FtexImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/GbrImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/GdImageFile.py
+#usr/lib/python3.10/site-packages/PIL/GifImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/GimpGradientFile.py
+#usr/lib/python3.10/site-packages/PIL/GimpPaletteFile.py
+#usr/lib/python3.10/site-packages/PIL/GribStubImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/Hdf5StubImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/IcnsImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/IcoImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/ImImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/Image.py
+#usr/lib/python3.10/site-packages/PIL/ImageChops.py
+#usr/lib/python3.10/site-packages/PIL/ImageCms.py
+#usr/lib/python3.10/site-packages/PIL/ImageColor.py
+#usr/lib/python3.10/site-packages/PIL/ImageDraw.py
+#usr/lib/python3.10/site-packages/PIL/ImageDraw2.py
+#usr/lib/python3.10/site-packages/PIL/ImageEnhance.py
+#usr/lib/python3.10/site-packages/PIL/ImageFile.py
+#usr/lib/python3.10/site-packages/PIL/ImageFilter.py
+#usr/lib/python3.10/site-packages/PIL/ImageFont.py
+#usr/lib/python3.10/site-packages/PIL/ImageGrab.py
+#usr/lib/python3.10/site-packages/PIL/ImageMath.py
+#usr/lib/python3.10/site-packages/PIL/ImageMode.py
+#usr/lib/python3.10/site-packages/PIL/ImageMorph.py
+#usr/lib/python3.10/site-packages/PIL/ImageOps.py
+#usr/lib/python3.10/site-packages/PIL/ImagePalette.py
+#usr/lib/python3.10/site-packages/PIL/ImagePath.py
+#usr/lib/python3.10/site-packages/PIL/ImageQt.py
+#usr/lib/python3.10/site-packages/PIL/ImageSequence.py
+#usr/lib/python3.10/site-packages/PIL/ImageShow.py
+#usr/lib/python3.10/site-packages/PIL/ImageStat.py
+#usr/lib/python3.10/site-packages/PIL/ImageTk.py
+#usr/lib/python3.10/site-packages/PIL/ImageTransform.py
+#usr/lib/python3.10/site-packages/PIL/ImageWin.py
+#usr/lib/python3.10/site-packages/PIL/ImtImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/IptcImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/Jpeg2KImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/JpegImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/JpegPresets.py
+#usr/lib/python3.10/site-packages/PIL/McIdasImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/MicImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/MpegImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/MpoImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/MspImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/PSDraw.py
+#usr/lib/python3.10/site-packages/PIL/PaletteFile.py
+#usr/lib/python3.10/site-packages/PIL/PalmImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/PcdImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/PcfFontFile.py
+#usr/lib/python3.10/site-packages/PIL/PcxImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/PdfImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/PdfParser.py
+#usr/lib/python3.10/site-packages/PIL/PixarImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/PngImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/PpmImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/PsdImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/QoiImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/SgiImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/SpiderImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/SunImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/TarIO.py
+#usr/lib/python3.10/site-packages/PIL/TgaImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/TiffImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/TiffTags.py
+#usr/lib/python3.10/site-packages/PIL/WalImageFile.py
+#usr/lib/python3.10/site-packages/PIL/WebPImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/WmfImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/XVThumbImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/XbmImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/XpmImagePlugin.py
+#usr/lib/python3.10/site-packages/PIL/__init__.py
+#usr/lib/python3.10/site-packages/PIL/__main__.py
+#usr/lib/python3.10/site-packages/PIL/_avif.pyi
+#usr/lib/python3.10/site-packages/PIL/_binary.py
+#usr/lib/python3.10/site-packages/PIL/_deprecate.py
+#usr/lib/python3.10/site-packages/PIL/_imaging.cpython-310-xxxMACHINExxx-linux-gnu.so
+#usr/lib/python3.10/site-packages/PIL/_imaging.pyi
+#usr/lib/python3.10/site-packages/PIL/_imagingcms.pyi
+#usr/lib/python3.10/site-packages/PIL/_imagingft.cpython-310-xxxMACHINExxx-linux-gnu.so
+#usr/lib/python3.10/site-packages/PIL/_imagingft.pyi
+#usr/lib/python3.10/site-packages/PIL/_imagingmath.cpython-310-xxxMACHINExxx-linux-gnu.so
+#usr/lib/python3.10/site-packages/PIL/_imagingmath.pyi
+#usr/lib/python3.10/site-packages/PIL/_imagingmorph.cpython-310-xxxMACHINExxx-linux-gnu.so
+#usr/lib/python3.10/site-packages/PIL/_imagingmorph.pyi
+#usr/lib/python3.10/site-packages/PIL/_imagingtk.cpython-310-xxxMACHINExxx-linux-gnu.so
+#usr/lib/python3.10/site-packages/PIL/_imagingtk.pyi
+#usr/lib/python3.10/site-packages/PIL/_tkinter_finder.py
+#usr/lib/python3.10/site-packages/PIL/_typing.py
+#usr/lib/python3.10/site-packages/PIL/_util.py
+#usr/lib/python3.10/site-packages/PIL/_version.py
+#usr/lib/python3.10/site-packages/PIL/_webp.pyi
+#usr/lib/python3.10/site-packages/PIL/features.py
+#usr/lib/python3.10/site-packages/PIL/py.typed
+#usr/lib/python3.10/site-packages/PIL/report.py
+#usr/lib/python3.10/site-packages/pillow-11.3.0.dist-info
+#usr/lib/python3.10/site-packages/pillow-11.3.0.dist-info/METADATA
+#usr/lib/python3.10/site-packages/pillow-11.3.0.dist-info/RECORD
+#usr/lib/python3.10/site-packages/pillow-11.3.0.dist-info/WHEEL
+#usr/lib/python3.10/site-packages/pillow-11.3.0.dist-info/licenses
+#usr/lib/python3.10/site-packages/pillow-11.3.0.dist-info/licenses/LICENSE
+#usr/lib/python3.10/site-packages/pillow-11.3.0.dist-info/top_level.txt
+#usr/lib/python3.10/site-packages/pillow-11.3.0.dist-info/zip-safe
diff --git a/lfs/python3-pillow b/lfs/python3-pillow
new file mode 100644 (file)
index 0000000..5418f51
--- /dev/null
@@ -0,0 +1,80 @@
+###############################################################################
+#                                                                             #
+# IPFire.org - A linux based firewall                                         #
+# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
+#                                                                             #
+# This program is free software: you can redistribute it and/or modify        #
+# it under the terms of the GNU General Public License as published by        #
+# the Free Software Foundation, either version 3 of the License, or           #
+# (at your option) any later version.                                         #
+#                                                                             #
+# This program is distributed in the hope that it will be useful,             #
+# but WITHOUT ANY WARRANTY; without even the implied warranty of              #
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the               #
+# GNU General Public License for more details.                                #
+#                                                                             #
+# You should have received a copy of the GNU General Public License           #
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.       #
+#                                                                             #
+###############################################################################
+
+###############################################################################
+# Definitions
+###############################################################################
+
+include Config
+
+VER        = 11.3.0
+
+THISAPP    = pillow-$(VER)
+DL_FILE    = $(THISAPP).tar.gz
+DL_FROM    = $(URL_IPFIRE)
+DIR_APP    = $(DIR_SRC)/$(THISAPP)
+TARGET     = $(DIR_INFO)/$(THISAPP)
+
+###############################################################################
+# Top-level Rules
+###############################################################################
+
+objects = $(DL_FILE)
+
+$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
+
+$(DL_FILE)_BLAKE2 = bde2d91943ca39cef342733f57d5c4b4e1fcb4e20b145fea1606018f255d70311e7f09d02321aede10ea1b0ae73cc86e3932d213718eb081f6961cf36174282f
+
+install : $(TARGET)
+
+check : $(patsubst %,$(DIR_CHK)/%,$(objects))
+
+download :$(patsubst %,$(DIR_DL)/%,$(objects))
+
+b2 : $(subst %,%_BLAKE2,$(objects))
+
+dist: 
+       @$(PAK)
+
+###############################################################################
+# Downloading, checking, b2sum
+###############################################################################
+
+$(patsubst %,$(DIR_CHK)/%,$(objects)) :
+       @$(CHECK)
+
+$(patsubst %,$(DIR_DL)/%,$(objects)) :
+       @$(LOAD)
+
+$(subst %,%_BLAKE2,$(objects)) :
+       @$(B2SUM)
+
+###############################################################################
+# Installation Details
+###############################################################################
+
+$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
+       @$(PREBUILD)
+       @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
+       cd $(DIR_APP) && patch -Np1 < $(DIR_SRC)/src/patches/python3-pillow-11.3.0-fix-license.patch
+       cd $(DIR_APP) && python3 -m build --wheel --no-isolation
+       cd $(DIR_APP) && python3 -m install --destdir=/ dist/*.whl
+       @rm -rf $(DIR_APP)
+       @$(POSTBUILD)
diff --git a/make.sh b/make.sh
index b53a5a38a0c1657fcad6655bcaebc1910e6a0b13..ed73af9e5ff7336cdc126baafb1e4f04e96b1ca5 100755 (executable)
--- a/make.sh
+++ b/make.sh
@@ -1985,6 +1985,7 @@ build_system() {
        lfsmake2 python3-exceptiongroup
        lfsmake2 python3-trio
        lfsmake2 python3-pyfuse3
+       lfsmake2 python3-pillow
        lfsmake2 python3-reportlab
        lfsmake2 aws-cli
        lfsmake2 oci-python-sdk
diff --git a/src/patches/python3-pillow-11.3.0-fix-license.patch b/src/patches/python3-pillow-11.3.0-fix-license.patch
new file mode 100644 (file)
index 0000000..8349bae
--- /dev/null
@@ -0,0 +1,13 @@
+--- pillow-11.3.0/pyproject.toml.bak   2025-08-07 15:56:16.353590772 +0000
++++ pillow-11.3.0/pyproject.toml       2025-08-07 15:56:31.049397673 +0000
+@@ -14,8 +14,8 @@
+ keywords = [
+   "Imaging",
+ ]
+-license = "MIT-CMU"
+-license-files = [ "LICENSE" ]
++#license = "MIT-CMU"
++#license-files = [ "LICENSE" ]
+ authors = [
+   { name = "Jeffrey A. Clark", email = "aclark@aclark.net" },
+ ]