From 6cc2d2bfac1eaa9c0349e84ba07082936ea83db8 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Thu, 7 Aug 2025 09:51:03 +0000 Subject: [PATCH] python3-pillow: New package This is required by reportlab. Signed-off-by: Michael Tremer --- config/rootfiles/common/python3-pillow | 119 ++++++++++++++++++ lfs/python3-pillow | 80 ++++++++++++ make.sh | 1 + .../python3-pillow-11.3.0-fix-license.patch | 13 ++ 4 files changed, 213 insertions(+) create mode 100644 config/rootfiles/common/python3-pillow create mode 100644 lfs/python3-pillow create mode 100644 src/patches/python3-pillow-11.3.0-fix-license.patch diff --git a/config/rootfiles/common/python3-pillow b/config/rootfiles/common/python3-pillow new file mode 100644 index 000000000..67314e6b9 --- /dev/null +++ b/config/rootfiles/common/python3-pillow @@ -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 index 000000000..5418f519e --- /dev/null +++ b/lfs/python3-pillow @@ -0,0 +1,80 @@ +############################################################################### +# # +# IPFire.org - A linux based firewall # +# Copyright (C) 2007-2018 IPFire Team # +# # +# 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 . # +# # +############################################################################### + +############################################################################### +# 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 b53a5a38a..ed73af9e5 100755 --- 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 index 000000000..8349bae0a --- /dev/null +++ b/src/patches/python3-pillow-11.3.0-fix-license.patch @@ -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" }, + ] -- 2.47.3