Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 436140

Summary: games-action/descent3 - updated ebuild to support installation from GOG package
Product: Gentoo Linux Reporter: Jared B. <nitro>
Component: Current packagesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: enhancement CC: esigra, pacho, sam
Priority: Normal Keywords: EBUILD, PMASKED
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: games-action/descent3-1.4.0b-r3.ebuild
games-action/descent3-1.4.0b-r4.ebuild

Description Jared B. 2012-09-24 22:53:39 UTC
Attached is an updated version of the in-tree descent3 ebuild that supports installing from the Good Old Games package in addition to the original (and extremely difficult to find) Loki CD-ROM version.

Few notes:

* It uses USE=cdinstall to determine whether to install from CD or GOG package.  cdinstall is enabled by default, so CD is the default installation method.

* The GOG package does not include all data necessary for the Linux version to work.  The missing files can be downloaded in a bundle from here:
http://www.descentvalhalla.com/d3/downloads/utilities.aspx

with detailed instructions available here:
http://www.descentvalhalla.com/d3/help/linux_guide.aspx

This ebuild automates that process.

* I also performed some other cleanup of the ebuild, such as converting to EAPI=4, moving all unpacking operations to the src_unpack() phase, and fixing TEXTREL problem pointed out in bug 429278.

* I should point out that I have not test this with the CD version, which I don't have (...obviously  :-)).  Everything *should* still work if the CD version is used, but it'd be a good idea to have someone test this to confirm, if at all possible.

Hope this meets with your approval.  If you have any further suggestions for improvement, just let me know.

Reproducible: Always
Comment 1 Jared B. 2012-09-24 22:54:30 UTC
Created attachment 324890 [details]
games-action/descent3-1.4.0b-r3.ebuild
Comment 2 James Le Cuirot gentoo-dev 2017-03-04 14:57:55 UTC
Unfortunately that site has now died. Before I found this page, I was trying with a tarball of the executables hosted elsewhere though I was dubious whether that would really be allowed in Gentoo. In any case, all I get is a black screen. If I try the descent3-demo ebuild as it stands now, it initially fails without making /opt/descent3-demo writable and then all I get is a black window. Does the game still work for you?
Comment 3 James Le Cuirot gentoo-dev 2017-04-29 19:40:00 UTC
(In reply to James Le Cuirot from comment #2)
> Unfortunately that site has now died. Before I found this page, I was trying
> with a tarball of the executables hosted elsewhere though I was dubious
> whether that would really be allowed in Gentoo. In any case, all I get is a
> black screen. If I try the descent3-demo ebuild as it stands now, it
> initially fails without making /opt/descent3-demo writable and then all I
> get is a black window. Does the game still work for you?

Turns out it was trying to use GLide because I have media-libs/openglide installed. If I force OpenGL with -G then it works, at least with the demo, which is all I'm trying for now. I'm going to commit an update to the demo ebuild with this fix and others.
Comment 4 Jared B. 2017-04-29 22:39:23 UTC
Hi, James.  I'm sorry, I must've missed your last question.  I just tested, and yes, it does still work for me, with a couple differences:

* I had to update the ebuild to use the new 32-bit ABI format rather than the old emul packages
* As you pointed out, the support files necessary to make the GOG package work under Linux are no longer there.  I had a copy backed up locally, so I put that on my colo server and changed SRC_URI to point to it.

I think with just those to changes, everything's working.  I'll attach the updated ebuild, though I'm sure there are other things that should be cleaned up in it as well - I haven't really touched this for a few years, so I'm sure standards have changed since then.  If you're interested in working towards getting this in the tree, let me know and I'll be happy to assist with whatever.

Thanks.
Comment 5 Jared B. 2017-04-29 22:40:02 UTC
Created attachment 471302 [details]
games-action/descent3-1.4.0b-r4.ebuild
Comment 6 Pacho Ramos gentoo-dev 2018-02-26 16:46:56 UTC
ebuild should not use games.eclass , thanks
Comment 8 James Le Cuirot gentoo-dev 2023-06-25 09:51:55 UTC
Sorry for kinda dropping this, although I still doubt we could legally include it anyway. The demo is in a pretty sorry state now, and I suspect the full version wouldn't be any better. If you're using PipeWire, which we now encourage, there is no way to get the sound working. It doesn't display properly under Wayland unless you run it under gamescope. Most importantly though, it freezes as soon as you hit any keyboard key. I first noticed the latter at least a year ago, so it doesn't look like the situation is going to change. I'm therefore going to last-rite both packages. At least we have Overload now, and that has a native port too.
Comment 9 Larry the Git Cow gentoo-dev 2023-06-25 09:52:13 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7705e35ba3051ce7cb808ad4001ed20cefd95d80

commit 7705e35ba3051ce7cb808ad4001ed20cefd95d80
Author:     James Le Cuirot <chewi@gentoo.org>
AuthorDate: 2023-06-25 09:50:38 +0000
Commit:     James Le Cuirot <chewi@gentoo.org>
CommitDate: 2023-06-25 09:50:38 +0000

    profiles: Last-rite games-action/descent3 and games-action/descent3-demo
    
    Impossible to legally obtain the native full game now. It freezes on
    keyboard input, is incompatible with PipeWire, and requires gamescope to
    display under Wayland. In short, it's a lost cause. Removal in 30 days.
    
    Bug: https://bugs.gentoo.org/436140
    Signed-off-by: James Le Cuirot <chewi@gentoo.org>

 profiles/package.mask | 7 +++++++
 1 file changed, 7 insertions(+)
Comment 10 James Le Cuirot gentoo-dev 2023-06-25 13:11:12 UTC
I've been made aware of a modern SDL2-based port by icculus, but it is only available from Steam.
Comment 11 Larry the Git Cow gentoo-dev 2023-08-12 12:44:12 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e182da092d1c0fd0c09c02a55b86822490b88966

commit e182da092d1c0fd0c09c02a55b86822490b88966
Author:     Jakov Smolić <jsmolic@gentoo.org>
AuthorDate: 2023-08-12 12:39:57 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2023-08-12 12:42:28 +0000

    games-action/descent3: treeclean
    
    Closes: https://bugs.gentoo.org/436140
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 games-action/descent3/Manifest                  |   2 -
 games-action/descent3/descent3-1.4.0b-r3.ebuild | 103 ------------------------
 games-action/descent3/metadata.xml              |  11 ---
 profiles/arch/amd64/no-multilib/package.mask    |   1 -
 profiles/features/musl/package.mask             |   1 -
 profiles/package.mask                           |   7 --
 6 files changed, 125 deletions(-)