Bug 2229951 - Problem with file requirements
Summary: Problem with file requirements
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: resource-agents
Version: 38
Hardware: Unspecified
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Chris Feist
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2180842
TreeView+ depends on / blocked
 
Reported: 2023-08-08 09:30 UTC by Jaroslav Mracek
Modified: 2024-02-12 12:51 UTC (History)
4 users (show)

Fixed In Version: resource-agents-4.13.0-2.fc40.3
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2024-02-12 12:51:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jaroslav Mracek 2023-08-08 09:30:11 UTC
Package resource-agents requires: /sbin/mount.nfs /sbin/mount.nfs4 /sbin/rpc.statd

Why this is a problem:
1. DNF5 stops to download filelists as a default therefore `resource-agents` will be not installable
2. It is against Fedora packaging guidelines to require files outside of `/etc`, `/usr/(s)bin`.


Possible solution:
1. use only file provides from  `/etc`, `/usr/(s)bin` (follow packaging guidelines please) or other provides from package providing required functionality (`Requires: mount.nfs`, `Requires: mount.nfs4`, `Requires: rpc.statd`)
2. Request explicit provide of `/sbin/mount.nfs` in package providers of the file like `Provides: /sbin/mount.nfs`. This is a workaround that resolves the issue, but it is not according to the guidelines. The `/sbin` is also deprecated from Fedora 17, therefore it would better to ask for move to `/usr/sbin/...`

This issue will appear after DNF5 adoption, because DNF5 does not download filelists by default. The problem will not be in DNF5 because it is caused by not following packaging guidelines (in this case the primary cause is in providers of `/sbin/mount.nfs`). DNF downloaded always filelists to prevent the issue. There are only few remaining packages that has the issue therefore it is time to improve an efficiency of Fedora distribution.

Reproducible: Always

Comment 1 Oyvind Albrigtsen 2023-08-09 10:10:34 UTC
When I try to upgrade to test build on Fedora 38 with updated paths with /usr prefix it fails due to these utils not being installed in /usr/(s)bin:
 Problem: cannot install the best update candidate for package resource-agents-4.12.0-1.fc38.x86_64
  - nothing provides /usr/sbin/mount.nfs needed by resource-agents-4.12.0-3.fc40.x86_64 from @commandline
  - nothing provides /usr/sbin/mount.nfs4 needed by resource-agents-4.12.0-3.fc40.x86_64 from @commandline
  - nothing provides /usr/sbin/rpc.statd needed by resource-agents-4.12.0-3.fc40.x86_64 from @commandline
  - nothing provides libc.so.6(GLIBC_2.38)(64bit) needed by resource-agents-4.12.0-3.fc40.x86_64 from @commandline

They're still in /sbin on Fedora 39 builds as well:
https://koji.fedoraproject.org/koji/rpminfo?rpmID=34298374

Comment 2 Zbigniew Jędrzejewski-Szmek 2023-11-09 18:42:40 UTC
https://src.fedoraproject.org/rpms/resource-agents/pull-request/7 should resolve the issue.

Comment 3 Zbigniew Jędrzejewski-Szmek 2024-02-12 12:42:19 UTC
With resource-agents-4.13.0-2.fc40.3, this should be fixed in F40+.
I think it's fine if it's only fixed there, so I'm not submitting anything
for the lower versions.

Comment 4 Fedora Update System 2024-02-12 12:50:22 UTC
FEDORA-2024-d1ce2549b7 (resource-agents-4.13.0-2.fc40.3) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-d1ce2549b7

Comment 5 Fedora Update System 2024-02-12 12:51:06 UTC
FEDORA-2024-d1ce2549b7 (resource-agents-4.13.0-2.fc40.3) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.


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