<div dir="ltr"><div>Hey Gauthier,</div><div><br></div><div>sorry for jumping in late.<br></div><div><br></div><div>Christian has it right here, I was looking into Spack as a way of setting up our CI and maybe moving towards testing variability in user landscapes as well. The main reason I stopped working on it was that the following particularity (some people call it a bug) of the Dune CMake build system clashes with Spack:</div><div>Each Dune module reruns cmake find scripts for dependencies of all Dune modules it depends on instead of importing the full configuration of the upstream modules. Due to this behaviour only modules that were built in the same environment and with the same flags can be safely used together (as their cmake find scripts found the same things).</div><div>For Spack, that means that all variants that you define need to be redundantly defined across all modules, and dependencies between those need to be specified manually. That is neither elegant nor feasible in maintenance.</div><div>The Dune developers have voiced their willingness to abandon this behaviour, but a volunteer to do such a tedious, unrewarding work is yet to be found.</div><div><br></div><div>Best,</div><div>Dominic<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Apr 1, 2020 at 3:29 PM Gauthier Folzan <<a href="mailto:gauthier.folzan@gmail.com">gauthier.folzan@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Christian,</div><div>here is the link : <a href="https://github.com/gauthier12/dune_spack_repo.git" target="_blank">https://github.com/gauthier12/dune_spack_repo.git</a></div><div>It is still work in progress and I am still testing so I don't guarantee anything but it seems to work on ubuntu, centos and archlinux for dune-pyhon with dune-common, dune-geometry, dune-grid, dune-istl and dune-uggrid</div><div>Once you have spack installed, installing dune is quite simple, just add the repo and install dune</div><div>spack repo add dune_spack_repo</div><div>spack install dune-python</div><div></div><div>Cheers <br></div><div>Gauthier <br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Mar 31, 2020 at 4:46 PM Christian Engwer <<a href="mailto:christian.engwer@uni-muenster.de" target="_blank">christian.engwer@uni-muenster.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Gauthier,<br>
<br>
welcome to Dune,<br>
<br>
> Does someone use spack to compile Dune ? If it can be useful to someone,<br>
> the spack repo is on github.<br>
<br>
I think nobody is actively using spack for Dune currently, Dominik had<br>
been workin on spack packages... I think his intention was to ease the<br>
CI setup.<br>
<br>
On the other hand, if spack packages are available, it might become<br>
more appealing for other people ;-) Can you post a link to your repo?<br>
<br>
Thanks<br>
Christian<br>
</blockquote></div>
_______________________________________________<br>
Dune mailing list<br>
<a href="mailto:Dune@lists.dune-project.org" target="_blank">Dune@lists.dune-project.org</a><br>
<a href="https://lists.dune-project.org/mailman/listinfo/dune" rel="noreferrer" target="_blank">https://lists.dune-project.org/mailman/listinfo/dune</a></blockquote></div>