Bug 33855 - urpmi package dependency management problem - fail boolean dependencies
Summary: urpmi package dependency management problem - fail boolean dependencies
Status: RESOLVED DUPLICATE of bug 17799
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-15 20:10 CET by Mészáros Csaba
Modified: 2024-12-18 21:20 CET (History)
2 users (show)

See Also:
Source RPM:
CVE:
Status comment: Workaround: use DNF


Attachments

Description Mészáros Csaba 2024-12-15 20:10:31 CET
$ rpm -qa | grep squashfs*

$ urpmq -ry squash
lib64squashfuse-devel-0.1.105-1.mga9
lib64squashfuse0-0.1.105-1.mga9
lib64squashfuse_ll0-0.1.105-1.mga9
squashfs-tools-4.5.1-1.mga9
squashfuse-0.1.105-1.mga9

$ curl -o /tmp/yandex.rpm "https://repo.yandex.ru/yandex-browser/rpm/stable/x86_64/yandex-browser-stable-24.10.4.808-1.x86_64.rpm"
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  191M  100  191M    0     0   9.8M      0  0:00:19  0:00:19 --:--:-- 20.2M

# urpmi /tmp/yandex.rpm 
A következő kért csomagot nem lehet telepíteni:
yandex-browser-stable-24.10.4.808-1.x86_64 ("(squashfs or squashfs-tools)" igényei miatt)
Kívánja folytatni a telepítést? (I/n) n

in english:
The following requested package cannot be installed:
yandex-browser-stable-24.10.4.808-1.x86_64 ("(squashfs or squashfs-tools)" due to your requirements)
Do you wish to continue? (Y/n)

This usually happens with 3rd party packages. But interestingly, dnf solves it smoothly.

# dnf install /tmp/yandex.rpm 
Az utolsó metaadat lejárati ellenőrzés ennyi ideje volt: 1:53:25, ekkor: 2024. dec. 15., vasárnap, 18:11:28 CET.
Függőségek feloldva.
=====================================================================================================================================================
 Csomag                                     Architektúra                Verzió                              Tároló                             Méret
=====================================================================================================================================================
Telepítés:
 yandex-browser-stable                      x86_64                      24.10.4.808-1                       @commandline                       192 M
Függőségek telepítése:
 squashfs-tools                             x86_64                      4.5.1-1.mga9                        mageia-x86_64                      179 k

Tranzakció összegzés
=====================================================================================================================================================
Telepítés  2 Csomagok

Teljes méret: 192 M
Teljes letöltési méret: 179 k
Telepített méret: 542 M
Ez így jó? [y/N] n
Művelet megszakítva.
Comment 1 Jani Välimaa 2024-12-15 20:40:11 CET
Urpmi is missing boolean dependencies support (bug 17799). Dnf works OOTB because it has the support.

https://rpm-software-management.github.io/rpm/manual/boolean_dependencies.html
Comment 2 Lewis Smith 2024-12-15 21:09:01 CET
Thank you for the report.
And Jani for the diagnosis.
Do we make this bug a duplicate of 17799? The titles are wildly different.

I see the problem: urpmi sees the requirement for squashfs-tools, but cannot find it. In this case, the two packages are in different places: the main one, NOT in any repo, is a local file; the required one in a standard medium.
Looks like a fair cop: urpmi knows it needs squashfs-tools, but does not look for it correctly - DNF does. I guess this applies to all similar external package installs not from a repo urpmi knows about.

CC: (none) => lewyssmith
Summary: urpmi package dependency management problem => urpmi package dependency management problem for packages installed not from a recognised medium

Comment 3 Jani Välimaa 2024-12-16 19:05:33 CET
(In reply to Lewis Smith from comment #2)
> I see the problem: urpmi sees the requirement for squashfs-tools, but cannot
> find it. In this case, the two packages are in different places: the main
> one, NOT in any repo, is a local file; the required one in a standard medium.
> Looks like a fair cop: urpmi knows it needs squashfs-tools, but does not
> look for it correctly - DNF does. I guess this applies to all similar
> external package installs not from a repo urpmi knows about.

No, the problem is that urpmi doesn't know how to handle requires like:
Requires: (squashfs OR squashfs-tools)
Comment 4 Morgan Leijström 2024-12-17 19:43:32 CET
So a dupe of bug 17799, IIUC.

*** This bug has been marked as a duplicate of bug 17799 ***

Status: NEW => RESOLVED
CC: (none) => fri
Summary: urpmi package dependency management problem for packages installed not from a recognised medium => urpmi package dependency management problem - fail boolean dependencies
Resolution: (none) => DUPLICATE
Status comment: (none) => Workaround: use DNF

Comment 5 Lewis Smith 2024-12-18 21:20:36 CET
(In reply to Jani Välimaa from comment #3)
> No, the problem is that urpmi doesn't know how to handle requires like:
> Requires: (squashfs OR squashfs-tools)
Thank you Jani.
In this case, the 'requires' choice comes from an external package. Otherwise we could trim it to just squashfs-tools, because we do not offer squashfs (but squashfuse), so the need to offer a choice is redundant.

Note You need to log in before you can comment on or make changes to this bug.