Bug 280007 - devel/qt6-base: CMake Error at /usr/local/share/cmake/Modules/FindLTTngUST.cmake:86
Summary: devel/qt6-base: CMake Error at /usr/local/share/cmake/Modules/FindLTTngUST.cm...
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: freebsd-kde (group)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-06-26 18:44 UTC by O. Hartmann
Modified: 2024-06-29 07:47 UTC (History)
1 user (show)

See Also:
jhale: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description O. Hartmann 2024-06-26 18:44:52 UTC
On recent CURRENT (FreeBSD 15.0-CURRENT #54 main-n270951-8aa9192ce98a: Tue Jun 25 21:02:24 CEST 2024 amd64) compiling/updating port devel/qt6-base fails via portmaster with the error:

[...]
-- Checking for module 'libudev'
--   Found libudev, version 243
-- Promoting target to global: 'PkgConfig::Libudev'
CMake Error at /usr/local/share/cmake/Modules/FindLTTngUST.cmake:86 (set_target_properties):
  set_target_properties called with incorrect number of arguments.
Call Stack (most recent call first):
  cmake/QtFindPackageHelpers.cmake:156 (find_package)
  configure.cmake:127 (qt_find_package)
  cmake/QtBaseGlobalTargets.cmake:82 (include)
  cmake/QtBaseHelpers.cmake:170 (include)
  CMakeLists.txt:32 (qt_internal_qtbase_build_repo)


-- Found LTTngUST: /usr/local/lib/liblttng-ust.so (found version "2.13.2")
-- Promoting target to global: 'LTTng::UST'
-- Performing Test TEST_use_bfd_linker
-- Performing Test TEST_use_bfd_linker - Success
[...]
Comment 1 Jason E. Hale freebsd_committer freebsd_triage 2024-06-29 07:39:50 UTC
I've confirmed that if sysutils/lttng-ust is installed on a live system, configure of devel/qt6-base fails. Building the Qt6 stack on live systems is highly discouraged and am thus demoting the Importance, but I still sort of get it.

Disabling CMake detection of LTTngUST will be implemented to remedy the immediate situation.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-06-29 07:42:25 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=987fd995a979e7dd62be780aa3fb665a874d1b28

commit 987fd995a979e7dd62be780aa3fb665a874d1b28
Author:     Jason E. Hale <jhale@FreeBSD.org>
AuthorDate: 2024-06-29 07:32:55 +0000
Commit:     Jason E. Hale <jhale@FreeBSD.org>
CommitDate: 2024-06-29 07:41:49 +0000

    devel/qt6-base: Fix configure on live systems

    Configure will fail on live systems that have sysutils/lttng-ust
    installed. Disable detection of LTTngUST to remedy this in the
    meantime. I don't think we really need this, though, and it's probably
    best not to rely on an unmaintained port.

    PR:             280007
    Reported by:    O. Hartmann <ohartmann@walstatt.org>

 devel/qt6-base/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)