Compile fails looking for Wayland even without the flag https://pastebin.com/FvEJR27j
Also fails for me. Different way. webkit pulls in wayland, so I set -webkit too. dilbert ~ # emerge -pqv '=net-im/telegram-desktop-4.15.2::gentoo' [ebuild R ] net-im/telegram-desktop-4.15.2 USE="X dbus enchant fonts qt6 qt6-imageformats screencast -wayland -webkit*" dilbert ~ # emerge --info '=net-im/telegram-desktop-4.15.2::gentoo' Portage 3.0.63 (python 3.11.8-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-13, glibc-2.39-r2, 6.8.2-gentoo x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.8.2-gentoo-x86_64-Intel-R-_Core-TM-_i7-8750H_CPU_@_2.20GHz-with-glibc2.39 KiB Mem: 32715092 total, 3964352 free KiB Swap: 32767996 total, 32767996 free Timestamp of repository gentoo: Tue, 02 Apr 2024 19:19:11 +0000 Head commit of repository gentoo: 52b4eb1da10ce4493be99bb8e5f6363b4c4b42bc Timestamp of repository brother-overlay: Fri, 29 Mar 2024 20:33:31 +0000 Head commit of repository brother-overlay: f2c2fc010da56f5eba7614a421801361ed2c3c7a Timestamp of repository guru: Tue, 02 Apr 2024 16:49:51 +0000 Head commit of repository guru: fc9f49fd3e9615ea1b5e034f06e7a4a42f6a2f4a sh bash 5.2_p26 ld GNU ld (Gentoo 2.42 p3) 2.42.0 app-misc/pax-utils: 1.3.7::gentoo app-shells/bash: 5.2_p26::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.29.0::gentoo dev-build/libtool: 2.4.7-r4::gentoo dev-build/make: 4.4.1-r1::gentoo dev-build/meson: 1.4.0-r1::gentoo dev-java/java-config: 2.3.3-r1::gentoo dev-lang/perl: 5.38.2-r2::gentoo dev-lang/python: 2.7.18_p16-r1::gentoo, 3.10.14::gentoo, 3.11.8_p1::gentoo, 3.12.2_p1::gentoo dev-lang/rust: 1.72.0-r1::gentoo dev-lang/rust-bin: 1.76.0::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/openrc: 0.54::gentoo sys-apps/sandbox: 2.38::gentoo sys-devel/binutils: 2.41-r5::gentoo, 2.42-r1::gentoo sys-devel/binutils-config: 5.5::gentoo sys-devel/clang: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.2::gentoo sys-devel/gcc: 13.2.1_p20240210::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 15.0.7::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.2::gentoo sys-devel/llvm: 15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.2::gentoo sys-kernel/linux-headers: 6.8-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.39-r2::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 volatile: False brother-overlay location: /var/db/repos/brother-overlay sync-type: git sync-uri: https://github.com/gentoo-mirror/brother-overlay.git masters: gentoo volatile: False guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo volatile: False ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe -march=native" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/brother/scanner/brscan4/brsanenetdevice4.cfg /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.9/conf" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -pipe -march=native" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--keep-going y --with-bdeps y --backtrack 100" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE GOBIN GOPATH PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR XDG_STATE_HOME" FCFLAGS="-O2 -pipe -march=native" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live candy clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FFLAGS="-O2 -pipe -march=native" GENTOO_MIRRORS="rsync://129.97.134.71/gentoo-distfiles http://mirror.clarkson.edu/gentoo/ ftp://129.97.134.71/gentoo-distfiles/ http://mirrors.mit.edu/gentoo-distfiles/ http://128.153.145.19/gentoo/" LANG="en_US.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LEX="flex" MAKEOPTS="-j5 -l5" PKGDIR="/var/cache/binpkgs" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git" PORTAGE_TMPDIR="/var/tmp" PYTHONPATH="/usr/local/lib/python3.11/site-packages/" SHELL="/bin/bash" USE="X a52 aac acl acpi adns aio alsa alsa-plugin amd64 appindicator blake2 bluetooth bluray bpf branding bs2b btpclient bzip2 cairo calf capstone cdda cdp cdr cet chromecast converter corefonts cover cpudetection cron crypt cups curl custom-modes cxx dav1d dbus dia dri dri3 drm dts dv dvb dvd dvdr echo-cancel edp elogind enchant encode equalizer exif extra faac faad fdk fdp fdt ffmpeg ffmpegthumbnailer fingerprint fingerprints flac flashrom fontconfig fontforge freetype fuse gbm gdal gdbm geoclue geolocation geos gif gimp gles2 glib gpg gpm graph gsettings gstreamer gtk gtk3 gui harfbuzz hddtemp hdf5 http http2 iconv icu imagequant introspection io-uring ipp_autosetup ipv6 jack jemalloc jpeg json keybinder ladspa lame lastfm lcms libcanberra libdrm libmpeg2 libmpv libnotify libretro libsamplerate libssh2 libtirpc libuvc libvisual lm_sensors lto lv2 lvm lz4 lzma lzo mad matroska md5sum mda-lv2 metadata mng mp3 mp4 mpeg mtp multilib ncat ncurses ndiff nfs nfsv41 nftables nls notify nping nvenc nvme obex offensive ogg openal opengl openmp opus pam pango pcap pcre pcre32 pdf pgo pipewire pkcs11 plugins png policykit positioning postproc ppds projectm pulseaudio pvr python qml qt5 qt6 qt6-imageformats qtaudio quick rav1e readline realtime rtc rtmp rubberband screencast sdl sdl-image seccomp sensors sftp slirp sna snappy sndfile snmp sound sox spandsp spell spice spirv split-usr sqlite ssh ssl startup-notification svg svg2 svt-av1 system-llvm system-png szip taglib test-rust theora threads tiff tk tkip tools truetype twolame udev udisks uefi unicode update_drivedb upnp upower usb usbredir uxa v4l v4lutils vaapi vde vdpau vdr vim vim-syntax virgl visio vmaf vorbis vpx vtk vulkan webchannel webengine webkit webp wg-quick widgets wifi wxwidgets x264 x265 xa xattr xcb xft xinerama xml xrandr xv xvid zamaudio zenmap zeroconf zimg zink zlib zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="roccat_savu libinput joystick" KERNEL="linux" L10N="en en-US" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11 python3_10" RUBY_TARGETS="ruby31" SANE_BACKENDS="net" VIDEO_CARDS="intel i965 nvidia iris nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" Unset: ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS ================================================================= Package Settings ================================================================= net-im/telegram-desktop-4.15.2::gentoo was built with the following: USE="X dbus enchant fonts qt6 qt6-imageformats screencast webkit -wayland" ABI_X86="(64)" dilbert ~ #
Created attachment 889289 [details] build log build log
I hit the same issue. net-im/telegram-desktop-4.16.8:0 compiles fine with dev-qt*:6/6.6.3 and 5/5.15.3 but fails with the latest dev-qt/qt*:6/6.7.0
Created attachment 891075 [details] net-im/telegram-desktop-4.16.8:0 build.log
Created attachment 891076 [details] emerge --info
@Tiago: Please don't use pastebin in the future, as your paste has expired and I can't read it anymore. Upload it to the bug tracker instead.
@Gary: Those warnings are expected (the find_package call isn't QUIET), but the compilation error is weird indeed.
Apparently there's two version gates that force the utilization of QWaylandApplication when using Qt version 6.5 or higher: https://github.com/desktop-app/lib_base/blob/f69758da1906b204c156ea6ad254eacd61210a42/base/platform/linux/base_linux_xdg_activation_token.cpp#L18 https://github.com/desktop-app/lib_ui/blob/aa39793a91f1186879c15c214a2671d78eab5085/ui/platform/linux/ui_utility_linux.cpp#L416 It seems that, at least officially, it's no longer possible to build USE="qt6 -wayland". Though it would be feasible to patch around this, I wonder what upstream thinks of it.
Relevant upstream commit: https://github.com/desktop-app/cmake_helpers/commit/a428df5440e76a726abc30924766ac7da0cb381c
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73de99fd9eb366b1c8e04bfd97864fec8a38fa58 commit 73de99fd9eb366b1c8e04bfd97864fec8a38fa58 Author: Esteve Varela Colominas <esteve.varela@gmail.com> AuthorDate: 2024-05-11 14:16:12 +0000 Commit: Yixun Lan <dlan@gentoo.org> CommitDate: 2024-05-14 01:48:26 +0000 net-im/telegram-desktop: Drop bugged I'm not backporting the fixes Closes: https://bugs.gentoo.org/928451 Closes: https://bugs.gentoo.org/931201 Closes: https://github.com/gentoo/gentoo/pull/36641 Thanks-to: Tiago Thanks-to: Agostino Sarubbo Signed-off-by: Esteve Varela Colominas <esteve.varela@gmail.com> Signed-off-by: Yixun Lan <dlan@gentoo.org> net-im/telegram-desktop/Manifest | 2 - .../telegram-desktop-4.15.2-r1.ebuild | 237 -------------------- .../telegram-desktop-4.16.8.ebuild | 246 --------------------- 3 files changed, 485 deletions(-)