Bug 1223773 - zypper does not accept option: break <package> by ignoring some of its dependencies
Summary: zypper does not accept option: break <package> by ignoring some of its depend...
Status: NEW
Alias: None
Product: openSUSE Distribution
Classification: openSUSE
Component: libzypp (show other bugs)
Version: Leap 15.6
Hardware: Other Other
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: E-mail List
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-02 15:30 UTC by Giacomo Comes
Modified: 2024-05-03 13:22 UTC (History)
1 user (show)

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


Attachments
zypper testcase for musescore (8.17 MB, application/x-xz)
2024-05-03 13:22 UTC, Giacomo Comes
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Giacomo Comes 2024-05-02 15:30:51 UTC
On Leap 15.6 if I run:
  zypper in musescore
I get:
Reading installed packages...
Resolving package dependencies...

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.8.x86_64[openSUSE-Leap-15.6-1]
                   pipewire-alsa-1.0.4-150600.2.pm.39.x86_64[packman_http_Essentials]
 Solution 1: Following actions will be done:
  deinstallation of pipewire-1.0.4-150600.1.8.x86_64
  deinstallation of gnome-remote-desktop-45.1-150600.1.2.x86_64
  deinstallation of pipewire-lang-1.0.4-150600.1.8.noarch
  deinstallation of plasma5-session-wayland-5.27.11-bp156.2.1.x86_64
  deinstallation of wireplumber-0.5.1-150600.1.1.x86_64
  deinstallation of wireplumber-lang-0.5.1-150600.1.1.noarch
  deinstallation of wireplumber-zsh-completion-0.5.1-150600.1.1.x86_64
  deinstallation of gnome-remote-desktop-lang-45.1-150600.1.2.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-lirc-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

If I select solution 1,2 or 3, zypper does what it is proposing to do.
But if I select solution 4 (which is the correct action in this case, see boo#1220821), then zypper does not install musescore as it is supposed to do following my decision, but it shows again the same prompt.
The end result is that option 4, while it is offered, it does not get executed.
Comment 1 Michael Andres 2024-05-02 20:32:21 UTC
@Giacomo, please create a solver testcase: 
> zypper in --debug-solver musescore


Then pack the testcase directory together with the /var/log/zypper.log and attach it to the bugreport:
>  cd /tmp
>  tar cvjf zypper-testcase.bz2 /var/log/zypper.solverTestCase /var/log/zypper.log

In case the testcase exceeds the 10MB limit for bugzilla uploads, you can use 'split' to divide the file into smaller pieces:

>  cd /tmp
>  split -b 10M --additional-suffix=-zypper-testcase.bz2 zypper-testcase.bz2

The created pieces will be named:
  xaa-zypper-testcase.bz2
  xab-zypper-testcase.bz2
  xac-...
Comment 2 Giacomo Comes 2024-05-03 13:22:51 UTC
Created attachment 874644 [details]
zypper testcase for musescore

Here is the required testcase output