Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 522246 - games-fps/ut2003 rework dependecies, drop emul-linux-x86-compat at least for security reasons
Summary: games-fps/ut2003 rework dependecies, drop emul-linux-x86-compat at least for ...
Status: RESOLVED DUPLICATE of bug 522130
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-09-06 08:08 UTC by Jan Buecken
Modified: 2014-09-06 11:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
0001 bump ebuild to eapi 5 and keyword it (0001_ut2003_ebuild_bump_to_eapi_5.patch,614 bytes, patch)
2014-09-06 08:23 UTC, Jan Buecken
Details | Diff
0002 rework dependencies (0002_ut2003_ebuild_rework_dependecies.patch,1.47 KB, patch)
2014-09-06 08:42 UTC, Jan Buecken
Details | Diff
0003 add a workaround for sound needed on most systems today (0003_ut2003_ebuild_add_sound_workaround_hint_and_deps.patch,1.43 KB, patch)
2014-09-06 08:49 UTC, Jan Buecken
Details | Diff
ebuild with all patches, but drop loki tools deps (ut2003-2225-r9005.ebuild,4.03 KB, text/plain)
2014-09-06 09:01 UTC, Jan Buecken
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Buecken 2014-09-06 08:08:30 UTC
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
Comment 1 Jan Buecken 2014-09-06 08:23:51 UTC
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.
Comment 2 Jan Buecken 2014-09-06 08:42:22 UTC
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?
Comment 3 Jan Buecken 2014-09-06 08:49:52 UTC
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 4 Jan Buecken 2014-09-06 08:52:13 UTC
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.
Comment 5 Jan Buecken 2014-09-06 09:01:49 UTC
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.
Comment 6 Ulrich Müller gentoo-dev 2014-09-06 11:00:04 UTC

*** This bug has been marked as a duplicate of bug 522130 ***