diff --git a/SuperLU-c99.patch b/SuperLU-c99.patch new file mode 100644 index 0000000000000000000000000000000000000000..00498b369e285c68054e95f7e20c5f48be682b6b --- /dev/null +++ b/SuperLU-c99.patch @@ -0,0 +1,18 @@ +Avoid implicit function declarations and implicit ints for improved +compatibility with future compilers. + +Submitted upstream: + +diff --git a/EXAMPLE/cfgmr.c b/EXAMPLE/cfgmr.c +index 0f25f58923aa0c7e..d8f523f9b67fa5ca 100644 +--- a/EXAMPLE/cfgmr.c ++++ b/EXAMPLE/cfgmr.c +@@ -34,6 +34,8 @@ For information on ITSOL contact saad@cs.umn.edu + + #define epsmac 1.0e-16 + ++extern int ccopy_(int *, complex *, int *, complex *, int *); ++extern void caxpy_(int *, complex *, complex *, int *, complex *, int *); + extern void cdotc_(complex *, int *, complex [], int *, complex [], int *); + extern float scnrm2_(int *, complex [], int *); + diff --git a/SuperLU.spec b/SuperLU.spec index 14678bd6366d18e2ce2d8a0e9331e699bd4f8717..3ae8de7379cf28291d644f7df488a4f35bc69c9f 100644 --- a/SuperLU.spec +++ b/SuperLU.spec @@ -1,6 +1,6 @@ Name: SuperLU Version: 6.0.1 -Release: 3 +Release: 4 Summary: Library for the direct solution of large, sparse, nonsymmetric systems of linear equations License: BSD and GPLv2+ URL: http://crd-legacy.lbl.gov/~xiaoye/SuperLU/ @@ -8,6 +8,7 @@ Source0: https://github.com/xiaoyeli/superlu/archive/v%{version}/superlu- BuildRequires: openblas-devel openblas-srpm-macros cmake3 gcc-gfortran csh BuildRequires: chrpath Patch0001: superlu-removemc64.patch +Patch0002: SuperLU-c99.patch %description The library is written in C and is callable from either C or Fortran program. It uses MPI, OpenMP and @@ -64,6 +65,9 @@ chrpath -d %{buildroot}%{_libdir}/libsuperlu.so.6* %doc DOC EXAMPLE FORTRAN %changelog +* Thu Feb 20 2025 pengjian - 6.0.1-4 +- Port to C99 + * Thu Nov 14 2024 Funda Wang - 6.0.1-3 - adopt to new cmake macro