Hello, I dropped all emul- packages from my system and ut2003 is/was a blocker for this task. During the process I found out, ut2003 does not need emul-linux-x86-compat at all. emul-linux-x86-compat is known for security issues. So I did a rework of all dependecies and would like to share the result. I will apply the patches and the ebuild so far. Reproducible: Always
Created attachment 384278 [details, diff] 0001 bump ebuild to eapi 5 and keyword it This patch is simple. It bumps the eapi of the ebuild such that we can do "||" constructs and add [abi_x86_32(-)] dependencies. I keyword the ebuild because I did not check if we can cleanup the ebuild with those new features of eapi 5.
Created attachment 384280 [details, diff] 0002 rework dependencies This is the biggest patch with the rework of the dependencies. I did an ldd on every ".so / .so.." file in /opt/ut2003/ and subfolders. And I did an strace of the ut2003 executable. I found out that it loads sys-devel/gcc-4.7.3-r1 (/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/32/libstdc++.so.6 -> libstdc++.so.6.0.17) so there is no need for the compat libs. But this patch still have one problem left: It adds >=dev-libs/glib-1.2.10-r5:1[abi_x86_32(-)] >=x11-libs/gtk+-1.2.10-r12:1 to the dependencies. But slot 1 of those libs does not have multilib support yet. On the other hand, those dependencies are needed for the loki updater tools in /opt/ut2003/updater/ only. I do not believe we need the tools anymore, and on gentoo, protage should do the update stuff anyway. I found old forum and bug entries that the loki tools never worked on gentoo if the game has been installed with portage. So I would like to ask the gentoo developers if it is better to drop the installation of files in /opt/ut2003/updater/* from ut2003-data ebuild and drop the dependencies for those tools at all?
Created attachment 384282 [details, diff] 0003 add a workaround for sound needed on most systems today Since the game is 10 years old at least, many people will run in the "no sound" bug. So this patch is off topic (more or less). It adds the dependencies for libsdl and openal 32 bit (usually ut2003 comes with it own libs) and adds an description how to use the system libs instead of the prebuild game libs.
Comment on attachment 384282 [details, diff] 0003 add a workaround for sound needed on most systems today Patch 0003 is the last one for now. So I like to hear some feedback.
Created attachment 384284 [details] ebuild with all patches, but drop loki tools deps This is the ebuild that I use in my overlay for now. It is similar to the result if you apply all patches, but this ebuid drops the dependencies for the loki tools as suggested in comment 2. If we follow this upstream, I recommend to drop the installation from the loki tools at all from ut2003-data.
*** This bug has been marked as a duplicate of bug 522130 ***