Bug 1220821 - Cannot install musescore in 15.6 alpha
Summary: Cannot install musescore in 15.6 alpha
Status: RESOLVED FIXED
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: Other (show other bugs)
Version: Leap 15.6
Hardware: x86-64 SUSE Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Cor Blom
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-03 22:30 UTC by Larry Rainey
Modified: 2024-05-02 20:25 UTC (History)
6 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Larry Rainey 2024-03-03 22:30:02 UTC
Problem: the to be installed musescore-4.2.1-bp156.1.1.x86_64 requires '(alsa-plugins-pulse if pulseaudio)', but this requirement cannot be provided
  not installable providers: alsa-plugins-pulse-1.2.7.1-150500.1.1.x86_64[os-repo-oss]

VM3:~ #  zypper in musescore
Loading repository data...
Warning: Repository 'Update repository of openSUSE Backports' metadata expired since 2023-09-29 04:08:32 CDT.
Warning: Repository 'Update Repository (Non-Oss)' metadata expired since 2023-09-21 07:47:58 CDT.
Warning: Repository 'Update repository of openSUSE Backports' metadata expired since 2023-09-29 04:08:32 CDT.

    Warning: Repository metadata expired: Check if 'autorefresh' is turned on
    (zypper lr), otherwise manually refresh the repository (zypper ref). If this
    does not solve the issue, it could be that you are using a broken mirror or
    the server has actually discontinued to support the repository.

Reading installed packages...
Resolving package dependencies...

Problem: the to be installed musescore-4.2.1-bp156.1.1.x86_64 requires '(alsa-plugins-pulse if pulseaudio)', but this requirement cannot be provided
  not installable providers: alsa-plugins-pulse-1.2.7.1-150500.1.1.x86_64[os-repo-oss]
 Solution 1: Following actions will be done:
  deinstallation of pulseaudio-17.0-150600.1.1.x86_64
  deinstallation of pulseaudio-lang-17.0-150600.1.1.noarch
  deinstallation of pulseaudio-module-bluetooth-17.0-150600.1.1.x86_64
  deinstallation of pulseaudio-module-lirc-17.0-150600.1.1.x86_64
  deinstallation of pulseaudio-module-zeroconf-17.0-150600.1.1.x86_64
 Solution 2: Following actions will be done:
  deinstallation of pipewire-alsa-1.0.3-150600.1.1.x86_64
  deinstallation of pipewire-1.0.3-150600.1.1.x86_64
  deinstallation of pipewire-lang-1.0.3-150600.1.1.noarch
  deinstallation of wireplumber-0.4.17-150600.1.1.x86_64
  deinstallation of wireplumber-lang-0.4.17-150600.1.1.noarch
  deinstallation of wireplumber-zsh-completion-0.4.17-150600.1.1.x86_64
 Solution 3: do not install musescore-4.2.1-bp156.1.1.x86_64
 Solution 4: break musescore-4.2.1-bp156.1.1.x86_64 by ignoring some of its dependencies

Choose from above solutions by number or cancel [1/2/3/4/c/d/?] (c):
VM3:~ #
Comment 1 Cor Blom 2024-03-04 12:41:03 UTC
What happens when you choose solution 1 or 2?

This seems to me a conflict between pipewire and pulseaudio. One needs to be chosen. Solution 1 gives you pipewire as default and 2 pulseaudio.

I add the Leap maintainer here in the CC, because this seems a configuration issue in Leap.
Comment 2 Larry Rainey 2024-03-04 23:56:28 UTC
If you choose either 1 or 2 you loose sound on reboot.

It was working until last week when it complained and I was force to uninstall it as choice 3 and 4 were ignored by zypper. (uninstall or install but ignore requirements)
Comment 3 Larry Rainey 2024-03-04 23:58:26 UTC
zypper dup would not complete

I had to zypper rm musescore then zypper dup to continue.
Comment 4 Cor Blom 2024-03-05 10:16:28 UTC
Some background. This is related to the following two lines in the spec:

