Bug 2185620 - Recommends: texlive is ignored by dnf
Summary: Recommends: texlive is ignored by dnf
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-04-10 15:18 UTC by Iñaki Ucar
Modified: 2023-04-11 12:01 UTC (History)
12 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-04-11 10:32:40 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
Reproducer script (542 bytes, application/x-shellscript)
2023-04-10 15:18 UTC, Iñaki Ucar
no flags Details

Description Iñaki Ucar 2023-04-10 15:18:43 UTC
Created attachment 1956646 [details]
Reproducer script

Description of problem:
Cannot add texlive as Recommends, because it is somehow ignored by dnf. Not sure if this is an issue in texlive, but it only happens in rawhide, and only as Recommends.

Version-Release number of selected component (if applicable):
2023

How reproducible:
./issue.sh rawhide # see attachment

Actual results:
texlive is not added to the transaction (with weak dependencies enabled).

Expected results:
texlive is added to the transaction, i.e.,
./issue.sh 38 # this works as expected

Comment 1 Tom "spot" Callaway 2023-04-10 15:26:49 UTC
Best guess: texlive is not added to the transaction because the binary "texlive" RPM contains no files: https://koji.fedoraproject.org/koji/rpminfo?rpmID=34114997

It only exists as a helper for people who do not know better to install "texlive-collection-latexrecommended" and "texlive-scheme-basic", which the "texlive" binary RPM Requires.

That said, it should show up, so this is either a DNF or an RPM bug in Rawhide. Reassigning to DNF.

Comment 2 Tom "spot" Callaway 2023-04-10 15:27:34 UTC
That said, please don't put "Recommends: texlive", as this is almost certainly wrong. Figure out what specific tex components you need and do:

Recommends: tex(foo)

Comment 3 Iñaki Ucar 2023-04-10 15:32:28 UTC
I know, I just wanted to simplify things as much as possible.
You can check that these don't work either:

Recommends: tex(latex)
Recommends: texlive-collection-latexrecommended

Change Recommends -> Requires, then it works
Change rawhide -> 38, then it works

Comment 4 Petr Pisar 2023-04-11 10:17:00 UTC
Can you tell us what version of the following packages you have in the container? I cannot reproduce it my my F39 virtual machine with these:

# rpm -q dnf libdnf libsolv librepo
dnf-4.15.0-1.fc39.noarch
libdnf-0.70.0-1.fc39.x86_64
libsolv-0.7.22-4.fc38.x86_64
librepo-1.15.1-2.fc38.x86_64

Comment 5 Petr Pisar 2023-04-11 10:30:10 UTC
I tried current quay.io/fedora/fedora:39 (e1de9e9e9c08) and it works for me. It contains the same DNF packages. Are you sure your YUM repository contains "texlive" package (dnf repoquery texlive)?

Comment 6 Iñaki Ucar 2023-04-11 10:32:40 UTC
Argh, I thought I updated the image to the latest version, but it seems I didn't:

# rpm -q dnf libdnf libsolv librepo
dnf-4.14.0-1.fc38.noarch
libdnf-0.68.0-1.fc38.x86_64
libsolv-0.7.22-3.fc37.x86_64
librepo-1.15.1-1.fc38.x86_64

I confirm that updating the image makes the issue disappear. Apologies for the noise.

Comment 7 Petr Pisar 2023-04-11 10:49:37 UTC
I downgraded the DNF packages to your version and still were not able to reproduce it. It was probably caused by something else. I would suspect a (cached) content of the YUM repository.

Comment 8 Iñaki Ucar 2023-04-11 10:52:25 UTC
Cached where? I was spawning a fresh container each time.

Comment 9 Petr Pisar 2023-04-11 12:01:54 UTC
/var/cache/dnf. But a fresh container should have none. Maybe a mirror of your choice. I guess we will never know what what was the case.


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