0
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2025-03-01 01:01:24 +00:00
heitbaum 379680c3e7 Pillow: update to 8.1.2
Update 8.1.0 (2021-01-02) to 8.1.2 (2021-03-06)
Release notes at: https://github.com/python-pillow/Pillow/blob/master/CHANGES.rst

- Use more specific regex chars to prevent ReDoS. CVE-2021-25292 [hugovk]
- Fix OOB Read in TiffDecode.c, and check the tile validity before reading. CVE-2021-25291 [wiredfool]
- Fix negative size read in TiffDecode.c. CVE-2021-25290 [wiredfool]
- Fix OOB read in SgiRleDecode.c. CVE-2021-25293 [wiredfool]
- Incorrect error code checking in TiffDecode.c. CVE-2021-25289 [wiredfool]
- PyModule_AddObject fix for Python 3.10 #5194 [radarhere]

- Fix Memory DOS in BLP (CVE-2021-27921), ICNS (CVE-2021-27922) and ICO (CVE-2021-27923) Image Plugins [wiredfool]
2021-03-06 06:33:28 +00:00

33 lines
983 B
Makefile

# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (C) 2009-2016 Stephan Raue (stephan@openelec.tv)
# Copyright (C) 2019-present Team LibreELEC (https://libreelec.tv)
PKG_NAME="Pillow"
PKG_VERSION="8.1.2"
PKG_SHA256="4b99c0a07e8bc4048b4f37ee515d02cc2f895453afe534e4b00bfe2f2a2dbe39"
PKG_LICENSE="BSD"
PKG_SITE="https://python-pillow.org/"
PKG_URL="https://github.com/python-pillow/${PKG_NAME}/archive/${PKG_VERSION}.tar.gz"
PKG_DEPENDS_TARGET="toolchain Python3 distutilscross:host zlib freetype libjpeg-turbo tiff"
PKG_LONGDESC="The Python Imaging Library adds image processing capabilities to your Python interpreter."
PKG_TOOLCHAIN="manual"
pre_make_target() {
export PYTHONXCPREFIX="${SYSROOT_PREFIX}/usr"
export LDSHARED="${CC} -shared"
}
make_target() {
python3 setup.py build --cross-compile
}
makeinstall_target() {
python3 setup.py install --root=${INSTALL} --prefix=/usr
}
post_makeinstall_target() {
python_remove_source
rm -rf ${INSTALL}/usr/bin
}