Owntone: Support pulseaudio

Hi,

Goal:

Allow owntone to send audio steam to a pulseaudio enabled bluetooth speaker.

Context:

I have a PR to enable pulseaudio via new package variant: owntone-pulseaudio.

Problem:

pulseaudio is a virtual package, declared in:

  • pulseaudio-daemon
  • pulseaudio-daemon-avahi

On my development router:

  • pulseaudio-daemon-avahi is installed

Failed solutions (so far)

Solution 1

When defining owntone-pulseaudio with DEPENDS+= +AUDIO_SUPPORT:pulseaudio

  • opkg install /tmp/owntone-pulseaudio_28.8-2_aarch64_generic.ipk fails as follow:
Installing owntone-pulseaudio (28.8-2) to root...
Installing pulseaudio-daemon (14.2-10) to root...
Collected errors:
 * check_conflicts_for: The following packages conflict with pulseaudio-daemon:
 * check_conflicts_for:         pulseaudio-daemon-avahi *
 * opkg_install_cmd: Cannot install package owntone-pulseaudio.

Solution 2

When defining owntone-pulseaudio with DEPENDS+= @(PACKAGE_pulseaudio-daemon||PACKAGE_pulseaudio-daemon-avahi)

  • opkg install /tmp/owntone-pulseaudio_28.8-2_aarch64_generic.ipk fails as follow:
Installing owntone-pulseaudio (28.8-2) to root...
Installing pulseaudio-daemon (14.2-10) to root...
Collected errors:
 * check_conflicts_for: The following packages conflict with pulseaudio-daemon:
 * check_conflicts_for:         pulseaudio-daemon-avahi *
 * opkg_install_cmd: Cannot install package owntone-pulseaudio.

Question

How to specify owntone-pulseaudio 's pulseaudio dependency can be satisfied with pulseaudio-daemon OR pulseaudio-daemon-avahi ?

1 Like

Turns out CONFLICTS was causing the issue. Now in the proper place, dependencies are satisfied: