Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 320007 - Wrong module.lst path in media-libs/allegro-4.4.1.1
Summary: Wrong module.lst path in media-libs/allegro-4.4.1.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: All Linux
: Normal minor with 1 vote (vote)
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-16 16:50 UTC by Petter Urkedal
Modified: 2011-09-03 15:51 UTC (History)
2 users (show)

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


Attachments
Missing alleg-jack.so in modules.lst. (allegro-4.4.1.1-modules_lst.patch,301 bytes, patch)
2010-05-16 17:28 UTC, Samuli Suominen (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Petter Urkedal 2010-05-16 16:50:41 UTC
Allegro applications gives no sound, and allegro-setup does not show any sound modules.  It appears that it looks for its "modules.lst" file under the wrong path, see below.  Moreover the file contains the entry "alleg-jackdigi.so" whereas the actual name of the shared object is "alleg-jack.so".  The sound works with jackd after fixing these issues.


Reproducible: Always

Steps to Reproduce:
1. strace allegro-setup 2>allegro.strace
2. Try to setup the sound.
3. Inspect allegro.strace.

Actual Results:  
Ad 2: No sound modules are seen.
Ad 3: The reason can be seen from the line
open("/usr/lib64/allegro/4.4.1/4.4.1/modules.lst", O_RDONLY) = -1 ENOENT


Expected Results:  
Ad 3:
open("/usr/lib64/allegro/4.4.1/modules.lst", O_RDONLY) = X
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2010-05-16 17:28:50 UTC
Created attachment 231699 [details, diff]
Missing alleg-jack.so in modules.lst.

And I can confirm the path issue, but I'm a bit unsure what's the best way to fix the code in "src/unix/umodules.c"
Comment 2 cx405 2011-03-03 02:43:10 UTC
I confirm this.
I tried to compile and run allegro-based game (paintown) and there is no sound. Allegro-setup also returns no devices, although I explicitly set the USE alsa.
Then I just did:

#cd /usr/lib64/allegro/4.4.1/
#ln -s . 4.4.1

ie loop symlink, and basta - allegro-setup showed ALSA device and paintown had the sfx.

I cannot write ebuild or patches yet, sorry. But I hope this helps.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2011-09-03 10:36:13 UTC
http://alleg.sourceforge.net/stabledocs/en/changes.html

Changes from 4.4.1.1 to 4.4.2 (May 2011)

Fix module loading on Unix (Bernhard Rosenkraenzer). 




Can this bug be closed or... ?
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2011-09-03 15:51:31 UTC
fixed in 4.4.2