Skip to content
Snippets Groups Projects
Commit a121cd7a authored by Nicolas Richart's avatar Nicolas Richart
Browse files

"simplifying" the system packages

parent d15f26f9
No related branches found
No related tags found
No related merge requests found
Pipeline #196956 failed
......@@ -84,3 +84,19 @@ spack/bin/spack buildcache keys \
#spack/bin/spack buildcache update-index /buildcache
cp ${STACK_CONFIG_PATH}/packages_${environment}.yaml ${SPACK_SYSTEM_CONFIG_PATH}/packages_env.yaml
echo "packages:" > ${SPACK_SYSTEM_CONFIG_PATH}/packages_system.yaml
export system_compiler=$(jq -Mrc '
.stack
| .system_arch as $arch
| .system_compiler
| to_entries
| .[].value
| "\(.compiler)@\(.version) \($arch)"
' ${STACK_CONFIG})
jq -Mrc '
.stack.system_packages
| map(" \(.):\n require:\n - spec: \"%\(env.system_compiler)\"")
| .[]
' ${STACK_CONFIG} >> ${SPACK_SYSTEM_CONFIG_PATH}/packages_system.yaml
......@@ -45,7 +45,32 @@
"version": "4.2.0",
"constraint": "env['environment'] in ['jed']"
}
}
},
"system_packages": [
"autoconf",
"automake",
"autotools",
"ca-certificates-mozilla",
"cmake",
"diffutils",
"expat",
"findutils",
"freetype",
"gettext",
"glibc",
"gmake",
"gnuplot",
"libevent",
"m4",
"ncurses",
"openssl",
"pcre",
"perl",
"pkgconf",
"readline",
"sqlite",
"texinfo",
"zlib-ng"
]
}
}
......@@ -2,7 +2,7 @@ spack:
include:
- compiler_definitions.yaml
- packages_env.yaml
- packages_system.yaml
definitions:
# -------------------------------------------------------------------------
# PE definition
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment