Bug 237887 - graphics/py-mcomix: Fix runtime with graphics/py-pillow 6.0
Summary: graphics/py-mcomix: Fix runtime with graphics/py-pillow 6.0
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kai Knoblich
Depends on:
Blocks: 237426
  Show dependency treegraph
Reported: 2019-05-13 19:37 UTC by Kai Knoblich
Modified: 2019-05-18 11:16 UTC (History)
2 users (show)

See Also:
koobs: maintainer-feedback+

py-mcomix-fix-runtime-with-pillow-6.0.patch (6.29 KB, patch)
2019-05-13 19:37 UTC, Kai Knoblich
ashish: maintainer-approval+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kai Knoblich freebsd_committer 2019-05-13 19:37:03 UTC
Created attachment 204364 [details]


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.

- 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 1 Ashish SHUKLA freebsd_committer 2019-05-16 15:56:31 UTC
Comment on attachment 204364 [details]

Looks good to me, and works as mentioned. You can go ahead, and commit.

Comment 2 commit-hook freebsd_committer 2019-05-18 11:15:58 UTC
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

  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]

Comment 3 Kai Knoblich freebsd_committer 2019-05-18 11:16:51 UTC
Committed, thank you for your review and approval!