Skip to content
Snippets Groups Projects
Commit 080059b4 authored by Eric Müller's avatar Eric Müller :mountain_bicyclist:
Browse files

Fix oppulance

If starting from scratch the archive file isn't there in do_fetch;
in this case, we can make use of the folder where the freshly
downloaded resources are cloned to.
parent d999fda4
No related branches found
No related tags found
2 merge requests!98create new experimental release,!94Fix oppulance
......@@ -41,18 +41,23 @@ class Oppulance(Package):
git='https://github.com/electronicvisions/{}'.format(res),
tag=release['tag'],
expand=False,
placement=res
)
def do_fetch(self, mirror_only=False):
super(Oppulance, self).do_fetch(mirror_only)
mkdirp(self.stage.source_path)
tar = which('tar')
ln = which('ln')
bash = which('bash')
with working_dir(self.stage.source_path):
for key in self.resources:
for res in self.resources[key]:
tar('xf', res.fetcher.stage.archive_file)
tar('xf', self.stage.archive_file)
if res.fetcher.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')
def install(self, spec, prefix):
......@@ -60,6 +65,6 @@ class Oppulance(Package):
bash('binutils-gdb/ci/00_build_install.sh')
bash('gcc/ci/01_build_install_freestanding.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)
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