Skip to content
Snippets Groups Projects
Commit 57bec9cf authored by Athanasios Karmas's avatar Athanasios Karmas
Browse files

Merge branch 'fix_oppulance' into 'master'

Fix oppulance

See merge request technical-coordination/project-internal/devops/platform/ebrains-spack-builds!94
parents d999fda4 080059b4
No related branches found
No related tags found
2 merge requests!98create new experimental release,!94Fix oppulance
Pipeline #17127 canceled with stage
in 3 seconds
...@@ -41,18 +41,23 @@ class Oppulance(Package): ...@@ -41,18 +41,23 @@ class Oppulance(Package):
git='https://github.com/electronicvisions/{}'.format(res), git='https://github.com/electronicvisions/{}'.format(res),
tag=release['tag'], tag=release['tag'],
expand=False, expand=False,
placement=res
) )
def do_fetch(self, mirror_only=False): def do_fetch(self, mirror_only=False):
super(Oppulance, self).do_fetch(mirror_only) super(Oppulance, self).do_fetch(mirror_only)
mkdirp(self.stage.source_path) mkdirp(self.stage.source_path)
tar = which('tar') tar = which('tar')
ln = which('ln')
bash = which('bash') bash = which('bash')
with working_dir(self.stage.source_path): with working_dir(self.stage.source_path):
for key in self.resources: for key in self.resources:
for res in self.resources[key]: for res in self.resources[key]:
tar('xf', res.fetcher.stage.archive_file) if res.fetcher.stage.archive_file:
tar('xf', self.stage.archive_file) tar('xf', res.fetcher.stage.archive_file)
else:
# freshly download
ln('-sf', res.fetcher.stage.source_path, res.name)
bash('gcc/ci/00_download_prerequisites.sh') bash('gcc/ci/00_download_prerequisites.sh')
def install(self, spec, prefix): def install(self, spec, prefix):
...@@ -60,6 +65,6 @@ class Oppulance(Package): ...@@ -60,6 +65,6 @@ class Oppulance(Package):
bash('binutils-gdb/ci/00_build_install.sh') bash('binutils-gdb/ci/00_build_install.sh')
bash('gcc/ci/01_build_install_freestanding.sh') bash('gcc/ci/01_build_install_freestanding.sh')
bash('newlib/ci/00_build_install.sh') bash('newlib/ci/00_build_install.sh')
bash('oppulance/ci/00_build_install_libstdc++.sh') bash('ci/00_build_install_libstdc++.sh')
mkdirp(spec.prefix) mkdirp(spec.prefix)
install_tree('install/.', spec.prefix) install_tree('install/.', spec.prefix)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment