Skip to contentSkip to conversation

Debian alsa-lib patches

PATCH In review Jordi Mallach 2 participants 7 messages May 15, 2013 – May 16, 2013

lore
Share & tools
lore
#0 lore raw

As previously discussed, I'm posting all Debian patches against alsa-oss that were pending upstreaming.

Thanks,
Jordi

[PATCH 1/3] Fix path to libaoss.so.
[PATCH 2/3] Show a warning if the alsa wrapper failed. [PATCH 3/3] Add AM_MAINTAINER_MODE([enable]) to configure.in.

#1 lore raw

PATCH 1/3 Fix path to libaoss.so.

Fix path to libaoss.so using ${libdir} instead of ${exec_prefix}. ${libdir} has the value given at configure time and works with Debian's Multiarch implementation.

---
 alsa/aoss.in |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
alsa/aoss.in +2 -2
index c551431..d8e1d6d 100644
@@ -6,8 +6,8 @@
 
 if [ -d /proc/asound ]; then
   prefix=@prefix@
-  exec_prefix=@exec_prefix@
-  LD_PRELOAD=${exec_prefix}/\$LIB/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD} exec "$@"
+  libdir=@libdir@
+  LD_PRELOAD=${libdir}/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD} exec "$@"
 else
   exec "$@"
 fi
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 2/3 Show a warning if the alsa wrapper failed.

In reply to Jordi Mallach

If /proc/asound is not found, throw a warning and continue without any wrapping.

---
 alsa/aoss.in |    1 +
 1 file changed, 1 insertion(+)
alsa/aoss.in +1 -0
index d8e1d6d..564eed9 100644
@@ -9,6 +9,7 @@ if [ -d /proc/asound ]; then
   libdir=@libdir@
   LD_PRELOAD=${libdir}/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD} exec "$@"
 else
+  echo "Warning: /proc/asound not found. Running without ALSA wrapper."
   exec "$@"
 fi
 exit 1
Signature · 1 line
1.7.10.4
#3 lore raw

Re: [PATCH 2/3] Show a warning if the alsa wrapper failed.

At Wed, 15 May 2013 18:58:06 +0200,

Quoted 3 lines · Jordi Mallach

If /proc/asound is not found, throw a warning and continue without any wrapping.

The purpose of aoss is to make OSS apps working *transparently*. So spewing a warning at each time is a bad idea, IMO.

If a warning is justified, why don't you give a joyful success message at each time if aoss can wrap the call? :)

Takashi

Quoted 26 lines
---
 alsa/aoss.in |    1 +
 1 file changed, 1 insertion(+)
alsa/aoss.in +1 -0
index d8e1d6d..564eed9 100644
@@ -9,6 +9,7 @@ if [ -d /proc/asound ]; then
   libdir=@libdir@
   LD_PRELOAD=${libdir}/libaoss.so${LD_PRELOAD:+:$LD_PRELOAD} exec "$@"
 else
+  echo "Warning: /proc/asound not found. Running without ALSA wrapper."
   exec "$@"
 fi
 exit 1
Signature · 6 lines
1.7.10.4

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#4 lore raw

PATCH 3/3 Add AM_MAINTAINER_MODE([enable]) to configure.in.

In reply to Jordi Mallach
---
 configure.in |    2 ++
 1 file changed, 2 insertions(+)
configure.in +2 -0
index d0318e7..0afeb8a 100644
@@ -2,6 +2,8 @@ AC_PREREQ(2.59)
 AC_INIT(alsa/alsa-oss.c)
 AM_INIT_AUTOMAKE(alsa-oss, 1.0.25)
 
+AM_MAINTAINER_MODE([enable])
+
 LIBTOOL_VERSION_INFO="0:0:0"
 AC_SUBST(LIBTOOL_VERSION_INFO)
 
Signature · 1 line
1.7.10.4
#5 lore raw
In reply to Jordi Mallach

El dc 15 de 05 de 2013 a les 18:58 +0200, en/na Jordi Mallach va escriure:

Quoted 2 lines

As previously discussed, I'm posting all Debian patches against alsa-oss that were pending upstreaming.

Regardless of the wrong subject, the patches are actually against alsa-oss.

Signature · 8 lines
Jordi Mallach Pérez  --  Debian developer     http://www.debian.org/
[email protected]     [email protected]     http://www.sindominio.net/
GnuPG public key information available at http://oskuro.net/

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
#6 lore raw

Re: Debian alsa-oss patches

In reply to Jordi Mallach

At Wed, 15 May 2013 18:58:04 +0200,

Quoted 3 lines · Jordi Mallach

As previously discussed, I'm posting all Debian patches against alsa-oss that were pending upstreaming.

I applied patches 1 & 3.

thanks,

Takashi

Quoted 12 lines

Thanks,
Jordi

[PATCH 1/3] Fix path to libaoss.so.
[PATCH 2/3] Show a warning if the alsa wrapper failed. [PATCH 3/3] Add AM_MAINTAINER_MODE([enable]) to configure.in.
_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel