https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/ Issue: games-strategy/megaglest-3.13.0 fails to compile. Discovered on: amd64 (internal ref: tinderbox)
Created attachment 685659 [details] build.log build log and emerge --info
I observe the problem too - it compiles on one machine and fails on another on the one that works, the interesting difference is this: >>> Preparing source in /var/tmp/portage/games-strategy/megaglest-3.13.0/work/megaglest-3.13.0 ... * Applying megaglest-3.11.1-cmake-lua.patch ... [ ok ] * Working in BUILD_DIR: "/var/tmp/portage/games-strategy/megaglest-3.13.0/work/megaglest-3.13.0_build" * Hardcoded definition(s) removed in CMakeLists.txt: * SET(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Choose build type: None( * Requested wxWidgets: 3.0 * Using wxWidgets: gtk2-unicode-3.0 >>> Source prepared. searching for "gtk2-unicode-3.0" it has this file installed: /usr/lib64/wx/config/gtk2-unicode-3.0 while it is missing on the failing machine on both, there is /usr/lib64/wx/config/gtk3-unicode-3.0-gtk3 but somehow the wxwidgets eclass is not satisfied with it, because it forces gtk2 if gtk3 not specified explicitly so the origin seems to be in megaglest ebuild - while in DEPEND, it requires version 3.0-gtk3 editor? ( x11-libs/wxGTK:3.0-gtk3[X,opengl] ) fribidi? ( dev-libs/fribidi ) model-viewer? ( x11-libs/wxGTK:3.0-gtk3[X] ) later in prepare it sets WX_GTK_VER="3.0" instead of "3.0-gtk3" if use editor || use model-viewer ; then WX_GTK_VER="3.0" setup-wxwidgets fi so it is a simple patch: --- /var/db/repos/gentoo/games-strategy/megaglest/megaglest-3.13.0.ebuild~ 2021-03-02 18:49:26.662946353 +0100 +++ /var/db/repos/gentoo/games-strategy/megaglest/megaglest-3.13.0.ebuild 2021-03-02 18:49:40.515185096 +0100 @@ -69,7 +69,7 @@ cmake_src_prepare if use editor || use model-viewer ; then - WX_GTK_VER="3.0" + WX_GTK_VER="3.0-gtk3" setup-wxwidgets fi } (note that I cannot insert tabs here therefore the above won't apply :-( ) but now there is a question whether this hard version dependency could be avoided, because it obviously works (not just compiles, but both the editor and g3dviewer work) also with GTK2 version ...?