Skip to content

Commit

Permalink
removed use of the gmds_temp branch
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslg committed Aug 29, 2024
1 parent 7315cb2 commit 404869a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
10 changes: 4 additions & 6 deletions build_spack_gmds.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ git clone --depth=1 -b v0.20.3 https://github.com/spack/spack.git
# have a fresh start
#==========================================
# get our recipes
git clone --branch gmds_temp --depth=1 https://github.com/LIHPC-Computational-Geometry/spack_recipes.git
git clone --depth=1 https://github.com/LIHPC-Computational-Geometry/spack_recipes.git
#==========================================
# modifying spack configuration
#==========================================
Expand All @@ -16,15 +16,13 @@ git clone --branch gmds_temp --depth=1 https://github.com/LIHPC-Computational-Ge
# Optionnal: modifying the install_tree variable to make it shorter and more human readable;
# the HASH part in install directory names is removed which can lead to collisions.
# The spack/etc/spack/defaults/config.yaml file can be modified by hand
# - in spack version 0.19.2
#sed -i 's#"${ARCHITECTURE}/${COMPILERNAME}-${COMPILERVER}/${PACKAGE}-${VERSION}-${HASH}"#"${PACKAGE}"#g' spack/etc/spack/defaults/config.yaml
# - in spack version 0.20.1
# - in spack version 0.20.3
#sed -i 's#"{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}"#"{name}"#g' spack/etc/spack/defaults/config.yaml

# to register our recipes; it assumes that spack_recipes and spack are located at
# the same level. You can use the "spack repo add" commands instead of copying the repos.yaml file
#spack repo add ./spack_recipes/meshing_repo
#spack repo add ./spack_recipes/supersede_repo
#spack repo add ./spack_recipes/meshing
#spack repo add ./spack_recipes/meshing_supersede
cp spack_recipes/config/repos.yaml spack/etc/spack/defaults/repos.yaml

# Optionnal: the default tmpdir used to build is defined in spack/etc/spack/defaults/config.yaml
Expand Down
6 changes: 3 additions & 3 deletions dockerfiles/Dockerfile.spack-gmds
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ RUN git clone --depth=1 -b v${SPACK_VERSION} https://github.com/spack/spack.git
sed -i 's#"{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}"#"{name}"#g' spack/etc/spack/defaults/config.yaml
#==========================================
RUN source ./spack/share/spack/setup-env.sh && \
git clone --branch gmds_temp --depth=1 https://github.com/LIHPC-Computational-Geometry/spack_recipes.git &&\
spack repo add ./spack_recipes/meshing_repo &&\
spack repo add ./spack_recipes/supersede_repo &&\
git clone --depth=1 https://github.com/LIHPC-Computational-Geometry/spack_recipes.git &&\
spack repo add ./spack_recipes/meshing &&\
spack repo add ./spack_recipes/meshing_supersede &&\
spack config --scope site add 'packages:all:target:[x86_64]' &&\
spack compiler find &&\
spack external find cmake
Expand Down
6 changes: 3 additions & 3 deletions dockerfiles/Dockerfile.spack-gmds-macos
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ RUN git clone --depth=1 -b v${SPACK_VERSION} https://github.com/spack/spack.git
sed -i 's#"{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}"#"{name}"#g' spack/etc/spack/defaults/config.yaml
#==========================================
RUN source ./spack/share/spack/setup-env.sh && \
git clone --branch gmds_temp --depth=1 https://github.com/LIHPC-Computational-Geometry/spack_recipes.git &&\
spack repo add ./spack_recipes/meshing_repo &&\
spack repo add ./spack_recipes/supersede_repo &&\
git clone --depth=1 https://github.com/LIHPC-Computational-Geometry/spack_recipes.git &&\
spack repo add ./spack_recipes/meshing &&\
spack repo add ./spack_recipes/meshing_supersede &&\
spack config --scope site add 'packages:all:target:[x86_64]' &&\
spack compiler find &&\
spack external find cmake
Expand Down

0 comments on commit 404869a

Please sign in to comment.