Description of problem: environment-modules users may wish to continue to use "modules" for product delivered that works with scl. Providing the capability for scl to work with environment-modules would be appreciated. Version-Release number of selected component (if applicable): scl-utils current environment-modules current How reproducible: 100% Actual results: End users have to repackage components that come in scl packaging to work with environment-modules Expected results: scl packaged components work out of the box with environment-modules Additional info:
I think this would be a huge win. Environment modules is well-established in the HPC community (where Fedora and ultimately-derived-from-Fedora distributions are very popular). Plus, we already have environment-modules in Fedora and in RHEL (used for different versions of mpi), and it'd be nice if all our stuff played nicely together.
This package has changed ownership in the Fedora Package Database. Reassigning to the new owner of this component.
After a lot of thought I have decided to close this one. The core concept of scl-utils is a bit different than the one of env. modules and there is virtually nothing scl-utils can do to significantly improve the support. The burden of the better support is up to the collection maintainers to transform their scriptlets to env. modules. The good new is that it is much more simple than it sounds. The only thing that needs to be done is to use either [1] or [2] (both part of the environment-modules package) to transform collection's scriptlet to an env. module and then (if necessary) to copy that module to $MODULESHOME/init. All this can be done in the %pre stage right after the scl scriptlet is created (don't forget that the package has to pre-require the environment-modules). [1] /usr/share/Modules/bin/createmodule.sh [2] /usr/share/Modules/bin/createmodule.py
Since this BZ came first in a search for "scl-utils environment modules", just adding a link directly to the documentation for the approach Jan describes above: https://www.softwarecollections.org/en/docs/guide/#sect-Converting_Software_Collection_Scriptlets_into_Environment_Modules