Bug 277366 - net-im/telegram-desktop: Not launching after QT6 updates (quarterly)
Summary: net-im/telegram-desktop: Not launching after QT6 updates (quarterly)
Status: Closed Overcome By Events
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Dirk Meyer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-02-28 00:45 UTC by Henrich Hartzer
Modified: 2024-03-27 17:22 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henrich Hartzer 2024-02-28 00:45:54 UTC
Hi,

I'm on quarterly and Telegram Desktop quit launching for me after the latest updates.

It sounds like if the package is rebuilt, all might be well.

$ telegram-desktop

** (telegram-desktop:17453): WARNING **: 00:36:15.896: Glib::Error::throw_exception():
  unknown error domain 'g-spawn-exit-error-quark': throwing generic Glib::Error exception


** (telegram-desktop:17453): WARNING **: 00:36:15.901: Unable to load patched fonts with Qt workarounds, expect font issues.
Cannot mix incompatible Qt library (6.6.1) with this library (6.6.2)
Abort trap


Thank you!
Comment 1 Henrich Hartzer 2024-02-28 14:59:20 UTC
I tried to compile Telegram Desktop with ports quarterly and am getting this error.

-- Found Python3: /usr/local/bin/python3.9 (found version "3.9.18") found components: Interpreter
-- Configuring done (6.7s)
CMake Error at cmake/nice_target_sources.cmake:53 (target_sources):
  Cannot find source file:

    /usr/ports/net-im/telegram-desktop/work-qt5/tdesktop-4.14.2-full/Telegram/ThirdParty/kcoreaddons/src/lib/io/kurlmimedata.cpp

  Tried extensions .c .C .c++ .cc .cpp .cxx .cu .mpp .m .M .mm .ixx .cppm
  .ccm .cxxm .c++m .h .hh .h++ .hm .hpp .hxx .in .txx .f .F .for .f77 .f90
  .f95 .f03 .hip .ispc
Call Stack (most recent call first):
  cmake/external/kcoreaddons/CMakeLists.txt:29 (nice_target_sources)


CMake Error at cmake/external/kcoreaddons/CMakeLists.txt:23 (add_library):
  No SOURCES given to target: external_kcoreaddons_bundled


CMake Generate step failed.  Build files cannot be regenerated correctly.
*** Error code 1

Stop.
make[1]: stopped in /usr/ports/net-im/telegram-desktop
*** Error code 1

Stop.
make: stopped in /usr/ports/net-im/telegram-desktop


It sounds like there's a QT5 and a QT6 flavor of the package. I'm confused as it seems the package built upstream is QT6, but the default is QT5?
Comment 2 Henrich Hartzer 2024-02-28 15:21:45 UTC
Ok, it looks like I actually did explicitly install telegram-desktop-qt6. telegram-desktop is also available.

Nonetheless, I'm running a compile of telegram-desktop-qt6. I did try to disable ALSA support, but that broke the build. So far so good compiling my own telegram-desktop-qt6.

Summary:

telegram-desktop-qt6 quarterly package is broken after latest QT6 updates (I think it just has to be rebuilt).

telegram-desktop (QT5) has a build error for me.

telegram-desktop-qt6 build fails if ALSA is not selected.
Comment 3 Henrich Hartzer 2024-02-28 17:41:52 UTC
The compile did work fine and Telegram Desktop is working for me once again. I'm not sure if there's a way to trigger telegram-desktop-qt6 to be rebuilt automatically with new QT6 releases, or if it's best to just manually bump the release number for this package and call it a day.
Comment 4 Henrich Hartzer 2024-03-25 17:51:06 UTC
Hi Dirk,

Could you show me the commit or other bug report that covered this?

Thank you!
Comment 5 Dirk Meyer freebsd_committer freebsd_triage 2024-03-27 13:46:04 UTC
Sorry no explicit commit.

I was able to run telegram-desktop-qt6-4.15.2 on FreeBSD-13.2 amd64
all ports up to date, snapshot from 2024-03-15.

telegram-desktop (QT5) also builds and runs.

The telegram-desktop-qt6 quarterly package will be rebuild for the new quarter in 3 days.
Comment 6 Henrich Hartzer 2024-03-27 17:22:37 UTC
No problem, thank you! That sounds good.