Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 846431 - sci-mathematics/petsc-3.16.0 please change matlab files installation path
Summary: sci-mathematics/petsc-3.16.0 please change matlab files installation path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Matthias Maier
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-19 08:13 UTC by Alessandro Barbieri
Modified: 2022-12-28 06:48 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Barbieri 2022-05-19 08:13:22 UTC
could you move the files from /usr/lib64/petsc/share/petsc/matlab/ to /usr/share/octave/site/m/petsc ?
Comment 1 Matthias Maier gentoo-dev 2022-05-26 00:58:55 UTC
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).
Comment 2 Alessandro Barbieri 2022-05-26 15:27:56 UTC
Directories symlinks aren't allowed by PMS
Comment 3 Matthias Maier gentoo-dev 2022-05-26 16:18:45 UTC
(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.
Comment 4 Alessandro Barbieri 2022-05-26 16:29:16 UTC
I see that we don't support MATLAB anymore
https://bugs.gentoo.org/466140
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-26 17:13:35 UTC
(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?
Comment 6 Alessandro Barbieri 2022-05-26 19:15:16 UTC
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
Comment 7 Larry the Git Cow gentoo-dev 2022-12-28 06:48:00 UTC
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(+)