Re: Installed audio/alsa-plugins and dependencies

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Fri, 16 Feb 2024 12:56:44 UTC
Jonathan Chen <jonc@chen.org.nz> writes:

> Hi,
>
> I've got audio/alsa-plugins installed from a recent ports tree with
> default options, and its dependency list is a bit dubious.
>
> 8:04pm# cd /usr/ports/audio/alsa-plugins/
> 8:04pm# make -V LIB_DEPENDS_ALL
> libasound.so:audio/alsa-lib libasound.so:audio/alsa-lib
> libavcodec.so:multimedia/ffmpeg libasound.so:audio/alsa-
> lib libjack.so:audio/jack libasound.so:audio/alsa-lib
> libpulse.so:audio/pulseaudio libasound.so:audio/alsa-lib l
> ibsamplerate.so:audio/libsamplerate libasound.so:audio/alsa-lib
> libspeexdsp.so:audio/speexdsp

If you don't like some dependencies disable the respective options
which in turn will disable specific subpackages. What are you trying
to do with the raw LIB_DEPENDS_ALL output?

> But the installed package reports:
> 8:09pm# pkg info --dependencies alsa-plugins
> alsa-plugins-1.2.7.1_3:
>         alsa-lib-1.2.10_1

Check dependencies of subpackages instead e.g.,

$ pkg info -xd 'alsa-plugins-[^0-9]'
alsa-plugins-ffmpeg-1.2.7.1_3:
        ffmpeg-6.1.1_3,1
        alsa-lib-1.2.10_1
alsa-plugins-jack-1.2.7.1_3:
        jackit-1.9.22_2
        alsa-lib-1.2.10_1
alsa-plugins-pulseaudio-1.2.7.1_3:
        pulseaudio-16.1_2
        alsa-lib-1.2.10_1
alsa-plugins-samplerate-1.2.7.1_3:
        libsamplerate-0.2.2_1
        alsa-lib-1.2.10_1
alsa-plugins-speex-1.2.7.1_3:
        speexdsp-1.2.1
        alsa-lib-1.2.10_1

>
> It appears to be missing the SUBPACKAGE dependencies. Is this
> intentional, or a bug?

Intentional. See pkg-message:

  Plugins with extra dependencies moved into subpackages:
  - alsa-plugins-ffmpeg
  - alsa-plugins-jack
  - alsa-plugins-pulseaudio
  - alsa-plugins-samplerate
  - alsa-plugins-speex