Created attachment 204364 [details] py-mcomix-fix-runtime-with-pillow-6.0.patch Hi, during the QA measure to ensure a smooth update of graphics/py-pillow to 6.0 (bug #237426) I discovered that graphics/py-mcomix will break at runtime. This is due the removal of the previously deprecated constant "Image.VERSION" that is still being used by graphics/py-mcomix. [1] It has been already reported to upstream [2] and was fixed partially because another issue with PNG files that contain EXIF information is still open at the moment. [3] The attached patch contains both fixes. QA: ~~~ - poudriere (11.2-, 12.0-RELEASE, 13.0-CURRENT@r346346 amd64 + i386) -> - portlint -> OK - Quick runtime tests -> OK, but more thorough testing would be preferable -- [1] https://github.com/python-pillow/Pillow/blob/master/docs/deprecations.rst#version-constant [2] https://sourceforge.net/p/mcomix/bugs/116/ [3] https://sourceforge.net/p/mcomix/bugs/116/#72db
Comment on attachment 204364 [details] py-mcomix-fix-runtime-with-pillow-6.0.patch Looks good to me, and works as mentioned. You can go ahead, and commit. Thanks!
A commit references this bug: Author: kai Date: Sat May 18 11:15:01 UTC 2019 New revision: 501950 URL: https://svnweb.freebsd.org/changeset/ports/501950 Log: graphics/py-mcomix: Fix runtime with graphics/py-pillow 6.0 * Prevent runtime breakage when graphics/py-pillow is updated to 6.0 where the deprecated constant "Image.VERSION" is no longer available. [1] * Add a workaround for the behavior of the "_getexif" function that is still buggy with PNG files that contain EXIF meta data. [2] Also while I'm here: * Add "gnome" to USES as using USE_GNOME alone is deprecated. PR: 237887, 237426 (related) Approved by: ashish (maintainer) Obtained from: upstream [1], https://github.com/multiSnow/mcomix3/issues/76 [2] Changes: head/graphics/py-mcomix/Makefile head/graphics/py-mcomix/files/ head/graphics/py-mcomix/files/patch-mcomix_image__tools.py head/graphics/py-mcomix/files/patch-mcomix_run.py
Committed, thank you for your review and approval!