Bug 1198693
| Summary: | RFE: remove 'scls' from %{_sysconfdir} and %{_localstatedir} | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Honza Horak <hhorak> | ||||||
| Component: | scl-utils | Assignee: | Ľuboš Kardoš <lkardos> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | unspecified | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | rawhide | CC: | bkabrda, fedora, hhorak, jorton, jzeleny, lkardos | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Whiteboard: | |||||||||
| Fixed In Version: | scl-utils-2.0.1-10.fc24 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | |||||||||
| : | 1198696 1198697 (view as bug list) | Environment: | |||||||
| Last Closed: | 2016-03-26 18:15:12 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: | |||||||||
| Bug Depends On: | |||||||||
| Bug Blocks: | 1198696, 1198697 | ||||||||
| Attachments: |
|
||||||||
|
Description
Honza Horak
2015-03-04 16:20:35 UTC
I agree, current state is inconsistent. scls is used under /etc and /var, but not under /opt./ I understand that such a change can be annoying for existing collections.
Here is a proposal.
As "nfsmountable" is a terrible option name (as it has nothing related to NFS in this, only about the layout).
Create a new option "rh_layout" which will use the same layout as collection build with scl-utils 1 in RHEL
%{?rh_layout: %global _sysconfdir %{_root_sysconfdir}%{_scl_prefix}/%{scl}}
%{?rh_layout: %global _sharedstatedir %{_root_localstatedir}%{_scl_prefix}/%{scl}/lib}
%{?rh_layout: %global _localstatedir %{_root_localstatedir}%{_scl_prefix}/%{scl}}
Then, if at some point, FPC agree for SCL in Fedora, and some Guidelines are approved, it will be easy, if needed, to create a "fedora_layout" macro.
And then, "nfsmountable" could be deprecated.
Created attachment 1042603 [details]
macros.scl-filesystem.patch
add "rh_layout" to generate macro file
Created attachment 1042604 [details]
layout.patch
add "rh_layout" in macros.scl
ping, what are the plans with fixing this? We shouldn't keep this unfixed any longer, every collection built with this unfixed scl-utils will trigger new issues after it is fixed. > We shouldn't keep this unfixed any longer, every collection built with this unfixed scl-utils will trigger new issues after it is fixed.
Yes, this is the reason behing my proposal to introduce "rh_layout' and keep default behavior unchanged: don't break existing collection.
And we could introduce fedora_layout later, if different, in spring 2025 when SCL will be allowed in fedora 42 ;)
Reassigning to Lubos, who is currently closer to the development of scl-utils scl-utils-2.0.1-10.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-ff75f9caf4 scl-utils-2.0.1-10.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-ff75f9caf4 scl-utils-2.0.1-10.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. The needinfo request[s] on this closed bug have been removed as they have been unresolved for 1000 days |