could you move the files from /usr/lib64/petsc/share/petsc/matlab/ to /usr/share/octave/site/m/petsc ?
The reason why we are installing all of PETSc into /usr/lib64/petsc is because it enforces its own file system hierarchy which is incompatible with our FSHS. So I would like to leave everything under /usr/lib64/petsc. That said, does creating a symlink work for you? ln -s /usr/lib64/petsc/share/petsc/matlab/ usr/share/octave/site/m/petsc If yes, I am happy to add this to the installation phase (unconditionally).
Directories symlinks aren't allowed by PMS
(In reply to Alessandro Barbieri from comment #2) > Directories symlinks aren't allowed by PMS I see nothing in the PMS specification prohibiting directory symlinks, in particular PMS 13.4, 13.4.1, 13.6. Section 13.4 states: """ Ebuilds must not attempt to merge a symlink on top of a directory. """ but this is not the case here. But this is also a moot point. I can simply install file symlinks. I do not particularly like to move files to /usr/share/octave/site/m/petsc. The matlab files are not octave specific, so /usr/share/octave/ isn't a terrible great place for them. So I would prefer symlinks which would make the files accessible at both places, out of the box for octave and at a known place in the petsc hierarchy.
I see that we don't support MATLAB anymore https://bugs.gentoo.org/466140
(In reply to Alessandro Barbieri from comment #2) > Directories symlinks aren't allowed by PMS You haven't actually answered tamikos question anyway? Does it work for you or not?
Now that MATLAB is unsupported I strongly prefer to have the .m files in /usr/share/octave/site/m/petsc as second option, symlink the directory as third option, symlink the files as fourth option, everything else
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a6f36a0ce2d4741e60807bf6ff9d0858dbc96585 commit a6f36a0ce2d4741e60807bf6ff9d0858dbc96585 Author: Matthias Maier <tamiko@gentoo.org> AuthorDate: 2022-12-28 05:11:20 +0000 Commit: Matthias Maier <tamiko@gentoo.org> CommitDate: 2022-12-28 06:24:50 +0000 sci-mathematics/petsc: add 3.18.2 Closes: https://bugs.gentoo.org/722612 Closes: https://bugs.gentoo.org/846428 Closes: https://bugs.gentoo.org/846425 Closes: https://bugs.gentoo.org/846422 Closes: https://bugs.gentoo.org/846431 Signed-off-by: Matthias Maier <tamiko@gentoo.org> sci-mathematics/petsc/Manifest | 1 + sci-mathematics/petsc/petsc-3.18.2.ebuild | 236 ++++++++++++++++++++++++++++++ 2 files changed, 237 insertions(+)