Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 813408 - net-im/telegram-desktop-3.0.1 - /.../utils.cpp: error: FIPS_mode_set was not declared in this scope
Summary: net-im/telegram-desktop-3.0.1 - /.../utils.cpp: error: FIPS_mode_set was not ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Esteve Varela Colominas
URL:
Whiteboard:
Keywords:
Depends on: 818001
Blocks: openssl-3.0
  Show dependency tree
 
Reported: 2021-09-16 17:17 UTC by Toralf Förster
Modified: 2021-11-01 20:34 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,15.67 KB, text/plain)
2021-09-16 17:17 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,173.21 KB, text/plain)
2021-09-16 17:17 UTC, Toralf Förster
Details
environment (environment,126.49 KB, text/plain)
2021-09-16 17:17 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,21.58 KB, application/x-bzip)
2021-09-16 17:17 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,5.00 KB, application/x-bzip)
2021-09-16 17:17 UTC, Toralf Förster
Details
net-im:telegram-desktop-3.0.1:20210916-164153.log.bz2 (net-im:telegram-desktop-3.0.1:20210916-164153.log.bz2,35.71 KB, application/x-bzip)
2021-09-16 17:17 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,65.36 KB, application/x-bzip)
2021-09-16 17:17 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2021-09-16 17:17:48 UTC
[591/955] /usr/bin/x86_64-pc-linux-gnu-g++ -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION -DDESKTOP_APP_DISABLE_WEBKITGTK -DDESKTOP_APP_USE_PACKAGED -DDESKTOP_APP_USE_PACKAGED_FONTS -DG_LOG_DOMAIN=\"Telegram\" -DLOTTIE_USE_CACHE -DLOT_BUILD -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_SVG_LIB -DQT_WIDGETS_LIB -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c -DTDESKTOP_API_ID=611335 -DTDESKTOP_DISABLE_AUTOUPDATE -DTDESKTOP_LAUNCHER_BASENAME=telegram-desktop -DTGCALLS_USE_STD_OPTIONAL -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/telegram-desktop-3.0.1_build/Telegram/Telegram_autogen/include -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/SourceFiles -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/lib_spellcheck -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/ThirdParty/tgcalls -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/lib_base -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/lib_rpl -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/lib_crl -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/telegram-desktop-3.0.1_build/Telegram/gen -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/lib_tl -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/telegram-desktop-3.0.1_build/Telegram/lib_ui/gen -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/lib_ui -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/lib_ui/emoji_suggestions -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/lib_lottie -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/lib_webrtc -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/lib_storage -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/lib_qr -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/ThirdParty/QR/cpp -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/lib_webview -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/SourceFiles/payments -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/ThirdParty/rlottie/inc -I/var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/ThirdParty/statusnotifieritem -isystem /usr/include/tgvoip -isystem /usr/include/opus -isystem /usr/include/gtk-3.0 -isystem /usr/include/pango-1.0 -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/lib64/libffi/include -isystem /usr/include/harfbuzz -isystem /usr/include/freetype2 -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/fribidi -isystem /usr/include/uuid -isystem /usr/include/cairo -isystem /usr/include/pixman-1 -isystem /usr/include/libpng16 -isystem /usr/include/gdk-pixbuf-2.0 -isystem /usr/include/gio-unix-2.0 -isystem /usr/include/atk-1.0 -isystem /usr/include/at-spi2-atk/2.0 -isystem /usr/include/dbus-1.0 -isystem /usr/lib64/dbus-1.0/include -isystem /usr/include/at-spi-2.0 -isystem /usr/include/qt5/QtCore/5.15.2 -isystem /usr/include/qt5/QtCore/5.15.2/QtCore -isystem /usr/include/qt5/QtGui/5.15.2 -isystem /usr/include/qt5/QtGui/5.15.2/QtGui -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtDBus -isystem /var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/ThirdParty/expected/include -isystem /usr/include/giomm-2.4 -isystem /usr/lib64/giomm-2.4/include -isystem /usr/include/glibmm-2.4 -isystem /usr/lib64/glibmm-2.4/include -isystem /usr/include/sigc++-2.0 -isystem /usr/lib64/sigc++-2.0/include -isystem /usr/include/AL -isystem /usr/include/minizip -isystem /usr/include/dbusmenu-qt5  -pipe -march=native -fno-diagnostics-color -O2 -fPIC -fno-strict-aliasing -pipe -Wall -W -Wno-unused-parameter -Wno-switch -Wno-missing-field-initializers -Wno-sign-compare -Wno-maybe-uninitialized -pthread -Winvalid-pch -include /var/tmp/portage/net-im/telegram-desktop-3.0.1/work/telegram-desktop-3.0.1_build/Telegram/CMakeFiles/Telegram.dir/cmake_pch.hxx -MD -MT Telegram/CMakeFiles/Telegram.dir/SourceFiles/countries/countries_manager.cpp.o -MF Telegram/CMakeFiles/Telegram.dir/SourceFiles/countries/countries_manager.cpp.o.d -o Telegram/CMakeFiles/Telegram.dir/SourceFiles/countries/countries_manager.cpp.o -c /var/tmp/portage/net-im/telegram-desktop-3.0.1/work/tdesktop-3.0.1-full/Telegram/SourceFiles/countries/countries_manager.cpp

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4_abi32+64-20210914-181204

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.0 *
/usr/lib/llvm/12
12.0.1
Python 3.9.7
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-1.55.0 *
The Glorious Glasgow Haskell Compilation System, version 8.10.4
  (none found)

  HEAD of ::gentoo
