Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 914902 - net-im/telegram-desktop-4.8.4-r2: error: redefinition of ‘class Glib::Variant<long long int>’
Summary: net-im/telegram-desktop-4.8.4-r2: error: redefinition of ‘class Glib::Variant...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Esteve Varela Colominas
URL:
Whiteboard:
Keywords:
: 915164 (view as bug list)
Depends on: 915992
Blocks:
  Show dependency tree
 
Reported: 2023-09-29 03:57 UTC by yongxiang
Modified: 2023-12-11 13:25 UTC (History)
10 users (show)

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


Attachments
build.log (build.log,703.65 KB, text/x-log)
2023-09-29 03:57 UTC, yongxiang
Details
emerge --info (emerge.info,9.42 KB, text/plain)
2023-09-29 03:58 UTC, yongxiang
Details
tdesktop-4.8.4-glibmm-2.78.patch (tdesktop-4.8.4-glibmm-2.78.patch,38.03 KB, patch)
2023-09-30 21:11 UTC, Andrey Volkov
Details | Diff
ebuild for actual version (telegram-desktop-4.10.3.ebuild,6.67 KB, application/vnd.gentoo.ebuild)
2023-10-03 14:55 UTC, Richard Hering
Details

Note You need to log in before you can comment on or make changes to this bug.
Description yongxiang 2023-09-29 03:57:42 UTC
[227/1232] /usr/bin/x86_64-pc-linux-gnu-g++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION -DDESKTOP_APP_USE_PACKAGED -DGI_INLINE -DGI_OBJECT_NEWV -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x051500 -DQT_GUI_LIB -DQT_IMPLICIT_QCHAR_CONSTRUCTION -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -I/tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/lib_base -I/tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/lib_rpl -I/tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/lib_crl -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtCore/5.15.10 -isystem /usr/include/qt5/QtCore/5.15.10/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtGui/5.15.10 -isystem /usr/include/qt5/QtGui/5.15.10/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWidgets/5.15.10 -isystem /usr/include/qt5/QtWidgets/5.15.10/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQmlModels -isystem /usr/include/qt5/QtQuickWidgets -isystem /tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/ThirdParty/expected/include -isystem /usr/include/giomm-2.68 -isystem /usr/lib64/giomm-2.68/include -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/glibmm-2.68 -isystem /usr/lib64/glibmm-2.68/include -isystem /usr/include/sigc++-3.0 -isystem /usr/lib64/sigc++-3.0/include -isystem /usr/lib64/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full_build/Telegram/lib_base/gen -isystem /tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full_build/gen -isystem /usr/include/cppgir -isystem /usr/include/cppgir/gi -isystem /usr/include/cppgir/override -isystem /usr/include/gio-unix-2.0  -DNDEBUG -O2 -pipe -fdiagnostics-color=always -frecord-gcc-switches -std=gnu++20 -fPIC -fno-strict-aliasing -pipe -Wall -Wextra -Wno-unused-parameter -Wno-switch -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-sign-compare -Wno-deprecated -pthread -Winvalid-pch -include /tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full_build/Telegram/lib_base/CMakeFiles/lib_base.dir/cmake_pch.hxx -MD -MT Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/linux/base_url_scheme_linux.cpp.o -MF Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/linux/base_url_scheme_linux.cpp.o.d -o Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/linux/base_url_scheme_linux.cpp.o -c /tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/lib_base/base/platform/linux/base_url_scheme_linux.cpp
FAILED: Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/linux/base_url_scheme_linux.cpp.o
/usr/bin/x86_64-pc-linux-gnu-g++ -DCRL_USE_COMMON_QUEUE -DDESKTOP_APP_DISABLE_CRASH_REPORTS -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION -DDESKTOP_APP_USE_PACKAGED -DGI_INLINE -DGI_OBJECT_NEWV -DKCOREADDONS_LIB -DQT_CORE_LIB -DQT_DBUS_LIB -DQT_DEPRECATED_WARNINGS_SINCE=0x051500 -DQT_GUI_LIB -DQT_IMPLICIT_QCHAR_CONSTRUCTION -DQT_NETWORK_LIB -DQT_NO_CAST_FROM_BYTEARRAY -DQT_NO_DEBUG -DQT_NO_KEYWORDS -DQT_QMLMODELS_LIB -DQT_QML_LIB -DQT_QUICKWIDGETS_LIB -DQT_QUICK_LIB -DQT_SVG_LIB -DQT_WIDGETS_LIB -I/tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/lib_base -I/tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/lib_rpl -I/tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/lib_crl -isystem /usr/include/qt5 -isystem /usr/include/qt5/QtCore -isystem /usr/lib64/qt5/mkspecs/linux-g++ -isystem /usr/include/qt5/QtCore/5.15.10 -isystem /usr/include/qt5/QtCore/5.15.10/QtCore -isystem /usr/include/qt5/QtGui -isystem /usr/include/qt5/QtGui/5.15.10 -isystem /usr/include/qt5/QtGui/5.15.10/QtGui -isystem /usr/include/qt5/QtWidgets -isystem /usr/include/qt5/QtWidgets/5.15.10 -isystem /usr/include/qt5/QtWidgets/5.15.10/QtWidgets -isystem /usr/include/qt5/QtNetwork -isystem /usr/include/qt5/QtSvg -isystem /usr/include/qt5/QtDBus -isystem /usr/include/qt5/QtQml -isystem /usr/include/qt5/QtQuick -isystem /usr/include/qt5/QtQmlModels -isystem /usr/include/qt5/QtQuickWidgets -isystem /tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/ThirdParty/expected/include -isystem /usr/include/giomm-2.68 -isystem /usr/lib64/giomm-2.68/include -isystem /usr/include/glib-2.0 -isystem /usr/lib64/glib-2.0/include -isystem /usr/include/glibmm-2.68 -isystem /usr/lib64/glibmm-2.68/include -isystem /usr/include/sigc++-3.0 -isystem /usr/lib64/sigc++-3.0/include -isystem /usr/lib64/libffi/include -isystem /usr/include/libmount -isystem /usr/include/blkid -isystem /usr/include/KF5/KCoreAddons -isystem /usr/include/KF5 -isystem /tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full_build/Telegram/lib_base/gen -isystem /tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full_build/gen -isystem /usr/include/cppgir -isystem /usr/include/cppgir/gi -isystem /usr/include/cppgir/override -isystem /usr/include/gio-unix-2.0  -DNDEBUG -O2 -pipe -fdiagnostics-color=always -frecord-gcc-switches -std=gnu++20 -fPIC -fno-strict-aliasing -pipe -Wall -Wextra -Wno-unused-parameter -Wno-switch -Wno-maybe-uninitialized -Wno-missing-field-initializers -Wno-sign-compare -Wno-deprecated -pthread -Winvalid-pch -include /tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full_build/Telegram/lib_base/CMakeFiles/lib_base.dir/cmake_pch.hxx -MD -MT Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/linux/base_url_scheme_linux.cpp.o -MF Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/linux/base_url_scheme_linux.cpp.o.d -o Telegram/lib_base/CMakeFiles/lib_base.dir/base/platform/linux/base_url_scheme_linux.cpp.o -c /tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/lib_base/base/platform/linux/base_url_scheme_linux.cpp
In file included from /tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/lib_base/base/platform/linux/base_url_scheme_linux.cpp:11:
/tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/lib_base/base/platform/linux/base_linux_glibmm_helper.h:22:7: error: redefinition of ‘class Glib::Variant<long long int>’
   22 | class Variant<Int64Helper> : public VariantBase {
      |       ^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/glibmm-2.68/glibmm/variant.h:1785,
                 from /tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/lib_base/base/platform/linux/base_linux_glibmm_helper.h:11:
/usr/include/glibmm-2.68/glibmm/variant_basictypes.h:735:18: note: previous definition of ‘class Glib::Variant<long long int>’
  735 | class GLIBMM_API Variant<long long> : public VariantBase
      |                  ^~~~~~~~~~~~~~~~~~
/tmp/portage/net-im/telegram-desktop-4.8.4-r2/work/tdesktop-4.8.4-full/Telegram/lib_base/base/platform/linux/base_linux_glibmm_helper.h:66:7: error: redefinition of ‘class Glib::Variant<long long unsigned int>’
   66 | class Variant<UInt64Helper> : public VariantBase {
      |       ^~~~~~~~~~~~~~~~~~~~~
/usr/include/glibmm-2.68/glibmm/variant_basictypes.h:778:18: note: previous definition of ‘class Glib::Variant<long long unsigned int>’
  778 | class GLIBMM_API Variant<unsigned long long> : public VariantBase
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~


Reproducible: Always
Comment 1 yongxiang 2023-09-29 03:57:59 UTC
Created attachment 871693 [details]
build.log
Comment 2 yongxiang 2023-09-29 03:58:12 UTC
Created attachment 871694 [details]
emerge --info
Comment 3 Andrey Volkov 2023-09-30 21:11:14 UTC
Created attachment 871861 [details, diff]
tdesktop-4.8.4-glibmm-2.78.patch

Backport glibmm-2.78 support from upstream PR to telegram-desktop-4.8.4
https://github.com/telegramdesktop/tdesktop/pull/26419

v4.8.5 already contains this
Comment 4 Richard Hering 2023-10-03 14:55:02 UTC
Created attachment 872105 [details]
ebuild for actual version

upgrading the ebuild to 4.10.3 fix this issue too
Comment 5 Nowa Ammerlaan gentoo-dev 2023-10-06 11:00:03 UTC
*** Bug 915164 has been marked as a duplicate of this bug. ***
Comment 6 yongxiang 2023-11-10 21:47:13 UTC
The current version of the package has been dropped.
Should we close the bug?
Comment 7 Esteve Varela Colominas 2023-11-10 22:50:32 UTC
4.8.1 is likely also affected
Comment 8 Larry the Git Cow gentoo-dev 2023-12-11 13:25:52 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7497d83f469b739fcc81775878c5e59c2000e5c8

commit 7497d83f469b739fcc81775878c5e59c2000e5c8
Author:     Esteve Varela Colominas <esteve.varela@gmail.com>
AuthorDate: 2023-12-10 22:30:20 +0000
Commit:     Yixun Lan <dlan@gentoo.org>
CommitDate: 2023-12-11 13:23:32 +0000

    net-im/telegram-desktop: Drop stable
    
    The list of bugs has become untenable, the package is essentially
    unusable, and there's no clear idea of when glibmm will be bumped.
    
    Sorry for the inconveniences...
    
    Bug: https://bugs.gentoo.org/915992
    Closes: https://bugs.gentoo.org/877067
    Closes: https://bugs.gentoo.org/910544
    Closes: https://bugs.gentoo.org/911395
    Closes: https://bugs.gentoo.org/912896
    Closes: https://bugs.gentoo.org/914419
    Closes: https://bugs.gentoo.org/914902
    Closes: https://bugs.gentoo.org/915109
    Closes: https://bugs.gentoo.org/915237
    Closes: https://bugs.gentoo.org/915982
    Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com>
    Signed-off-by: Yixun Lan <dlan@gentoo.org>

 net-im/telegram-desktop/Manifest                   |   1 -
 .../files/tdesktop-4.4.1-fix-dupe-main-decl.patch  |  26 ---
 .../telegram-desktop-4.8.1-r3.ebuild               | 210 ---------------------
 3 files changed, 237 deletions(-)