From: bugtrack@alsa-project.org Subject: [ALSA - lib 0001390]: aoss script should use $LIB in preload path Date: Thu, 1 Sep 2005 23:15:47 +0200 Message-ID: <9a18280a9278b8a850fb46993cf79f66@bugtrack.alsa-project.org> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Return-path: Received: from bugtrack.alsa-project.org (gate.perex.cz [82.113.61.162]) by alsa.jcu.cz (ALSA's E-mail Delivery System) with ESMTP id BCF621BA for ; Thu, 1 Sep 2005 23:15:47 +0200 (MEST) Sender: alsa-devel-admin@lists.sourceforge.net Errors-To: alsa-devel-admin@lists.sourceforge.net List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org The following issue has been SUBMITTED. ====================================================================== ====================================================================== 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:15 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 "$@" ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 09-01-05 23:15 ikonst New Issue ====================================================================== ------------------------------------------------------- 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