From d33b0ffc50248ee1c099875830838b41e2d4ad12 Mon Sep 17 00:00:00 2001 From: Massimiliano Culpo Date: Tue, 15 Oct 2019 20:20:49 +0200 Subject: lmod: module files are written in a root folder named by target family (#13121) fixes #13005 This commit fixes an issue with the name of the root directory for module file hierarchies. Since #3206 the root folder was named after the microarchitecture used for the spec, which is too specific and not backward compatible for lmod hierarchies. Here we compute the root folder name using the target family instead of the target name itself and we add target information in the 'whatis' portion of the module file. --- share/spack/templates/modules/modulefile.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'share') diff --git a/share/spack/templates/modules/modulefile.lua b/share/spack/templates/modules/modulefile.lua index a8eae9bef1..2149c8bfaf 100644 --- a/share/spack/templates/modules/modulefile.lua +++ b/share/spack/templates/modules/modulefile.lua @@ -8,6 +8,7 @@ {% if short_description %} whatis([[Name : {{ spec.name }}]]) whatis([[Version : {{ spec.version }}]]) +whatis([[Target : {{ spec.target }}]]) whatis([[Short description : {{ short_description }}]]) {% endif %} {% if configure_options %} -- cgit v1.2.3-60-g2f50