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

Bug 372413

Summary: Improved ebuild for games-action/transcend, also fixing sound on amd64
Product: Gentoo Linux Reporter: the_mgt <themgt>
Component: [OLD] GamesAssignee: Gentoo Games <games>
Status: RESOLVED FIXED    
Severity: enhancement CC: themgt
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=433381
Whiteboard: EBUILD
Package list:
Runtime testing required: ---
Attachments: The new improved ebuild
The patch for the portaudio version shipped with transcend tarball, from bugs.debian.org

Description the_mgt 2011-06-20 23:25:44 UTC
Created attachment 277641 [details]
The new improved ebuild

Transcend installs fine but has no sound on amd64. Since the author thinks it is essential for the game to have good stereo speakers or a headset, sound is important. I stumbled upon a solution, and because the ebuild lacks some features and misses a "die", I have improved it while adding the patch for audio.

New features:
1. Sound on amd64 (should work on x86, too) (debian bug #433381)
2. Simplified portaudio build, only builds libportaudio.a
3. Added "die" to that build, was missing because "make" would error out
4. Adhers to CFLAGS now
5. Adds desktop file
6. Bumped EAPI to 3
Comment 1 the_mgt 2011-06-20 23:32:43 UTC
Created attachment 277643 [details, diff]
The patch for the portaudio version shipped with transcend tarball, from bugs.debian.org

This patch is unmodified and taken directly from the URL attached to this bug. Debian applied it against the extranel portaudio deb and it seems that upstream fixed it, too.

I'd rather fix it with in-tree portaudio, but my C-fu is not good enough. If somebody finds a way, I would like to use it for my yet to be uploaded games-simulation/Cultivation (another gem by Jason Rohrer) ebuild, too.
Also I was not sure on how to get PABLIO installed or even build. In theory, it should be part of the in-tree portaudio, but isn't.
Comment 2 Christopher Howard 2012-12-14 06:03:39 UTC
I just want to affirm:

1) The existing ebuild in Portage does compile but does not provide sound under AMD64. More accurately: the game emits a loud, screeching static out of the speaker that is highly painful.

2) The ebuild provided above worked fine for me (once I figured out where to place the patch file) providing the correct game sound.

It seems quite sensible to fix this issue, seeing as dynamic music generation is one of the two key features of the game.
Comment 3 Mr. Bones. (RETIRED) gentoo-dev 2016-04-27 03:07:35 UTC
added the debian patch to use the system portaudio library.