[Bug 283794] [revive port] audio/amarok: KDE music player version 3.2.0, QT6

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 05 Jan 2025 15:43:04 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283794

--- Comment #13 from Rainer Hurling <rhurlin@FreeBSD.org> ---
(In reply to Martin Filla from comment #12)
> Did you try to use flavor qt6 ? I don't know but it is broken.
I tried to get a bit behind the causes. That's my current status:

The configuration for Qt6/KDE6 also breaks for me. In a late phase of configure
the following messages appear:

-- Building good old Qt5 version
-- Found PkgConfig: /usr/local/bin/pkgconf (found version “2.3.0”)
CMake Error at /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:14 (message):
  The imported target “Qt5::Core” references the file
     “/usr/local/lib/qt5/bin/qmake”
  but this file does not exist.  Possible reasons include:
  * The file was deleted, renamed, or moved to another location.
  * An install or uninstall procedure did not complete successfully.
  * The installation package was faulty and contained
     “/usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake”
  but not all the files it references.

Call Stack (most recent call first):
  /usr/local/lib/cmake/Qt5Core/Qt5CoreConfigExtras.cmake:9
(_qt5_Core_check_file_exists)
  /usr/local/lib/cmake/Qt5Core/Qt5CoreConfig.cmake:232 (include)
  /usr/local/share/ECM/modules/ECMQueryQt.cmake:49 (find_package)
  /usr/local/share/ECM/kde-modules/KDEInstallDirs5.cmake:241 (include)
  /usr/local/share/ECM/kde-modules/KDEInstallDirs.cmake:15 (include)
  CMakeLists.txt:24 (include)
-- Configuring incomplete, errors occurred!
*** Error code 1


This also happens with your own latest patch. 

So it looks like the Qt5 dependencies are still being included by mistake? I'm
guessing that by using internal parameters (see Mk/Uses/qt.mk etc.) like
_USE_QT_qt6 and _USE_KDE_qt6, also _CMAKE_*_qt6, some internals of the ports
infrastructure are getting messed up? The culprit seems to be CMakeLists.txt?


Also, your LIB_DEPENDS still contains dependencies with hardcoded Qt5:
    liblastfm5.so:audio/liblastfm-qt5
    libqjson-qt5.so:devel/qjson

And, there is no BUILD_WITH_QT5 in the code ...


Possibly the most sensible thing to do at the moment is to commit the port for
Qt5/KDE5 only? Then you can search for the causes of the misconfiguration under
Qt6/KDE6 in peace? Just a thought from me ...

-- 
You are receiving this mail because:
You are the assignee for the bug.