Bug 428983

Summary: SDL_pulseaudio_hack.sh doesn't work if you have more than one architecture
Product: [Fedora] Fedora Reporter: JM <igeorgex>
Component: SDLAssignee: Thomas Woerner <twoerner>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 8CC: zprikryl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-17 14:16:40 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description JM 2008-01-16 16:16:50 UTC
The SDL_pulseaudio_hack.sh in the SDL-1.2.12-5.fc8 RPM doesn't work when you use
more then architecture (e.g. i386 and x86_64), the problem is this line in the
script:

[ -e /usr/lib*/alsa-lib/libasound_module_pcm_pulse.so ] && export
SDL_AUDIODRIVER=esd

This line gets two results for
"/usr/lib*/alsa-lib/libasound_module_pcm_pulse.so" when you install the 32bit
and the 64bit version of the "alsa-plugins-pulseaudio" RPM (for example skype
needs the 32bit alsa-plugins-pulseaudio RPM on a 64bit system) and when you get
more then two results the scripts fails with the message (every single time you
open a shell):

bash: [: /usr/lib64/alsa-lib/libasound_module_pcm_pulse.so: binary operator expected

I changed the line to this:

[ -e /usr/lib64/alsa-lib/libasound_module_pcm_pulse.so -o -e
/usr/lib/alsa-lib/libasound_module_pcm_pulse.so ] && export SDL_AUDIODRIVER=esd

this way it works at least for i386 and x86_64.

Comment 1 JM 2008-01-16 16:23:26 UTC
Btw. I'm not alone with this problem, as you can see here
http://forum.fedoraforum.org/showthread.php?t=176265

Comment 2 Thomas Woerner 2008-01-17 14:16:40 UTC

*** This bug has been marked as a duplicate of 428577 ***