user/telegram: FTBFS: multiple errors
Found on aarch64:
In file included from /root/packages/user/telegram/src/tdesktop-2.0.1-full/Telegram/lib_ui/ui/effects/animations.h:9,
from /root/packages/user/telegram/src/tdesktop-2.0.1-full/Telegram/lib_ui/ui/effects/radial_animation.h:9,
from /root/packages/user/telegram/src/tdesktop-2.0.1-full/Telegram/lib_ui/ui/effects/radial_animation.cpp:7:
/root/packages/user/telegram/src/tdesktop-2.0.1-full/Telegram/lib_ui/ui/effects/animation_value.h: At global scope:
/root/packages/user/telegram/src/tdesktop-2.0.1-full/Telegram/lib_ui/ui/effects/animation_value.h:315:73: error: return type ‘class QPainterPath’ is incomplete
QPainterPath interpolate(QPointF (&from)[N], QPointF (&to)[N], float64 k) {
^
/root/packages/user/telegram/src/tdesktop-2.0.1-full/Telegram/lib_ui/ui/effects/animation_value.h: In function ‘void anim::interpolate(QPointF (&)[N], QPointF (&)[N], float64)’:
/root/packages/user/telegram/src/tdesktop-2.0.1-full/Telegram/lib_ui/ui/effects/animation_value.h:319:15: error: ‘result’ has incomplete type
QPainterPath result;
^~~~~~
20220528-14_33_03.525955838_telegram.log
See also: #721 (closed).
Then there's this, after patching that out:
[ 68%] Building CXX object Telegram/CMakeFiles/Telegram.dir/SourceFiles/data/data_abstract_structure.cpp.o
In file included from /root/packages/user/telegram/src/tdesktop-2.0.1-full/Telegram/SourceFiles/core/utils.cpp:14:
/root/packages/user/telegram/src/tdesktop-2.0.1-full/Telegram/SourceFiles/core/utils.cpp: In function ‘void ThirdParty::start()’:
/root/packages/user/telegram/src/tdesktop-2.0.1-full/Telegram/SourceFiles/core/utils.cpp:159:8: error: converting to ‘bool’ from ‘std::nullptr_t’ requires direct-initialization [-fpermissive]
if (!CRYPTO_get_locking_callback()) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/packages/user/telegram/src/tdesktop-2.0.1-full/Telegram/SourceFiles/core/utils.cpp:169:8: error: converting to ‘bool’ from ‘std::nullptr_t’ requires direct-initialization [-fpermissive]
if (!CRYPTO_get_dynlock_create_callback()) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/packages/user/telegram/src/tdesktop-2.0.1-full/Telegram/SourceFiles/core/utils.cpp:173:15: error: converting to ‘bool’ from ‘std::nullptr_t’ requires direct-initialization [-fpermissive]
} else if (!CRYPTO_get_dynlock_lock_callback()) {
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/root/packages/user/telegram/src/tdesktop-2.0.1-full/Telegram/SourceFiles/core/utils.cpp:177:19: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations]
av_register_all();
^
See also: #571 (closed).