Created attachment 904897 [details] build log Looking at build log, it reads -- building for Qt 5 confirmed also by ldd, and by the fact that installing dev-libs/quazip[-qt5,qt6] the build fails. emerge --info: Portage 3.0.66.1 (python 3.12.7-final-0, default/linux/amd64/23.0, gcc-14, glibc-2.40-r4, 6.11.1-gentoo x86_64) ================================================================= System uname: Linux-6.11.1-gentoo-x86_64-AMD_Ryzen_9_5950X_16-Core_Processor-with-glibc2.40 KiB Mem: 65760808 total, 51177036 free KiB Swap: 100663292 total, 100663292 free Timestamp of repository gentoo: Fri, 04 Oct 2024 07:33:27 +0000 Head commit of repository gentoo: 9b5ba2094095ed38fb62190d6c9e75c3ca535649 sh bash 5.2_p37 ld GNU ld (Gentoo 2.43 p2) 2.43.1 app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo dev-build/automake: 1.17-r1::gentoo dev-build/cmake: 3.30.4::gentoo dev-build/libtool: 2.5.3::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.5.2::gentoo dev-java/java-config: 2.3.4::gentoo dev-lang/perl: 5.40.0::gentoo dev-lang/python: 3.12.7_p1::gentoo, 3.13.0_rc3::gentoo dev-lang/rust: 1.81.0::gentoo sys-apps/baselayout: 2.15::gentoo sys-apps/openrc: 0.55.1::gentoo sys-apps/sandbox: 2.39::gentoo sys-devel/binutils: 2.43-r1::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/clang: 18.1.8::gentoo, 19.1.1::gentoo sys-devel/gcc: 14.2.1_p20240921::gentoo sys-devel/gcc-config: 2.11::gentoo sys-devel/lld: 18.1.8::gentoo, 19.1.1::gentoo sys-devel/llvm: 18.1.8-r4::gentoo, 19.1.1::gentoo sys-kernel/linux-headers: 6.10::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r4::gentoo Repositories: gentoo location: /var/db/repos/gentoo sync-type: git sync-uri: https://github.com/gentoo-mirror/gentoo.git priority: -1000 volatile: False kernelpanic location: /var/db/repos/kernelpanic masters: gentoo priority: 0 volatile: False Binary Repositories: gentoobinhost priority: 1 sync-uri: https://gentoo.mirror.garr.it/releases/amd64/binpackages/23.0/x86-64-v3 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -mtune=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/bind" 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/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-march=native -mtune=native -O2 -pipe" DISTDIR="/var/cache/distfiles" 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="-march=native -mtune=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live clean-logs compress-build-logs config-protect-if-modified distlocks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch parallel-install pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log strict strict-keepdir unknown-features-warn unmerge-orphans userfetch userpriv usersandbox usersync warn-on-large-env xattr" FFLAGS="-march=native -mtune=native -O2 -pipe" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="it_IT.UTF-8" LDFLAGS="-fuse-ld=mold -Wl,-O2 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,x86-64-v3" LEX="flex" MAKEOPTS="-j32 -l33" 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" RUSTFLAGS="-C target-cpu=native -C opt-level=3 -C link-args=-fuse-ld=mold -C link-args=-Wl,-O2 -C link-args=-Wl,--as-needed -C link-args=-Wl,-z,pack-relative-relocs -C link-args=-Wl,-z,x86-64-v3" SHELL="/bin/bash" USE="X acl acpi alsa amd64 amr ao archive avif bluray boost branding brotli bzip2 cairo caps cdda cet clang crypt cups curl dbus djvu drm dvb dvd egl elogind encode eps eselect-ldso exif fdk ffmpeg fftw flac fontconfig fortran fribidi gdbm gif gimp gles2 gmp gsm gtk harfbuzz heif hwaccel iconv icu imlib inotify ipv6 jbig jemalloc jit jpeg jpeg2k jpegxl lapack latex lcms libass libproxy libsamplerate libtirpc llvm lto lz4 lzip lzma lzo mng mp3 multilib natspec ncurses nls offensive ogg openal opencl opencv openexr opengl openmp openssl opus pam pango pcre pdf pipewire png policykit postproc postscript pulseaudio raw readline rubberband rustfmt seccomp smp sndfile sound sox speex spell ssl svg tbb test-rust theora threads tiff truetype udev udisks unicode usb v4l vaapi vdpau vidstab vim-syntax vorbis vpx vulkan wavpack wayland webp wmf x264 x265 xattr xcb xdg xetex xml xpm xv xvid zeroconf zip 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 sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" 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" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput wacom" KERNEL="linux" L10N="it en" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LLVM_TARGETS="AMDGPU" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" QEMU_SOFTMMU_TARGETS="aarch64 arm x86_64" QEMU_USER_TARGETS="aarch64 arm x86_64" RUBY_TARGETS="ruby33" VIDEO_CARDS="amdgpu radeonsi radeon" 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, EMERGE_DEFAULT_OPTS, 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, PYTHONPATH, RANLIB, READELF, SIZE, STRINGS, STRIP, YACC, YFLAGS
ftr texstudio is (unfortunately) using Qt's recommended method[1] which does not care if the ebuild requests a specific version and will fallback to Qt5 if anything went wrong. It's supposed to try Qt6 first but I wonder sometimes if it's random, for me it seems to use Qt6 even if Qt5 is present though. In this scenario, the ebuild setting -DQT_VERSION_MAJOR=6 does nothing given find_package(QT NAMES Qt6 Qt5 ...) will overwrite it. Kinda ideal would be for upstream to use QT_VERSION_MAJOR if it's already set before trying automagic, but as a quick hack could delete the entire "find_package(QT NAMES..." line to enforce the ebuild's. Not to say it will necessarily build for you if Qt6 didn't work for some reason, but at least it'll abort and hopefully say why. [1] https://doc.qt.io/qt-6/cmake-qt5-and-qt6-compatibility.html#supporting-older-qt-5-versions
(In reply to Ionen Wolkens from comment #1) > ftr texstudio is (unfortunately) using Qt's recommended method[1] which does > not care if the ebuild requests a specific version and will fallback to Qt5 > if anything went wrong. It's supposed to try Qt6 first but I wonder > sometimes if it's random, for me it seems to use Qt6 even if Qt5 is present > though. > > In this scenario, the ebuild setting -DQT_VERSION_MAJOR=6 does nothing given > find_package(QT NAMES Qt6 Qt5 ...) will overwrite it. > > Kinda ideal would be for upstream to use QT_VERSION_MAJOR if it's already > set before trying automagic, but as a quick hack could delete the entire > "find_package(QT NAMES..." line to enforce the ebuild's. > It didn't work for me, it still built dor Qt5 > Not to say it will necessarily build for you if Qt6 didn't work for some > reason, but at least it'll abort and hopefully say why. > > [1] > https://doc.qt.io/qt-6/cmake-qt5-and-qt6-compatibility.html#supporting-older- > qt-5-versions I was able to build against Qt6 by removing Qt5 from find_package(QT NAMES Qt6 Qt5 ...) a patch will follow.
Created attachment 904899 [details, diff] force Qt6 build
Odd, wonder if there's something looking for Qt *before* that statement and it may be what found Qt5? Otherwise it'd be impossible if the line was removed without something else to overwrite the ebuild's. Dropping "Qt5" would force it to look again and overwrite with that though.
(In reply to Ionen Wolkens from comment #4) > Odd, wonder if there's something looking for Qt *before* that statement and > it may be what found Qt5? Otherwise it'd be impossible if the line was > removed without something else to overwrite the ebuild's. > > Dropping "Qt5" would force it to look again and overwrite with that though. ..but I really don't see anything, are you really sure you had removed the line?
(In reply to Ionen Wolkens from comment #5) > (In reply to Ionen Wolkens from comment #4) > > Odd, wonder if there's something looking for Qt *before* that statement and > > it may be what found Qt5? Otherwise it'd be impossible if the line was > > removed without something else to overwrite the ebuild's. > > > > Dropping "Qt5" would force it to look again and overwrite with that though. > > ..but I really don't see anything, are you really sure you had removed the > line? Well, I was sure when I wrote that, now not so much... I'm not able to reproduce it. And removing the line effectively creates a Qt6 build.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7ee697a31ec4b8d90421e3aafd6bc9649675633 commit e7ee697a31ec4b8d90421e3aafd6bc9649675633 Author: Florian Schmaus <flow@gentoo.org> AuthorDate: 2024-10-04 20:31:17 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2024-10-04 20:32:16 +0000 app-office/texstudio: disable qt5 automagic Closes: https://bugs.gentoo.org/940747 Signed-off-by: Florian Schmaus <flow@gentoo.org> .../texstudio/{texstudio-4.8.4.ebuild => texstudio-4.8.4-r1.ebuild} | 3 +++ 1 file changed, 3 insertions(+)