Bug 428577

Summary: SDL's pulseaudio hack not multilib-clean
Product: [Fedora] Fedora Reporter: Michel Lind <michel>
Component: SDLAssignee: Thomas Woerner <twoerner>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: 8CC: igeorgex, zprikryl
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: 1.2.13-1.fc8 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-01-22 15:47:18 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:
Attachments:
Description Flags
Changes to pulseaudio hack scripts none

Description Michel Lind 2008-01-13 18:44:01 UTC
Description of problem:
The SDL RPM installs scripts into /etc/profile.d to set the audiodriver to esd
if pulseaudio is installed, because it currently does not support pulseaudio
directly.

There is a bug in both CSH and Bash scripts, however -- if on a multilib system,
both 32- and 64-bit versions of the ALSA pulseaudio driver are installed, the
Boolean expression does not evaluate properly. On TCSH it fails silently; on
Bash it reports:

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

Version-Release number of selected component (if applicable):
SDL-1.2.12-5.fc8

How reproducible:
Always

Steps to Reproduce:
1. On an x86_64 system, install alsa-plugins-pulseaudio.i386
2. Start a new Bash / TCSH shell
3. printenv | grep SDL
  
Actual results:
With Bash, error result above. printenv reports nothing

Expected results:
No error; printenv reports SDL_AUDIODRIVER=esd

Additional info:
Patch attached.

Comment 1 Michel Lind 2008-01-13 18:45:36 UTC
Created attachment 291509 [details]
Changes to pulseaudio hack scripts

With this patch, the scripts test for /usr/lib/... and /usr/lib64/...
separately and || the result, so that they work when both drivers are installed
on a multilib system.

Comment 2 Thomas Woerner 2008-01-17 14:16:41 UTC
*** Bug 428983 has been marked as a duplicate of this bug. ***

Comment 3 Michel Lind 2008-01-17 14:18:11 UTC

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

Comment 4 Fedora Update System 2008-01-22 15:47:13 UTC
SDL-1.2.13-1.fc8 has been pushed to the Fedora 8 stable repository.  If problems still persist, please make note of it in this bug report.