[Pkg-alsa-devel] Bug#369469: libasound2: invalid datadir path - alsa.conf not found

Robin Gareus robin at gareus.org
Tue May 30 01:23:34 UTC 2006


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




More information about the Pkg-alsa-devel mailing list