Created attachment 228525 [details] patch to 3.1.9 Thanks to the work done by Gleb (glebius@), we are able to remove most of the patches. 11 patches are upstreamed, and 2 seem to be obsolete. Here's a patch to update the port to 3.1.9. Ideally PR 259010 should be submitted first. Changelog: https://github.com/telegramdesktop/tdesktop/blob/dev/changelog.txt 3.1.9 (08.10.21) - Fix crash in chat closing while scrolling (macOS only). 3.1.8 (08.10.21) - Show small media previews in chats list. - Show media album previews and caption text in chats list. - Add "Quick Reply" and "Mark as Read" to native Windows notifications. 3.1.7 beta (07.10.21) - Fix channel message views and comments counter updates. - Sponsored messages support. - Crash fix. 3.1.6 beta (06.10.21) - Show small media previews in chats list. - Show media album previews and caption text in chats list. - Add "Quick Reply" and "Mark as Read" to native Windows notifications. 3.1.5 beta (28.09.21) - Choose one of 8 new preset themes for any individual private chat. - Click on '...' menu > 'Change Colors' to pick a theme. - Both chat participants will see the same theme in that chat – on all their devices. - Each new theme features colorful gradient message bubbles, beautifully animated backgrounds and unique background patterns. - All chat themes have day and night versions and will follow your overall dark mode settings. - Implement main window rounded corners on Windows 11. - Fix audio capture from AirPods on macOS. 3.1.4 beta (27.09.21) - Fix crash in network availability init. - Fix assertion violation after a NaN-resulting std::round call. 3.1.3 beta (27.09.21) - Fix illegal instruction crash in opus encoder. 3.1.2 beta (26.09.21) - Control video in fullscreen mode using arrows and numbers. - Open locations in browser if default Bing Maps is not installed. - Reconnect without timeout when network availability changes. - Crash fixes. 3.1.1 (24.09.21) - Crash fixes. 3.1 (19.09.21) - Some animated emoji now have extra effects. - Send :fireworks: :tada:, :balloon:, :like:, :poop: or :heart: to any private chat, then click on the animated emoji to launch the effect. - If your chat partner also has the chat open, you will both see the effects. - See the "Watching" status when your chat partner is enjoying emoji effects with you. - More interactive emoji coming soon. - Right click one of your outgoing messages in small groups to see who recently viewed it. - To protect privacy, read receipts are only stored for 7 days after the message was sent. - Record video and audio from live broadcasts in your group or channel. - Admins can start recording from the '...' menu. - Choose between recording in portrait or landscape orientation. - Finished recordings are sent to the admin's Saved Messages and can be easily shared. 3.0.5 beta (17.09.21) - Add support for Emoji 13.1. 3.0.4 beta (13.09.21) - Fix a crash when joining video chat or live broadcast. - Add a "Close to Taskbar" option when tray icon is disabled (Windows and Linux). 3.0.3 beta (12.09.21) - Try fixing crashes in allocator on Linux. 3.0.2 beta (10.09.21) - Check who've seen your message in small groups from the context menu. - Enable recording with video in live streams and video chats. 3.0.1 (01.09.21) - Crash fixes. 3.0 (31.08.21) - Broadcast video and share your screen to an unlimited number of viewers. - To begin, tap the Live Stream button in the title bar of a community where you are an admin. - Tap the "Forward Message" label above the input field to change how messages will be sent. - Hide or show the original sender's name. - Remove or keep captions from media messages. - See how many unread comments there are when opening a channel's comments. 2.9.14 beta (31.08.21) - Fix crash in authorization after logout. 2.9.13 beta (31.08.21) - See unread comments count when scrolling discussions in channels. 2.9.12 beta (24.08.21) - Disable floating point exceptions in 32 bit Windows version. 2.9.11 beta (24.08.21) - Resolve (again) a video playback crash in 32 bit Windows version. 2.9.10 beta (24.08.21) - Resolve (hopefully) a video playback crash in 32 bit Windows version. 2.9.9 beta (23.08.21) - Still(3) debugging a video playback crash in 32 bit Windows version. 2.9.8 beta (23.08.21) - And still debugging a video playback crash in 32 bit Windows version. 2.9.7 beta (23.08.21) - Still debugging a video playback crash in 32 bit Windows version. 2.9.6 beta (21.08.21) - Debugging a video playback crash in 32 bit Windows version. 2.9.5 beta (20.08.21) - Tile chat background patterns horizontally. - Fix a rare crash in spellchecker on Windows. - Fix animated chat backgrounds in Saved Messages. - Fix "Sorry, group is inaccessible" message in scheduled voice chats. 2.9.4 beta (17.08.21) - Choose one from dozens of new gorgeous animated backgrounds in Chat Settings > Chat background. 2.9.3 (11.08.21) - Fix requesting screencast rights on macOS (again). 2.9.2 (10.08.21) - Fix crashes and bugs in scheduled messages. - Fix file sending after a call or voice chat on Windows. - Fix main window title glitches on Windows 7. 2.9.1 (30.07.21) - Fix requesting screencast rights on macOS. 2.9 (30.07.21) - Enable auto-delete in your chats to remove messages after 1 month (also 1 day or 1 week). - Quickly find all GIFs from a chat using the new GIF section in Shared Media. - Reset your Two-Step Verification password even if you forgot your old password and don't have a recovery email. - To do this, you must be logged into your account. The reset takes 7 days and can be cancelled from any of your devices. - Enjoy a new app icon and default background. 2.8.13 beta (23.07.21) - Fix crash in messages animation. - Save GIFs from context menu in channel comments. 2.8.12 beta (20.07.21) - Change the default chat background. - Add GIFs overview section in chats. - Add a simple new messages animation. - Use modern Telegram application icon. - Use Direct3D 11 by default on Windows. - Fix Direct3D acceleration on basic Windows 7 setup.
Poudriere logs on 12.2/13.0 amd64: https://raw.githubusercontent.com/HenryHu/ports/master/.logs/12.2-amd64/telegram-desktop-3.1.9.log https://raw.githubusercontent.com/HenryHu/ports/master/.logs/13.0-amd64/telegram-desktop-3.1.9.log
Doesn't build with default options: https://gist.github.com/lwhsu/bf769d7fc13f63cf4c3bf4012006089e , where GTK=off I compared with your https://raw.githubusercontent.com/HenryHu/ports/master/.logs/13.0-amd64/telegram-desktop-3.1.9.log , where GTK=on Also, audio backend options are different: (ALSA=on, PULSEAUDIO=off) v.s. (ALSA=on, PULSEAUDIO=on)
(In reply to Li-Wen Hsu from comment #2) Okay, it seems like that they've removed the support for flag DESKTOP_APP_DISABLE_GTK_INTEGRATION, and now we always need to rely on Gtk. I'll remove the GTK flag.
Created attachment 228603 [details] patch with GTK option removed
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=2bc3e6229febd07dd7f2980cb7065573d689a0f5 commit 2bc3e6229febd07dd7f2980cb7065573d689a0f5 Author: Henry Hu <henry.hu.sh@gmail.com> AuthorDate: 2021-10-12 13:55:54 +0000 Commit: Li-Wen Hsu <lwhsu@FreeBSD.org> CommitDate: 2021-10-12 13:55:54 +0000 net-im/telegram-desktop: Update to 3.1.9 Thanks to the work done by Gleb (glebius@), we are able to remove most of the patches. 11 patches are upstreamed, and 2 seem to be obsolete. Changelog: https://github.com/telegramdesktop/tdesktop/blob/dev/changelog.txt PR: 259014 net-im/telegram-desktop/Makefile | 25 ++++++++++++---------- net-im/telegram-desktop/distinfo | 6 +++--- .../files/patch-Telegram_CMakeLists.txt (gone) | 10 --------- ...ceFiles_chat__helpers_stickers__emoji__pack.cpp | 4 ++-- ...Files_platform_linux_specific__linux.cpp (gone) | 11 ---------- ..._ThirdParty_libtgvoip_VoIPController.cpp (gone) | 11 ---------- ...m_ThirdParty_libtgvoip_audio_AudioIO.cpp (gone) | 20 ----------------- ...hirdParty_libtgvoip_audio_AudioInput.cpp (gone) | 20 ----------------- ...irdParty_libtgvoip_audio_AudioOutput.cpp (gone) | 20 ----------------- ...elegram_ThirdParty_libtgvoip_logging.cpp (gone) | 20 ----------------- ...ty_libtgvoip_os_linux_AudioInputALSA.cpp (gone) | 13 ----------- ...y_libtgvoip_os_linux_AudioOutputALSA.cpp (gone) | 13 ----------- ...elegram_ThirdParty_libtgvoip_threading.h (gone) | 23 -------------------- ...voip_webrtc__dsp_rtc__base_stringutils.h (gone) | 11 ---------- .../files/patch-Telegram_lib__base_base_bytes.h | 4 ++-- ...ew_platform_linux_webview__linux__webkit__gtk.h | 2 +- .../patch-cmake_external_CMakeLists.txt (gone) | 12 ----------- .../files/patch-cmake_options__linux.cmake (gone) | 14 ------------ 18 files changed, 22 insertions(+), 217 deletions(-)
A commit in branch 2021Q4 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ee27523054efd46739813dfbcc20b1ae385f2fa7 commit ee27523054efd46739813dfbcc20b1ae385f2fa7 Author: Henry Hu <henry.hu.sh@gmail.com> AuthorDate: 2021-10-12 13:55:54 +0000 Commit: Olivier Cochard <olivier@FreeBSD.org> CommitDate: 2021-12-10 21:18:35 +0000 net-im/telegram-desktop: Update to 3.1.9 Thanks to the work done by Gleb (glebius@), we are able to remove most of the patches. 11 patches are upstreamed, and 2 seem to be obsolete. Changelog: https://github.com/telegramdesktop/tdesktop/blob/dev/changelog.txt PR: 259014 (cherry picked from commit 2bc3e6229febd07dd7f2980cb7065573d689a0f5) net-im/telegram-desktop/Makefile | 22 +++++++++++---------- net-im/telegram-desktop/distinfo | 6 +++--- .../files/patch-Telegram_CMakeLists.txt (gone) | 10 ---------- ...ceFiles_chat__helpers_stickers__emoji__pack.cpp | 4 ++-- ...Files_platform_linux_specific__linux.cpp (gone) | 11 ----------- ..._ThirdParty_libtgvoip_VoIPController.cpp (gone) | 11 ----------- ...m_ThirdParty_libtgvoip_audio_AudioIO.cpp (gone) | 20 ------------------- ...hirdParty_libtgvoip_audio_AudioInput.cpp (gone) | 20 ------------------- ...irdParty_libtgvoip_audio_AudioOutput.cpp (gone) | 20 ------------------- ...elegram_ThirdParty_libtgvoip_logging.cpp (gone) | 20 ------------------- ...ty_libtgvoip_os_linux_AudioInputALSA.cpp (gone) | 13 ------------ ...y_libtgvoip_os_linux_AudioOutputALSA.cpp (gone) | 13 ------------ ...elegram_ThirdParty_libtgvoip_threading.h (gone) | 23 ---------------------- ...voip_webrtc__dsp_rtc__base_stringutils.h (gone) | 11 ----------- .../files/patch-Telegram_lib__base_base_bytes.h | 4 ++-- ...ew_platform_linux_webview__linux__webkit__gtk.h | 2 +- .../patch-cmake_external_CMakeLists.txt (gone) | 12 ----------- .../files/patch-cmake_options__linux.cmake (gone) | 14 ------------- 18 files changed, 20 insertions(+), 216 deletions(-)