Hi, You named the attachments '*.tgz' which suggests that the attachments are gzipped, but they are just plain tar archives, in which case the .tar suffix makes more sense. Confused me for a second, but no big deal.
On Mon, Nov 27, 2023 at 04:39:20PM +0100, Justin Berthault wrote: > Hi, > > wanted to share my work in progress to bring py-qt6 for OpenBSD. > > It is attached with two new ports: > > - x11/py-qt6 > - x11/py-sip-qt6 Your py-sip-qt6 port looks like a straightforward copy of py-sip-qt5, adapted to package the Qt6 variant of the software. Looks good to me from a ports perspective. Some more comments on py-qt6 below. > Built on arm64, testing in progress. How is the testing going? And are you willing to send a new version of the x11/py-qt6 port that packages the most recent version of the software, which is version 6.7.0? Otherwise I can have a look at that. > For now I think I managed to get most of it the right way. > > One thing that bothers me is the result of `make port-lib-depends-check` > for py-qt6: > > Extra: Qt6QtPositioning.2 > > What does it mean ? > > Testing and feedbacks welcome. Some comments on the x11/py-qt6 port: * remove REVISION since it's a new port. * update the following comment in Makefile: -# https://www.riverbankcomputing.com/static/Docs/PyQt6/installation.html#building-pyqt5 +# https://www.riverbankcomputing.com/static/Docs/PyQt6/installation.html#building-pyqt6 * update pkg/DESCR to say Qt6 instead of Qt5. * I think the @conflict and @pkgpath annotations can be removed (instead of updating them to py-qt6), but I'm not sure. Can someone else chime in? It's about these lines in pkg/PLIST that were copied from the x11/py-qt5 port: @conflict py-qt5-* @pkgpath x11/py-qt5,-main @pkgpath x11/py-qt5 I tried to build py-qt6 but that failed with the message below. I briefly tried to update your py-qt6 port to 6.7.0 but that requires a py3-sip that's newer (version >= 6.8) so that's a bit more work. The final build messages: c++ -c -pipe -fno-exceptions -Wall -Wextra -fno-direct-access-external-data -pthread -fPIC -DPy_LIMITED_API=0x03070000 -DSIP_PROTECTED_IS_PUBLIC -Dprotected=public -DQT_NO_EXCEPTIONS -DQT_NO_DEBUG -DQT_PLUGIN -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_SQL_LIB -DQT_CORE_LIB -I/usr/include/c++/v1 -I. -I. -I.. -I/usr/local/include/python3.10 -I/usr/local/include/X11/qt6 -I/usr/local/include/X11/qt6/QtWidgets -I/usr/local/include/X11/qt6/QtGui -I/usr/local/include/X11/qt6/QtSql -I/usr/local/include/X11/qt6/QtCore -I. -I/usr/X11R6/include -I/usr/X11R6/include -I/usr/local/include -I/usr/local/lib/qt6/mkspecs/openbsd-clang -o sipQtSqlQSqlResult.o sipQtSqlQSqlResult.cpp /home/ports/pobj/py-qt6-6.5.2-python3/PyQt6-6.5.2/build/QtSql/sipQtSqlQSqlResult.cpp:1201:22: error: taking the address of a temporary object of type 'QVariantList' (aka 'QList<QVariant>') [-Waddress-of-temporary] sipRes = &sipCpp->boundValues(); ^~~~~~~~~~~~~~~~~~~~~~ 1 error generated. *** Error 1 in QtSql (Makefile:1877 'sipQtSqlQSqlResult.o') *** Error 2 in /home/ports/pobj/py-qt6-6.5.2-python3/PyQt6-6.5.2/build (Makefile:816 'sub-QtSql-make_first-ordered') sip-build: 'make' failed returning 2 *** Error 1 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3022 'do-configure': @cd /usr/ports/pobj/py-qt6-6.5.2-python 3/PyQt6-6.5.2 && /usr...) *** Error 2 in . (/usr/ports/infrastructure/mk/bsd.port.mk:3042 '/usr/ports/pobj/py-qt6-6.5.2-python3/.configure_done': @cd /usr/ports/x11/p...) *** Error 2 in /usr/ports/x11/py-qt6 (/usr/ports/infrastructure/mk/bsd.port.mk:2704 'update-plist': @lock=py3-qt6-6.5.2p1; export _LOCKS_HE...) Caspar > > cc rsadowsky@ > -- > ~Justin