Requires:       ( alsa-plugins-pulse if pulseaudio )
Requires:       ( pipewire-alsa      if pipewire )

The reason for this is in the following comment in the changelog and the reference to the discussion, which continues after that comment.

Sun Jan  1 11:11:45 UTC 2023 - Marcus Rueckert <mrueckert@suse.de>

- Fix audio playback support in muse score 
  https://github.com/musescore/MuseScore/issues/11220#issuecomment-1365822403

  - Fix jack finder by backporting 0dde64eef84.patch:
    Though the jack code in Musescore seems to be unused and only
    alsa seems supported
  - Require alsa-plugins-pulse or pipewire-alsa to make playing out
    of the box

To me the solution should work.

I'm adding the pipewire and alsa maintainers to cc. Maybe they can help.
Comment 5 Takashi Iwai 2024-03-05 11:58:58 UTC
You already installed both pulseaudio and pipewire-alsa packages on your system?
That makes no sense.

I'm afraid that your system was already messed up.  If you don't need pipewire audio, don't install pipewire-alsa (but you can keep pipewire itself for graphics).

That is, if you keep pulseaudio, uninstall pipewire-alsa, and install alsa-plugins-pulse.
Comment 6 Larry Rainey 2024-03-05 14:01:28 UTC
OK,

Selecting 1 or 2 in zypper did nothing same as 3 and 4 did.

I got it to install by

zypper rm alsa*

zypper in musescore

It hung the machine - then I realized that I needed to reboot to remove the alsa code

After reboot musescore loaded but does not play midi other than a note or 2 a second.

Not sure new bug on zypper and musescore not playing correctly?

