Bug 2361481
| Summary: | installation 'tmpwatch' failed due to unifying bin and sbin | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | kdg1955 <kdg1955> | ||||
| Component: | tmpwatch | Assignee: | Jiri Kucera <jkucera> | ||||
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
| Severity: | high | Docs Contact: | |||||
| Priority: | unspecified | ||||||
| Version: | 42 | CC: | anders.blomdell, jkucera, kdg1955, kv, marek.gresko, ondrejj, ppisar, yselkowi | ||||
| Target Milestone: | --- | Keywords: | Regression, Upgrades | ||||
| Target Release: | --- | ||||||
| Hardware: | x86_64 | ||||||
| OS: | Linux | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | Doc Type: | --- | |||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2025-07-17 11:10:51 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Embargoed: | |||||||
| Attachments: |
|
||||||
|
Description
kdg1955
2025-04-21 17:23:15 UTC
See also Bug 2356903 Created attachment 2086811 [details]
This patch for SPECS/tmpwatch.spec fixes the described issue.
No more symbolic link in '/usr/bin'.
Copies 'tempwatch' only in '/usr/bin' instead of '/usr/sbin'.
I didn't change the version and release, because I don't have any experience with that. I also didn't add anything to the changelog.
Short tests on an x86_64 architecture.
Another thing I didn't think of before: what about an update from fc41 or earlier? Is the symbolic link removed before the update of package 'tmpwatch' is performed? Maybe I will do an test with an update from fc41 where 'tmpwatch' is installed and see if the link is removed? I think yes because otherwise the update should have crashed. And next question is this link removed before 'tmpwatch' is updated? Is it better to add a line in the 'SPECS/tmpwatch.spec' where we removed de symbolic link if exist, in pre-build? What other people with more experience think? When you do an upgrade, the directory /usr/sbin exists. Binaries from the fc42 packages are installed into /usr/bin and there exists a symlink for the binary itself in the /usr/sbin. For tmpwatch the result is opposite. The binary is installed into /usr/sbin and the symlink is created in /usr/bin also in upgraded fc42. Thanks Marek Greško, so then there is a difference between fc42 that was upgraded and a new installed fc42. A new fc42 have a symbolic link at the level of the directory '/usr/sbin'. I suggest to remove the symbolic link of '/usr/bin/tmpwatch' if it exist. Then there can be no conflicts and add this remove command in 'SPECS/tmpwatch.spec'. I will make a new patch later and upload it here. (In reply to kdg1955 from comment #1) > See also Bug 2356903 Se also Bug 2341446 which seems to have caught that problem in the mass rebuild Looks like @yselkowi fixed this in F43/rawhide. Can you please build this for F42 too? This bug breaks bin/sbin merge in existing installs and breaks new installs with tmpwatch selected. *** This bug has been marked as a duplicate of bug 2356903 *** The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days |