Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 665616 - games-strategy/starruler2 -- commercial 4x space game, released as MIT license in July 2018
Summary: games-strategy/starruler2 -- commercial 4x space game, released as MIT licens...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Default Assignee for New Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-09-10 08:08 UTC by Michael Jones
Modified: 2023-09-13 08:18 UTC (History)
3 users (show)

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


Attachments
starruler2-20180926.ebuild (starruler2-20180926.ebuild,909 bytes, text/plain)
2019-11-26 12:54 UTC, hkBst
Details
starruler2-20180926.ebuild (starruler2-20180926.ebuild,1.07 KB, text/plain)
2020-12-16 18:47 UTC, hkBst
Details
starruler2-20180926.ebuild (starruler2-20180926.ebuild,1.07 KB, text/plain)
2020-12-18 14:00 UTC, hkBst
Details
starruler2-20180926.ebuild (starruler2-20180926.ebuild,1.55 KB, text/plain)
2020-12-18 18:48 UTC, hkBst
Details
starruler2-20180926.ebuild (starruler2-20180926.ebuild,1.55 KB, text/plain)
2020-12-18 18:50 UTC, hkBst
Details
starruler2-20180926.ebuild (starruler2-20180926.ebuild,1.54 KB, application/vnd.gentoo.ebuild)
2023-09-13 08:18 UTC, hkBst
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Jones 2018-09-10 08:08:45 UTC
See github page here: https://github.com/BlindMindStudios/StarRuler2-Source

All game assets needed to play are included in the github repository.
Comment 1 hkBst 2019-11-26 12:54:33 UTC
Created attachment 597558 [details]
starruler2-20180926.ebuild

Preliminary ebuild which gets the compile going. Unfortunately there are still many linking errors, like for example:

<artificial>:(.text.unlikely+0x13c): undefined reference to `operator delete(void*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/games-strategy/starruler2-20180926/temp/ccKFOSxH.ltrans31.ltrans.o: in function `std::vector<DesignError, std::allocator<DesignError> >::~vector()':
<artificial>:(.text.unlikely+0x189): undefined reference to `operator delete(void*)'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/games-strategy/starruler2-20180926/temp/ccKFOSxH.ltrans31.ltrans.o:<artificial>:(.text.unlikely+0x1d5): more undefined references to `operator delete(void*)' follow
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/games-strategy/starruler2-20180926/temp/ccKFOSxH.ltrans31.ltrans.o:(.data.rel.ro+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
/usr/lib/gcc/x86_64-pc-linux-gnu/8.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/games-strategy/starruler2-20180926/temp/ccKFOSxH.ltrans31.ltrans.o:(.data.rel.ro+0x10): undefined reference to `vtable for __cxxabiv1::__class_type_info'

Possibly a missing -lstdc++ argument when linking? It seems though that the Makefile does provide this argument.
Comment 2 hkBst 2020-12-16 18:47:35 UTC
Created attachment 678514 [details]
starruler2-20180926.ebuild

Now it fails here on glew even though it is installed:

source/sound/source/CSoundDevice.cpp
source/game/main/references.cpp
source/sound/source/CSoundSource.cpp
source/game/main/tick.cpp
source/game/main/console.cpp
source/game/main/save_load.cpp
source/sound/source/CStreamSound.cpp
In file included from ./source/game/render/gl_framebuffer.h:2,
                 from source/game/main/tick.cpp:15:
./source/game/compat/gl.h:2:10: fatal error: GL/glew.h: No such file or directory
    2 | #include <GL/glew.h>
      |          ^~~~~~~~~~~
compilation terminated.
make: *** [source/linux/Makefile:321: obj/linamd64/main/tick.o] Error 1
make: *** Waiting for unfinished jobs....
source/sound/source/CSSOgg.cpp
source/sound/source/CSSWave.cpp
source/sound/source/IAudioReference.cpp
source/sound/source/CSSWave.cpp: In constructor ‘audio::CSSWave::CSSWave(FILE*, audio::ISoundDevice*)’:
source/sound/source/CSSWave.cpp:10:25: warning: ignoring return value of ‘size_t fread(void*, size_t, size_t, FILE*)’, declared with attribute warn_unused_result [-Wunused-result]
   10 | #define read(v, s) fread(v, 1, s, file)
      |                    ~~~~~^~~~~~~~~~~~~~~
Comment 3 hkBst 2020-12-18 14:00:27 UTC
Created attachment 678736 [details]
starruler2-20180926.ebuild

Finally a working compile (fixed glew dep, and sed errors), no install yet though.
Comment 4 hkBst 2020-12-18 18:48:34 UTC
Created attachment 678751 [details]
starruler2-20180926.ebuild

Now with installation into /opt. I managed to start the game, but did not try anything else yet.
Comment 5 hkBst 2020-12-18 18:50:32 UTC
Created attachment 678754 [details]
starruler2-20180926.ebuild

Marking old ebuild obsolete
Comment 6 hkBst 2023-09-13 07:19:18 UTC
The ebuild needs an EAPI bump, since apparently EAPI 7 is no longer supported.
Comment 7 hkBst 2023-09-13 08:18:13 UTC
Created attachment 870473 [details]
starruler2-20180926.ebuild

update EAPI to 8 and remove eutils eclass since it seems to no longer be needed.