Description of problem: Based on discussion at: https://www.redhat.com/archives/sclorg/2015-February/msg00032.html Let's get rid of hardcoded 'scls' part in %{_sysconfdir} and %{_localstatedir} macros definitions in scl-utils-build, if the same dir is not used under /opt/<vendor> as well. It is inconsistent right now. It may have sense to have another level of directories under /opt/<vendor>, but it doesn't make sense to require this for all collections. If some distro wants to use the 'scls' dir, it just needs to re-define %_scl_prefix macro.
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