Bug 2080454
| Summary: | plugin directory not owned by annobin-plugin-gcc on Fedora 36 | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Andreas Vögele <andreas> |
| Component: | annobin | Assignee: | Nick Clifton <nickc> |
| Status: | CLOSED WORKSFORME | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 36 | CC: | fweimer, jakub, nickc, sipoyare, yahmad |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | annobin-10.76-3.fc36 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-01-16 17:58:37 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Andreas Vögele
2022-04-29 16:48:42 UTC
(In reply to Andreas Vögele from comment #0) > On Fedora 35, the "plugin" directory belongs to the annobin-plugin-gcc > package and is readable: > On Fedora 36, only the files in the "plugin" directory are owned by the > annobin-plugin-gcc package. The directory itself is not owned: Can more than one package own a directory ? I was under the impression that they could not. The issue is that, starting with F36, the ownership of the plugin directory has changed from annobin to gcc. This is because a) it is where gcc looks for all of its plugins, not just annobin, so it makes sense that gcc should own it, and b) gcc now has the ability to build its own version of the annobin plugin, which it stores in the plugin directory. (In reply to Nick Clifton from comment #1) > (In reply to Andreas Vögele from comment #0) > > > On Fedora 35, the "plugin" directory belongs to the annobin-plugin-gcc > > package and is readable: > > > On Fedora 36, only the files in the "plugin" directory are owned by the > > annobin-plugin-gcc package. The directory itself is not owned: > > Can more than one package own a directory ? I was under the impression that > they could not. > > The issue is that, starting with F36, the ownership of the plugin directory > has changed from annobin to gcc. This is because a) it is where gcc looks > for all of its plugins, not just annobin, so it makes sense that gcc should > own it, and b) gcc now has the ability to build its own version of the > annobin plugin, which it stores in the plugin directory. But the gcc package doesn't own the plugin directory: rpm -qlv gcc | grep 'plugin$' I've created a dummy package that owns the directory and gets preinstalled by my OBS project configuration. Hi Andreas, Right, it looks like the spec file's %dir directive can be used to indicate that an rpm uses a directory without necessarily requiring exclusive ownership. So please could you try annobin-10.76-3.fc36 which I hope will solve the problem. Cheers Nick PS. I cannot build the rawhide version of annobin at the moment because there is a PowerPC specific LLVM problem which is stopping ppc64le binaries from building... PPS. I have also created a f35 build and a Bodhi request to have these two builds pushed out. The %dir directive solves the problem. But I realized that the plugin directory is now owned by the gcc-plugin-annobin package on Fedora 36, which is pulled in by redhat-rpm-config together with annobin-plugin-gcc. Thus the plugin directory will now have the proper permissions anyway. I think that I got confused yesterday as the plugin directory still isn't owned under AlmaLinux 9. My dummy package solves the problem there. |