Egbert Eich
b5eb808f49
- updated to version 0.19.0 with follwoinig changes: * Spack's traditional package preferences are soft, but we've added hard requriements to packages.yaml and spack.yaml * spack install in an environment will no longer add to the specs: list; you'll need to either use spack add <spec> or spack install --add <spec>. * spack uninstall will not remove from your environment's specs: list; you'll need to use spack remove or spack uninstall --remove. * concretizer:unify:true is now the default mode for new environments * include environment configuration from URLs * An increasing number of packages in the ecosystem need the ability to support multiple build systems * package ++variant: enabled variant that will be propagated to dependencies * git. prefix to specify git tags or branches as versions. All of these are valid git versions in * spack ci generate --tests will generate a .gitlab-ci.yml file that not only does builds but also runs tests for built packages * spack test run --explicit will only run tests for packages that are explicitly installed, instead of all packages. * You can add a new shared_linking option to config.yaml to make Spack embed absolute paths to needed shared libraries in ELF executables and shared libraries on Linux * spack spec prints dependencies more legibly. Dependencies in the output now appear at the earliest level of indentation possible (#33406) * You can override package.py attributes like url, directly in packages.yaml * There are a number of new architecture-related format strings you can use in Spack configuration files to specify paths - Improvement from v0.18.0 * spack install --reuse was introduced in v0.17.0, and --reuse is now the default concretization mode. Spack will try hard to resolve dependencies using installed packages or binaries OBS-URL: https://build.opensuse.org/request/show/1037625 OBS-URL: https://build.opensuse.org/package/show/network:cluster/spack?expand=0&rev=49
44 lines
1.4 KiB
Diff
44 lines
1.4 KiB
Diff
From e7bbc251529786e68297c8aac700358ab1fb5c14 Mon Sep 17 00:00:00 2001
|
|
From: Egbert Eich <eich@suse.com>
|
|
Date: Wed, 10 Nov 2021 09:40:07 +0100
|
|
Subject: [PATCH] Make spack paths compliant to distro installation
|
|
|
|
Spack is particular about the choice of 'prefix' which will
|
|
replace $spack. 'prefix' is the 4th ancestor of paths.py, so
|
|
it is relative to the spack installation.
|
|
This will only change the coded setups of
|
|
var_path -> /var/lib/spack
|
|
opt_path -> /opt/spack
|
|
|
|
Signed-off-by: Egbert Eich <eich@suse.com>
|
|
Signed-off-by: Egbert Eich <eich@suse.de>
|
|
---
|
|
lib/spack/spack/paths.py | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/lib/spack/spack/paths.py b/lib/spack/spack/paths.py
|
|
index fc617342e8..c733da2286 100644
|
|
--- a/lib/spack/spack/paths.py
|
|
+++ b/lib/spack/spack/paths.py
|
|
@@ -41,7 +41,7 @@
|
|
operating_system_path = os.path.join(module_path, "operating_systems")
|
|
test_path = os.path.join(module_path, "test")
|
|
hooks_path = os.path.join(module_path, "hooks")
|
|
-opt_path = os.path.join(prefix, "opt")
|
|
+opt_path = os.path.join("/", "opt")
|
|
share_path = os.path.join(prefix, "share", "spack")
|
|
etc_path = os.path.join(prefix, "etc", "spack")
|
|
|
|
@@ -53,7 +53,7 @@
|
|
#
|
|
# Things in $spack/var/spack
|
|
#
|
|
-var_path = os.path.join(prefix, "var", "spack")
|
|
+var_path = os.path.join("/", "var", "spack")
|
|
|
|
# read-only things in $spack/var/spack
|
|
repos_path = os.path.join(var_path, "repos")
|
|
--
|
|
2.35.3
|
|
|