FS#78389 - [python-pytorch] 2.0.0-4 links with Qt6 but depends on qt5-base

Attached to Project: Community Packages
Opened by piernov (piernov) - Thursday, 04 May 2023, 09:20 GMT
Last edited by Sven-Hendrik Haase (Svenstaro) - Saturday, 06 May 2023, 18:01 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Sven-Hendrik Haase (Svenstaro)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
python-pytorch 2.0.0-4 has libtorch linked to Qt6 libraries (libQt6Test.so.6 among others) but PKGBUILD depends field contain qt5-base and nothing related to qt6.
On a clean installation, this causes pytorch to fail loading as qt6-base is not installed.
python-pytorch should therefore depend on qt6-base instead of qt5-base.

Additional info:
— Version 2.0.0-4
$ ldd /usr/lib/libtorch.so | grep Qt
libQt6Test.so.6 => not found
libQt6OpenGLWidgets.so.6 => not found
libQt6Widgets.so.6 => not found
libQt6Gui.so.6 => not found
libQt6Core.so.6 => not found

— Version 2.0.0-2
$ ldd /usr/lib/libtorch.so | grep Qt
libQt5Test.so.5 => /usr/lib/libQt5Test.so.5 (0x00007f121be9c000)
libQt5OpenGL.so.5 => /usr/lib/libQt5OpenGL.so.5 (0x00007f120bfa6000)
libQt5Widgets.so.5 => /usr/lib/libQt5Widgets.so.5 (0x00007f11b1346000)
libQt5Gui.so.5 => /usr/lib/libQt5Gui.so.5 (0x00007f11b0cdb000)
libQt5Core.so.5 => /usr/lib/libQt5Core.so.5 (0x00007f11b07b7000)

Steps to reproduce:
- Uninstall qt6-base if it is installed
- Install python-pytorch 2.0.0-4
- Run `python -c "import torch"`
Expected output: empty
Actual output: "ImportError: libQt6Test.so.6: cannot open shared object file: No such file or directory"
This task depends upon

Closed by  Sven-Hendrik Haase (Svenstaro)
Saturday, 06 May 2023, 18:01 GMT
Reason for closing:  Fixed
Comment by Antonio Rojas (arojas) - Thursday, 04 May 2023, 10:42 GMT
Same for cctag, opencv is built with Qt6 now so the dependency needs to be switched

Loading...