[Bug 244624] audio/linux-c7-alsa-plugins-pulseaudio: conf symlink should be relative

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 244624] audio/linux-c7-alsa-plugins-pulseaudio: conf symlink should be relative

bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244624

            Bug ID: 244624
           Summary: audio/linux-c7-alsa-plugins-pulseaudio: conf symlink
                    should be relative
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [hidden email]
          Reporter: [hidden email]
             Flags: maintainer-feedback?([hidden email])
          Assignee: [hidden email]

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 breaks
several "Enhanced Edition" games (BG, PST, IWD) -- the game starts, but there'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 configuration
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 instead.
I'm not sure how about the proper changes to the port, so no patch provided.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

maintainer-feedback requested: [Bug 244624] audio/linux-c7-alsa-plugins-pulseaudio: conf symlink should be relative

bugzilla-noreply
Bugzilla Automation <[hidden email]> has asked freebsd-emulation mailing
list <[hidden email]> 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=244624



--- 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 breaks
several "Enhanced Edition" games (BG, PST, IWD) -- the game starts, but there'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 configuration
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 instead.
I'm not sure how about the proper changes to the port, so no patch provided.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 244624] audio/linux-c7-alsa-plugins-pulseaudio: conf symlink should be relative

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244624

--- Comment #1 from [hidden email] ---
A commit references this bug:

Author: danfe
Date: Fri Mar  6 12:47:02 UTC 2020
New revision: 527878
URL: https://svnweb.freebsd.org/changeset/ports/527878

Log:
  Replace the symlink to an absolute patch, which escapes Linuxolator's
  translation, to a relative one.

  This allows to unbreak several "Enhanced Edition" games (BG, PST, IWD)
  when previously, the game started, but there was no sound.

  PR:   244624

Changes:
  head/audio/linux-c7-alsa-plugins-pulseaudio/Makefile

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "[hidden email]"
Reply | Threaded
Open this post in threaded view
|

[Bug 244624] audio/linux-c7-alsa-plugins-pulseaudio: conf symlink should be relative

bugzilla-noreply
In reply to this post by bugzilla-noreply
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244624

Alexey Dokuchaev <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
                 CC|                            |[hidden email]
             Status|New                         |Closed

--- Comment #2 from Alexey Dokuchaev <[hidden email]> ---
Absolute symlinks are evil indeed, thanks for the report.  Should be fixed as
of ports r527878.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[hidden email] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-emulation
To unsubscribe, send any mail to "[hidden email]"