Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
marcmengel committed Nov 14, 2023
1 parent 929333e commit 53d0ebd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/make_packages_yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ os=${2:-`spack arch -o`}

optf=$dir/templates/package_opts.$os

if [ "$(spack --version)" -gt "0.20.0" ]
if [ "$(spack --version)" '>' "0.20.0" ]
then
sd="$(spack arch --platform)/"
else
Expand Down
7 changes: 5 additions & 2 deletions bin/make_spack
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ bootstrap_patchelf() {
spack bootstrap now
spack bootstrap status

spack mirror add --scope site fnal $binary_cache

install_latest patchelf

rm -rf $pdir
Expand All @@ -70,7 +72,7 @@ bootstrap_patchelf() {

find_compilers() {
source $SPACK_ROOT/share/spack/setup-env.sh
spack compiler find --scope site
spack compiler find --scope=site
}

bootstrap_spack() {
Expand All @@ -93,12 +95,13 @@ bootstrap_spack() {
then
make_packages_yaml $SPACK_ROOT
else
if [ "$(spack --version)" -gt "0.20.0" ]
if [ "$(spack --version)" '>' "0.20.0" ]
then
sd="$(spack arch --platform)/"
else
sd=""
fi
echo "Installing stock packages.yaml in $SPACK_ROOT/etc/spack/${sd}${os}"
cp $spackbindir/../templates/packages.yaml.${os} $SPACK_ROOT/etc/spack/${sd}${os}/packages.yaml
fi
}
Expand Down

0 comments on commit 53d0ebd

Please sign in to comment.