commit 3b5dabc8767d79878f44a642bbb95a2c9d7c9a5e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Thu Sep 16 15:37:21 2021 +0000

    2021-09-16 15:37:19 UTC

emerge -qpvO net-im/telegram-desktop
[ebuild  N    ] net-im/telegram-desktop-3.0.1  USE="X dbus gtk hunspell spell -enchant -screencast -wayland -webkit"
Comment 1 Toralf Förster gentoo-dev 2021-09-16 17:17:49 UTC
Created attachment 739593 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2021-09-16 17:17:51 UTC
Created attachment 739596 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2021-09-16 17:17:52 UTC
Created attachment 739599 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2021-09-16 17:17:53 UTC
Created attachment 739602 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2021-09-16 17:17:54 UTC
Created attachment 739605 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2021-09-16 17:17:56 UTC
Created attachment 739608 [details]
net-im:telegram-desktop-3.0.1:20210916-164153.log.bz2
Comment 7 Toralf Förster gentoo-dev 2021-09-16 17:17:57 UTC
Created attachment 739611 [details]
temp.tar.bz2
Comment 8 Esteve Varela Colominas 2021-09-16 18:36:05 UTC
Oh fun~, a breaking openssl update. I might drop this one until upstream or a different distro handles it. I expect something like that to happen, anyway.
Comment 9 Esteve Varela Colominas 2021-09-17 13:59:16 UTC
Apparently removing the FIPS_mode_set(0) call is enough to get it to build and work. The only reason this function was called was cleaning up OpenSSL after use, to reduce memory leaks, but I honestly doubt this call in particular is necessary.
However, there's a metric ton of deprecation warnings regarding the low-level digest functions (see https://github.com/openssl/openssl/blob/master/doc/man7/migration_guide.pod#deprecated-low-level-digest-functions).
I'm not sure how to solve those, as they're wrapped in C++ templates and similar confusing constructs. Is it fine to leave deprecated functions in here, or should I wait for upstream to solve this before marking this package "openssl-3.0.0 compatible"?
Comment 10 Esteve Varela Colominas 2021-09-25 14:53:22 UTC
@toralf:
net-im/telegram-desktop-3.1.0 now has a patch that at least allows it to build with openssl-3.0.0 now, even though it has a crapload of deprecation warnings.
Is that enough to unblock https://bugs.gentoo.org/797325 ?
Comment 11 Toralf Förster gentoo-dev 2021-09-25 17:29:05 UTC
(In reply to Esteve Varela Colominas from comment #10)
> @toralf:
> net-im/telegram-desktop-3.1.0 now has a patch that at least allows it to
> build with openssl-3.0.0 now, even though it has a crapload of deprecation
> warnings.
> Is that enough to unblock https://bugs.gentoo.org/797325 ?

or remove the ~3.0.1 in favour of ~3.1.0 and close this bug ?
Comment 12 Esteve Varela Colominas 2021-10-13 13:03:46 UTC
If I were to remove the current ~arch version whenever a new ~arch version is released I would never get to stabilize anything...
Comment 13 Esteve Varela Colominas 2021-10-14 14:34:20 UTC
net-im/telegram-desktop-3.0.1-r1 now contains the openssl3 patch as well (it's been tested), and it has been marked stable. I'll close this issue when I remove 2.9.3-r1 from the tree, unless it's ok to close now.
Comment 14 Larry the Git Cow gentoo-dev 2021-11-01 20:34:15 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=341116ec481cbc56deac5eb03162088068a047ba

commit 341116ec481cbc56deac5eb03162088068a047ba
Author:     Esteve Varela Colominas <esteve.varela@gmail.com>
AuthorDate: 2021-10-31 22:11:18 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-11-01 20:10:06 +0000

    net-im/telegram-desktop: Bump to 3.1.11, drop old
    
    Closes: https://bugs.gentoo.org/813408
    Closes: https://github.com/gentoo/gentoo/pull/22776
    Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 net-im/telegram-desktop/Manifest                   |  2 +-
 ....3-r1.ebuild => telegram-desktop-3.1.11.ebuild} | 26 +++++++++++-----------
 2 files changed, 14 insertions(+), 14 deletions(-)