Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Mar 2020 06:38:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        emulation@FreeBSD.org
Subject:   maintainer-feedback requested: [Bug 244624] audio/linux-c7-alsa-plugins-pulseaudio: conf symlink should be relative
Message-ID:  <bug-244624-4077-SoySmc8dPT@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-244624-4077@https.bugs.freebsd.org/bugzilla/>
References:  <bug-244624-4077@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-emulation mail=
ing
list <emulation@FreeBSD.org> for maintainer-feedback:
Bug 244624: audio/linux-c7-alsa-plugins-pulseaudio: conf symlink should be
relative
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D244624



--- Description ---
audio/linux-c7-alsa-plugins-pulseaudio installs the following symlink:

/compat/linux/etc/alsa/conf.d/50-pulseaudio.conf ->
/usr/share/alsa/alsa.conf.d/50-pulseaudio.conf

This does not work as in case of symlinks there's no translation.  This bre=
aks
several "Enhanced Edition" games (BG, PST, IWD) -- the game starts, but the=
re's
no sound:

AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"
ALSA lib conf.c:3652:(config_file_open) cannot access file
/etc/alsa/conf.d/50-pulseaudio.conf
ALSA lib conf.c:3572:(snd_config_hooks_call) function snd_config_hook_load
returned error: No such file or directory
ALSA lib conf.c:4026:(snd_config_update_r) hooks failed, removing configura=
tion
AL lib: (EE) ALCplaybackAlsa_open: Could not open playback device 'default'=
: No
such file or directory

Copying the target file instead of symlink helps, as well as the "fixed"
version of symlink:

/compat/linux/etc/alsa/conf.d/50-pulseaudio.conf ->
../../../usr/share/alsa/alsa.conf.d/50-pulseaudio.conf

I'm still getting the warning, but sound works:

AL lib: (WW) alc_initconfig: Failed to initialize backend "pulse"

Yes, it could be probably fixed in linuxolator, but as it's the only such
symlink within the linux-c7 ports it should be easier to fix the port inste=
ad.=20
I'm not sure how about the proper changes to the port, so no patch provided.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-244624-4077-SoySmc8dPT>