: aoss script should use $LIB in preload path
A NOTE has been added to this issue.
======================================================================
<https://bugtrack.alsa-project.org/alsa-bug/view.php?id=1390>
======================================================================
Reported By: ikonst
Assigned To:
======================================================================
Project: ALSA - lib Issue ID: 1390 Category: 0_general Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 09-01-2005 23:15 CEST Last Modified: 09-01-2005 23:53 CEST
======================================================================
Summary: aoss script should use $LIB in preload path
Description:
The $LIB variable (the $ should be escaped with \$ in shell scripts) is substituted by the shared library loader with "lib" in the 32-bit loader and "lib64" in the 64-bit loader (or whatever policy the distro hardcodes into their ld.so). By using $LIB, we ensure that when both x86 and x86-64 libalsa-oss packages are installed, the right one will be chosen for each app.
For example, here's what I put in my aoss script:
LD_PRELOAD=${exec_prefix}/\$LIB/libaoss.so exec "$@"
======================================================================
----------------------------------------------------------------------
rlrevell - 09-01-05 23:50
----------------------------------------------------------------------
We ensure that on all distros, or just yours?
----------------------------------------------------------------------
ikonst - 09-01-05 23:53
----------------------------------------------------------------------
You should just change the 'aoss' script inside your package. The distros will pick it up. All distros have ld.so and each distro can patch their libc to use whatever library dir policy on x86-64 as they wish; fact is, $LIB will be following their policy, whatever it is.
Issue History
Date Modified Username Field Change
======================================================================
09-01-05 23:15 ikonst New Issue 09-01-05 23:50 rlrevell Note Added: 0005999 09-01-05 23:53 ikonst Note Added: 0006000
======================================================================
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf