Created attachment 328454 [details]
gens amd64 and menu entry patch
I have successfully modified the gens ebuild to build a 32-bit binary on amd64. It is based on portage gens with changed taken from the v-fox overlay.
Also see bug 354411.
I also added a menu entry, make_desktop_entry at the bottom (which should be applied even if my 64 bit changes are rejected)
@games, how sounds this for you?
(In reply to comment #1)
> @games, how sounds this for you?
No response, cc back us if you need a double-check
amd64 compilation recently broke again. configure complains about
'conftest.c(12): catastrophic error: cannot open source file "gtk/gtk.h"'
I have no idea why or how to fix it, though...
What worked for me was commenting out the line with multilib_toolchain_setup and appending -m32 to CFLAGS. A bit ugly, but it makes the error go away.
(In reply to Michał Ziąbkowski from comment #4)
> What worked for me was commenting out the line with multilib_toolchain_setup
> and appending -m32 to CFLAGS. A bit ugly, but it makes the error go away.
That's roughly what multilib_toolchain_setup is doing, too. I tried your way, but unfortunately it bails out aswell:
checking for GTK+ - version >= 2.4.0...
*** 'pkg-config --modversion gtk+-2.0' returned 2.24.25, but GTK+ (2.24.23)
*** was found! If pkg-config was correct, then it is best
*** to remove the old version of GTK+. You may also be able to fix the error
*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing
*** /etc/ld.so.conf. Make sure you have run ldconfig if that is
*** required on your system.
*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH
*** to point to the correct configuration files
configure: error: *** GTK+ version 2.4.0 not found!
Created attachment 438820 [details]
Created attachment 438822 [details]
Created attachment 445426 [details]
Here is cronolio's ebuild updated with pax-markings to make it work on my hardened system.
Works pretty fine for me.
At this point I would actually suggest to deprecate gens in favor of gens-gs, which works fine on amd64. There are some overlays which carry it.
I dunno...I'm not really in favor of deprecating stuff just because it appears in an overlay.
[master ad515498b9d9] games-emulation/gens: Drop games.eclass, add amd64 support (#441876)
4 files changed, 54 insertions(+), 6 deletions(-)
create mode 100644 games-emulation/gens/gens-2.15.5-r1.ebuild
*** Bug 624358 has been marked as a duplicate of this bug. ***