Your message dated Tue, 30 May 2006 22:06:15 +0200
with message-id <[EMAIL PROTECTED]>
and subject line libasound2 counterstrike
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: libasound2
Version: 1.0.11-6
Severity: important


/usr/lib/libasound.so.2.0.0  is compiled with 
datadir=/home/jordi/svn/pkg-alsa/trunk/build-area/alsa-lib-1.0.11/${prefix}/share/alsa
 

libasound2 searches for alsa.conf in the build-dir rather than /usr/share/alsa/ 
- thus alsa apps fail to work until I create /usr/share/alsa as /home/jordi/... 
 or set the ALSA_CONFIG_PATH enviroment variable.

adding  --datadir=/usr/share  to the configure lines in debian/rules and 
rebuilding libasound2 helped me out.

-robin






alsa-lib-1.0.11/configure.in:65 says:

eval dir="$datadir"
case "$dir" in
/*) ;;
*) dir="$PWD/$dir"
esac


 \${prefix} is not replaced (maybe due to 40_relibtoolise.dpatch ??).
 datadir starts with '$' instead of '/' -> pwd is prepended and 
 '..${prefix}..' ends up in include/config.h and bibuild/include/config.h




$ strace alsamixer
...
stat64("/home/jordi/svn/pkg-alsa/trunk/build-area/alsa-lib-1.0.11//share/alsa/alsa.conf",
 0xaf951b1c) = -1 ENOENT (No such file or directory)
write(2, "ALSA lib control.c:816:(snd_ctl_"..., 47ALSA lib 
control.c:816:(snd_ctl_open_noupdate) ) = 47
write(2, "Invalid CTL default", 19Invalid CTL default)     = 19
write(2, "\n", 1
)                       = 1
fstat64(1, {st_mode=S_IFCHR|0620, st_rdev=makedev(136, 9), ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 
0xa7f3d000
write(1, "\n", 1
)                       = 1
write(2, "alsamixer: function snd_ctl_open"..., 79alsamixer: function 
snd_ctl_open failed for default: No such file or directory
) = 79
munmap(0xa7f3d000, 4096)                = 0
exit_group(1)                           = ?
...


$ strings /usr/lib/libasound.so.2.0.0 | grep share
...
/home/jordi/svn/pkg-alsa/trunk/build-area/alsa-lib-1.0.11/${prefix}/share/alsa/%s
/home/jordi/svn/pkg-alsa/trunk/build-area/alsa-lib-1.0.11/${prefix}/share/alsa/alsa.conf
/home/jordi/svn/pkg-alsa/trunk/build-area/alsa-lib-1.0.11/${prefix}/share/alsa/smixer.conf
/home/jordi/svn/pkg-alsa/trunk/build-area/alsa-lib-1.0.11/${prefix}/share
...


-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages libasound2 depends on:
ii  libc6                         2.3.6-9    GNU C Library: Shared libraries

libasound2 recommends no packages.

-- no debconf information


--- End Message ---
--- Begin Message ---
alsa-lib (1.0.11-7) unstable; urgency=medium

  [ Elimar Riesebieter ]
  * Introduced --datadir=\$${prefix}/share in debian/rules. Otherwise soundapps
    are looking in $BUILDDIR/${prefix}/share.

 -- Jordi Mallach <[EMAIL PROTECTED]>  Sun, 28 May 2006 22:02:37 +0200


-- 
  We all know Linux is great... it does infinite loops in 5 seconds.
        -- Linus Torvalds

--- End Message ---

Reply via email to