Summary: | devel/py-qt5-core: package phase fails under python 3.4 with plist error on PYI file | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | John W. O'Brien <john> | ||||
Component: | Individual Port(s) | Assignee: | Raphael Kubo da Costa <rakuco> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Only Me | CC: | john, kde, python | ||||
Priority: | --- | Flags: | rakuco:
maintainer-feedback+
|
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
John W. O'Brien
2018-02-08 21:12:17 UTC
Thanks for the patch. There are more PyQt ports that need this after ports r460809, but I was thinking of just patching configure.py and unconditionally install the type hints files instead of adding logic to almost every single PyQt5 port to handle the version checks. A commit references this bug: Author: rakuco Date: Wed Feb 14 21:30:19 UTC 2018 New revision: 461841 URL: https://svnweb.freebsd.org/changeset/ports/461841 Log: PyQt: Unconditionally install the .pyi files r460809 started installing .pyi with the %%PYTHON3%% substitution in the plists. Support for .pyi files was added in Python 3.5, and PyQt's configure.py only installs the files on Python >= 3.5. This patch removes the version checks from configure.py (the files are just unused in earlier Python versions), as it is easier than checking Python 3's version in each PyQt port's Makefile (or to add the logic to Mk/Uses/pyqt.mk). PR: 225773 Reviewed by: tcberner Differential Revision: https://reviews.freebsd.org/D14361 Changes: head/comms/py-qt5-serialport/Makefile head/comms/py-qt5-serialport/pkg-plist head/databases/py-qt5-sql/Makefile head/databases/py-qt5-sql/pkg-plist head/devel/py-qt5-core/Makefile head/devel/py-qt5-core/files/patch-configure.py head/devel/py-qt5-core/pkg-plist head/devel/py-qt5-dbus/Makefile head/devel/py-qt5-dbus/pkg-plist head/devel/py-qt5-designer/Makefile head/devel/py-qt5-designer/pkg-plist head/devel/py-qt5-help/Makefile head/devel/py-qt5-help/pkg-plist head/devel/py-qt5-qscintilla2/Makefile head/devel/py-qt5-test/Makefile head/devel/py-qt5-test/pkg-plist head/graphics/py-qt5-svg/Makefile head/graphics/py-qt5-svg/pkg-plist head/lang/py-qt5-qml/Makefile head/lang/py-qt5-qml/pkg-plist head/multimedia/py-qt5-multimedia/Makefile head/multimedia/py-qt5-multimedia/pkg-plist head/multimedia/py-qt5-multimediawidgets/Makefile head/multimedia/py-qt5-multimediawidgets/pkg-plist head/net/py-qt5-network/Makefile head/net/py-qt5-network/pkg-plist head/print/py-qt5-printsupport/Makefile head/print/py-qt5-printsupport/pkg-plist head/textproc/py-qt5-xml/Makefile head/textproc/py-qt5-xml/pkg-plist head/textproc/py-qt5-xmlpatterns/Makefile head/textproc/py-qt5-xmlpatterns/pkg-plist head/www/py-qt5-webkit/Makefile head/www/py-qt5-webkit/pkg-plist head/www/py-qt5-webkitwidgets/Makefile head/www/py-qt5-webkitwidgets/pkg-plist head/x11/py-qt5-opengl/Makefile head/x11/py-qt5-opengl/pkg-plist head/x11-toolkits/py-qt5-gui/Makefile head/x11-toolkits/py-qt5-gui/pkg-plist head/x11-toolkits/py-qt5-quick/Makefile head/x11-toolkits/py-qt5-quick/pkg-plist head/x11-toolkits/py-qt5-widgets/Makefile head/x11-toolkits/py-qt5-widgets/pkg-plist I ended up landing my version of the fix due to it being simpler. Could you submit another PR with the strip part? I think fixing that in Uses/pyqt.mk might be easier than repeating the code in all Makefiles. |