app-office/texlive-4.8.4-r2.ebuild is missing a src_test(). proposal: add test USE flag, add to src_configure: if use test ; then CMAKE_BUILD_TYPE=Debug mycmakeargs+=( -DTEXSTUDIO_ENABLE_TESTS=ON ) fi and add src_test: src_test() { cd "${BUILD_DIR}" || die QT_QPA_PLATFORM=offscreen ./texstudio --auto-tests } works fine for me, tried on my prefix-guest instance (which is modified to use default texlive2024 from tug.org) and on a standard stable gentoo virtualbox.
Having to build in another configuration kind of sucks, as it means we're not testing the actual production build. I did start patching it out but some of it is in src/texstudio.cpp and would expose debug menus to users :(