Do I reinstall alsa and uninstall pulseaudio and try again?
Comment 7 Takashi Iwai 2024-03-05 14:07:55 UTC
(In reply to Larry Rainey from comment #6)
> OK,
> 
> Selecting 1 or 2 in zypper did nothing same as 3 and 4 did.
> 
> I got it to install by
> 
> zypper rm alsa*

This will blow all things, of course!
You need to uninstall *only* pipewire-alsa package, nothing else.

> zypper in musescore
> 
> It hung the machine - then I realized that I needed to reboot to remove the
> alsa code
> 
> After reboot musescore loaded but does not play midi other than a note or 2
> a second.
> 
> Not sure new bug on zypper and musescore not playing correctly?
> 
> Do I reinstall alsa and uninstall pulseaudio and try again?

You must have messed up more badly now....  Better to have a clean system.
Comment 8 Larry Rainey 2024-03-05 17:29:06 UTC
I went back to March 3 backup and did the zypper dup

selected option 1 and it installed eveything but musescore played at 1 note per second

I gave up an uninstalled OpenSuse MuseScore and installed their appimage and the appimage works pefectly.
Comment 9 Cor Blom 2024-03-05 17:33:54 UTC
(In reply to Larry Rainey from comment #8)
> I went back to March 3 backup and did the zypper dup
> 
> selected option 1 and it installed eveything but musescore played at 1 note
> per second
> 
> I gave up an uninstalled OpenSuse MuseScore and installed their appimage and
> the appimage works pefectly.


OK, closing this bug. The slowness is a different issue.
Comment 10 Takashi Iwai 2024-03-05 17:39:02 UTC
Although this bug was already closed, I have to warn you, Larry.

When musescore package installation leads to the dependency issue, it means that your system was already messed up at the state.

You have to uninstall pipewire-alsa package and install alsa-plugins-pulse package instead.

Or, switch to pipewire completely from pulseaudio, just by installing pipewire-pulseaudio package (that will replace relevant packages automatically).
Comment 11 Giacomo Comes 2024-04-25 13:14:24 UTC
I'm reopening this bug report because the problem still exists.
Background:
Do a fresh leap 15.6 beta installation. Choose the plasma or gnome role.
Complete the installation and then run:
zypper in musescore, result:

Problem: the to be installed musescore-4.2.1-bp156.1.2.x86_64 requires '(pipewire-alsa if pipewire)', but this requirement cannot be provided
  not installable providers: pipewire-alsa-1.0.4-150600.1.6.x86_64[disk_v_oss]
                   pipewire-alsa-1.0.4-150600.2.pm.29.x86_64[packman_disk_Essentials]
 Solution 1: Following actions will be done:
  deinstallation of pipewire-1.0.4-150600.1.6.x86_64
  deinstallation of pipewire-lang-1.0.4-150600.1.6.noarch
  deinstallation of plasma5-session-wayland-5.27.11-bp156.1.4.x86_64
  deinstallation of wireplumber-0.5.1-150600.1.1.x86_64
  deinstallation of wireplumber-lang-0.5.1-150600.1.1.noarch
 Solution 2: Following actions will be done:
  deinstallation of alsa-plugins-pulse-1.2.7.1-150500.1.1.x86_64
  deinstallation of pulseaudio-17.0-150600.2.2.x86_64
  deinstallation of pulseaudio-lang-17.0-150600.2.2.noarch
  deinstallation of pulseaudio-module-bluetooth-17.0-150600.2.2.x86_64
  deinstallation of pulseaudio-module-gsettings-17.0-150600.2.2.x86_64
  deinstallation of pulseaudio-module-x11-17.0-150600.2.2.x86_64
  deinstallation of pulseaudio-module-zeroconf-17.0-150600.2.2.x86_64
 Solution 3: do not install musescore-4.2.1-bp156.1.2.x86_64
 Solution 4: break musescore-4.2.1-bp156.1.2.x86_64 by ignoring some of its dependencies

The musescore specfile contains:
Requires:       ( alsa-plugins-pulse if pulseaudio )
Requires:       ( pipewire-alsa      if pipewire )

So
if pulseaudio is installed, install alsa-plugins-pulse
if pipewire is installed, install pipewire-alsa
It is assumed that both pulseaudio and pipewire are not installed at the same
time otherwise both alsa-plugins-pulse and pipewire-alsa would be installed which is not possible because they conflict with each other.

That's exactly what is happening with the fresh installation:
You got installed pulseaudio, alsa-plugins-pulse and pipewire.
musescore then wants to install pipewire-alsa causing the resolution dilemma.

In tumbleweed this does not happens because after a fresh installation you have:
pipewire and pipewire-alsa installed but not pulseaudio.

The problem with leap 15.6 seems to be that you end up with both pulseaudio and
pipewire installed. Is that configuration allowed?
Comment 12 Takashi Iwai 2024-04-29 14:51:14 UTC
(In reply to Giacomo Comes from comment #11)
> The musescore specfile contains:
> Requires:       ( alsa-plugins-pulse if pulseaudio )
> Requires:       ( pipewire-alsa      if pipewire )

The latter one is the culprit, and it's an utterly unnecessary dependency.

The misunderstanding is that the installation of pipewire doesn't mean to use it for the audio at all.  I'd suggest rather to drop the second line while keeping the first one.
Comment 13 Cor Blom 2024-04-29 15:09:01 UTC
(In reply to Takashi Iwai from comment #12)
> (In reply to Giacomo Comes from comment #11)
> > The musescore specfile contains:
> > Requires:       ( alsa-plugins-pulse if pulseaudio )
> > Requires:       ( pipewire-alsa      if pipewire )
> 
> The latter one is the culprit, and it's an utterly unnecessary dependency.
> 
> The misunderstanding is that the installation of pipewire doesn't mean to
> use it for the audio at all.  I'd suggest rather to drop the second line
> while keeping the first one.

Submitted a request with this change.
Comment 14 OBSbugzilla Bot 2024-04-29 15:45:06 UTC
This is an autogenerated message for OBS integration:
This bug (1220821) was mentioned in
https://build.opensuse.org/request/show/1170822 Factory / musescore
Comment 15 Cor Blom 2024-05-02 20:25:24 UTC
The change is accepted in Leap 15.6.