Now using CMake upstream.
Created attachment 715071 [details] pastix-6.2.0.ebuild Initial attempt at an ebuild for 6.2.0. For some super-confusing reason it fails to find the gcc/fortran compilers: CMake Error at spm/CMakeLists.txt:14 (project): The CMAKE_C_COMPILER: x86_64-pc-linux-gnu-gcc is not a full path and was not found in the PATH. Tell CMake where to find the compiler by setting either the environment variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. CMake Error at spm/CMakeLists.txt:14 (project): The CMAKE_Fortran_COMPILER: x86_64-pc-linux-gnu-gfortran is not a full path and was not found in the PATH. Tell CMake where to find the compiler by setting either the environment variable "FC" or the CMake cache entry CMAKE_Fortran_COMPILER to the full path to the compiler, or to the compiler name if it is in the PATH. Even though those things are definitely available in PATH. Leaving this here for future references.
(In reply to Andrew Ammerlaan from comment #1) > For some super-confusing reason it fails to find the gcc/fortran compilers: This is because "spm" is a bundled self-contained CMake project, complete with its own "project" declaration - which results in Gentoo customisations applied top-level not being propagated to it. Just get rid of the 'project' line from spm/CMakeLists.txt.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=472f36bcd300da19c6f6953ece0811b63a3134e0 commit 472f36bcd300da19c6f6953ece0811b63a3134e0 Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2021-07-14 16:03:10 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2021-07-14 16:14:45 +0000 sci-libs/pastix: add 6.0.3, masked The ebuild in principle works but there are several features which for various reasons remain problematic (see the package.use.mask entry), and with this being a new major version chances are not all revdeps will be happy with it (hence the overall mask). Testing very much encouraged! Bug: https://bugs.gentoo.org/751034 Signed-off-by: Marek Szuba <marecki@gentoo.org> profiles/base/package.use.mask | 20 + profiles/package.mask | 5 + sci-libs/pastix/Manifest | 1 + .../pastix-6.0.3-cmake-examples-optional.patch | 170 +++++++++ .../files/pastix-6.0.3-cmake-installdirs.patch | 424 +++++++++++++++++++++ .../files/pastix-6.0.3-cmake-python-optional.patch | 64 ++++ .../files/pastix-6.0.3-cmake-spm-project.patch | 12 + .../pastix-6.0.3-multiple-coeftabMemory.patch | 11 + sci-libs/pastix/metadata.xml | 8 +- sci-libs/pastix/pastix-6.0.3.ebuild | 84 ++++ 10 files changed, 797 insertions(+), 2 deletions(-)
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6ff4c8fab70508bb9fb59c730aca88820805c06a commit 6ff4c8fab70508bb9fb59c730aca88820805c06a Author: Marek Szuba <marecki@gentoo.org> AuthorDate: 2021-08-10 11:19:49 +0000 Commit: Marek Szuba <marecki@gentoo.org> CommitDate: 2021-08-10 12:43:00 +0000 profiles: unmask >=sci-libs/pastix-6 Closes: https://bugs.gentoo.org/751034 Signed-off-by: Marek Szuba <marecki@gentoo.org> profiles/package.mask | 5 ----- 1 file changed, 5 deletions(-)