public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: SY Wang <growl1234@outlook.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mpich] rawhide: Update MPICH to v5.0.2
Date: Tue, 27 Oct 2026 10:03:12 GMT	[thread overview]
Message-ID: <179309539244.1.1561643745929686141.rpms-mpich-669df3afd622@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/mpich
Branch : rawhide
Commit : 669df3afd622adc330e25a1b42d033bf76793b99
Author : SY Wang <growl1234@outlook.com>
Date   : 2026-09-29T13:57:19+08:00
Stats  : +101/-557 in 13 file(s)
URL    : https://src.fedoraproject.org/rpms/mpich/c/669df3afd622adc330e25a1b42d033bf76793b99?branch=rawhide

Log:
Update MPICH to v5.0.2

---
diff --git a/.gitignore b/.gitignore
index c1daaca..ea2967a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,4 @@
 /mpich-4.1.2.tar.gz
 /mpich-4.2.1.tar.gz
 /mpich-4.2.2.tar.gz
+/mpich-5.0.2.tar.gz

diff --git a/0001-pkgconf-drop-linker-flags.patch b/0001-pkgconf-drop-linker-flags.patch
new file mode 100644
index 0000000..db2c44c
--- /dev/null
+++ b/0001-pkgconf-drop-linker-flags.patch
@@ -0,0 +1,24 @@
+From 03b024ee9346babc48a646b6ab98884ebdd49791 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
+Date: Tue, 8 Feb 2022 10:45:41 +0100
+Subject: [PATCH 1/2] pkgconf: drop linker flags
+
+When environment modules are used, libraries are resolved using normal
+linker search options. The rpath argument here is actually completely
+wrong in that case.
+---
+ src/packaging/pkgconfig/mpich.pc.in | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+diff --git a/src/packaging/pkgconfig/mpich.pc.in b/src/packaging/pkgconfig/mpich.pc.in
+index e905ff2..4b3c09a 100644
+--- a/src/packaging/pkgconfig/mpich.pc.in
++++ b/src/packaging/pkgconfig/mpich.pc.in
+@@ -9,7 +9,7 @@ Description: High Performance and portable MPI
+ Version: @MPICH_VERSION@
+ URL: http://www.mcs.anl.gov/research/projects/mpich
+ Requires:
+-Libs: @WRAPPER_C_DYNAMIC_LOADING_FLAGS@ @WRAPPER_LDFLAGS@ -L${libdir} -l@MPILIBNAME@ @LPMPILIBNAME@ @WRAPPER_LIBS@
++Libs: -L${libdir} -l@MPILIBNAME@ @LPMPILIBNAME@
+ Cflags: @WRAPPER_CPPFLAGS@ @WRAPPER_CFLAGS@ -I${includedir}
+ 
+ # pkg-config does not understand Cxxflags, etc. So we allow users to

diff --git a/0001-pkgconf-remove-optimization-and-link-flags-from-pkgc.patch b/0001-pkgconf-remove-optimization-and-link-flags-from-pkgc.patch
deleted file mode 100644
index 2fbee32..0000000
--- a/0001-pkgconf-remove-optimization-and-link-flags-from-pkgc.patch
+++ /dev/null
@@ -1,44 +0,0 @@
-From cb3e5715326c43779b51e1cab1519282c50199c1 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
-Date: Tue, 8 Feb 2022 10:19:12 +0100
-Subject: [PATCH 1/4] pkgconf: remove optimization and link flags from pkgconf
- file
-
-Those flags are generally something "private" to a particular build. If we build
-mpich with -O2, it does not mean that some other program using the library should
-be built with -O2.
-
-In package builds in Fedora we ended up with:
-
-WRAPPER_LDFLAGS = -Wl,-z,relro -Wl,--as-needed  -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -Wl,--build-id=sha1 -Wl,-dT,/builddir/build/BUILD/mpich-3.4.1/.package_note-mpich-3.4.1-11.fc36.x86_64.ld -Lsystem/lib
-
-WRAPPER_CFLAGS = -O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1  -m64  -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection
-
-None of those are appropriate to be exported to dependent projects.
-For https://fedoraproject.org/wiki/Changes/Package_information_on_ELF_objects.
----
- src/packaging/pkgconfig/mpich.pc.in | 10 +++++-----
- 1 file changed, 5 insertions(+), 5 deletions(-)
-
-diff --git a/src/packaging/pkgconfig/mpich.pc.in b/src/packaging/pkgconfig/mpich.pc.in
-index e905ff2e20..ff6dc35807 100644
---- a/src/packaging/pkgconfig/mpich.pc.in
-+++ b/src/packaging/pkgconfig/mpich.pc.in
-@@ -9,12 +9,12 @@ Description: High Performance and portable MPI
- Version: @MPICH_VERSION@
- URL: http://www.mcs.anl.gov/research/projects/mpich
- Requires:
--Libs: @WRAPPER_C_DYNAMIC_LOADING_FLAGS@ @WRAPPER_LDFLAGS@ -L${libdir} -l@MPILIBNAME@ @LPMPILIBNAME@ @WRAPPER_LIBS@
--Cflags: @WRAPPER_CPPFLAGS@ @WRAPPER_CFLAGS@ -I${includedir}
-+Libs: @WRAPPER_C_DYNAMIC_LOADING_FLAGS@ -L${libdir} -l@MPILIBNAME@ @LPMPILIBNAME@
-+Cflags: @WRAPPER_CPPFLAGS@ -I${includedir}
- 
- # pkg-config does not understand Cxxflags, etc. So we allow users to
- # query them using the --variable option
- 
--cxxflags=@WRAPPER_CPPFLAGS@ @WRAPPER_CXXFLAGS@ -I${includedir}
--fflags=@WRAPPER_FFLAGS@ -I${includedir}
--fcflags=@WRAPPER_FCFLAGS@ -I${includedir}
-+cxxflags=@WRAPPER_CPPFLAGS@ -I${includedir}
-+fflags=-I${includedir}
-+fcflags=-I${includedir}

diff --git a/0002-Make-mpich.module-useful.patch b/0002-Make-mpich.module-useful.patch
new file mode 100644
index 0000000..90eb910
--- /dev/null
+++ b/0002-Make-mpich.module-useful.patch
@@ -0,0 +1,45 @@
+From 27c409c30875ea3ddb8e4bfc6add07c5a3c7780a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
+Date: Sun, 10 Apr 2022 09:36:17 +0200
+Subject: [PATCH 2/2] Make mpich.module useful
+
+---
+ src/packaging/envmods/mpich.module.in | 25 ++++++++++++++++++-------
+ 1 file changed, 18 insertions(+), 7 deletions(-)
+
+diff --git a/src/packaging/envmods/mpich.module.in b/src/packaging/envmods/mpich.module.in
+index 3d6b4fa623..b8283274ee 100644
+--- a/src/packaging/envmods/mpich.module.in
++++ b/src/packaging/envmods/mpich.module.in
+@@ -3,12 +3,24 @@
+ #  MPICH module for use with 'environment-modules' package:
+ # 
+ 
++# Only allow one mpi module to be loaded at a time
++conflict mpi
++
+ # Define prefix so PATH and MANPATH can be updated.
+-setenv        prefix        @prefix@
+-setenv        exec_prefix   @exec_prefix@
++setenv        MPI_BIN       @LIBDIR@/bin
++setenv        MPI_SYSCONFIG @sysconfdir@/@MPINAME@-@ARCH@
++setenv        MPI_FORTRAN_MOD_DIR @fortranmoddir@/@MPINAME@
++setenv        MPI_INCLUDE   @includedir@
++setenv        MPI_LIB       @libdir@
++setenv        MPI_MAN       @mandir@
++setenv        MPI_PYTHON_SITEARCH	@py2sitearch@/@MPINAME@
++setenv        MPI_PYTHON2_SITEARCH	@py2sitearch@/@MPINAME@
++setenv        MPI_PYTHON3_SITEARCH	@py3sitearch@/@MPINAME@
++setenv        MPI_COMPILER  @MPINAME@-@ARCH@
++setenv        MPI_SUFFIX    _@MPINAME@
++setenv        MPI_HOME      @LIBDIR@
+ prepend-path  PATH          @bindir@
+-prepend-path  MANPATH       @mandir@
+-
+-# Undefine prefix and exec_prefix which are too generic environment variables.
+-unsetenv      prefix
+-unsetenv      exec_prefix
++prepend-path  LD_LIBRARY_PATH @libdir@
++prepend-path  MANPATH       :@mandir@
++prepend-path  PKG_CONFIG_PATH @LIBDIR@/lib/pkgconfig
++prepend-path  CMAKE_PREFIX_PATH @LIBDIR@

diff --git a/0002-pkgconf-also-drop-rpath-flags-from-pkgconf-file.patch b/0002-pkgconf-also-drop-rpath-flags-from-pkgconf-file.patch
deleted file mode 100644
index 46e6c13..0000000
--- a/0002-pkgconf-also-drop-rpath-flags-from-pkgconf-file.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 03b024ee9346babc48a646b6ab98884ebdd49791 Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
-Date: Tue, 8 Feb 2022 10:45:41 +0100
-Subject: [PATCH 2/4] pkgconf: also drop rpath flags from pkgconf file
-
-When environment modules are used, libraries are resolved using normal
-linker search options. The rpath argument here is actually completely
-wrong in that case.
----
- src/packaging/pkgconfig/mpich.pc.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/src/packaging/pkgconfig/mpich.pc.in b/src/packaging/pkgconfig/mpich.pc.in
-index ff6dc35807..5ad7e8bcbc 100644
---- a/src/packaging/pkgconfig/mpich.pc.in
-+++ b/src/packaging/pkgconfig/mpich.pc.in
-@@ -9,7 +9,7 @@ Description: High Performance and portable MPI
- Version: @MPICH_VERSION@
- URL: http://www.mcs.anl.gov/research/projects/mpich
- Requires:
--Libs: @WRAPPER_C_DYNAMIC_LOADING_FLAGS@ -L${libdir} -l@MPILIBNAME@ @LPMPILIBNAME@
-+Libs: -L${libdir} -l@MPILIBNAME@ @LPMPILIBNAME@
- Cflags: @WRAPPER_CPPFLAGS@ -I${includedir}
- 
- # pkg-config does not understand Cxxflags, etc. So we allow users to

diff --git a/0003-Drop-build-flags-e.g.-specs.-and-lto-from-mpi-wrappe.patch b/0003-Drop-build-flags-e.g.-specs.-and-lto-from-mpi-wrappe.patch
deleted file mode 100644
index ad427f7..0000000
--- a/0003-Drop-build-flags-e.g.-specs.-and-lto-from-mpi-wrappe.patch
+++ /dev/null
@@ -1,148 +0,0 @@
-From 695102787fde0b3adb3917b12b97f8c49f7f57a5 Mon Sep 17 00:00:00 2001
-From: rpm-build <rpm-build>
-Date: Thu, 2 Mar 2023 17:50:52 -0700
-Subject: [PATCH 3/3] Drop build flags, e.g. -specs... and -lto from mpi
- wrappers (mpicc and mpicxx)
-
-For discussion see:
-https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/7TFWEKTDWBYBHEGMIWBVI3AVGORZGNBS/
----
- src/env/mpicc.bash.in   | 8 ++++----
- src/env/mpicc.sh.in     | 8 ++++----
- src/env/mpicxx.bash.in  | 8 ++++----
- src/env/mpicxx.sh.in    | 8 ++++----
- src/env/mpifort.bash.in | 6 +++---
- src/env/mpifort.sh.in   | 6 +++---
- 6 files changed, 22 insertions(+), 22 deletions(-)
-
-diff --git a/src/env/mpicc.bash.in b/src/env/mpicc.bash.in
-index 3fc695f..d8659e5 100644
---- a/src/env/mpicc.bash.in
-+++ b/src/env/mpicc.bash.in
-@@ -247,13 +247,13 @@ if [ -n "$profConf" ] ; then
-     fi
- fi
- 
--final_cflags="@MPICH_MPICC_CFLAGS@ @WRAPPER_CFLAGS@"
--final_cppflags="@MPICH_MPICC_CPPFLAGS@ @WRAPPER_CPPFLAGS@"
--final_ldflags="@MPICH_MPICC_LDFLAGS@ @WRAPPER_LDFLAGS@"
-+final_cflags="@MPICH_MPICC_CFLAGS@"
-+final_cppflags="@MPICH_MPICC_CPPFLAGS@"
-+final_ldflags="@MPICH_MPICC_LDFLAGS@"
- final_libs="@MPICH_MPICC_LIBS@"
- if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then
-     final_ldflags="${final_ldflags} @LDFLAGS@"
--    final_libs="${final_libs} __LIBS_TO_BE_FILLED_AT_INSTALL_TIME__"
-+    final_libs="${final_libs}"
- fi
- 
- # -----------------------------------------------------------------------
-diff --git a/src/env/mpicc.sh.in b/src/env/mpicc.sh.in
-index 99a8c90..e093907 100644
---- a/src/env/mpicc.sh.in
-+++ b/src/env/mpicc.sh.in
-@@ -253,13 +253,13 @@ if [ -n "$profConf" ] ; then
-     fi
- fi
- 
--final_cflags="@MPICH_MPICC_CFLAGS@ @WRAPPER_CFLAGS@"
--final_cppflags="@MPICH_MPICC_CPPFLAGS@ @WRAPPER_CPPFLAGS@"
--final_ldflags="@MPICH_MPICC_LDFLAGS@ @WRAPPER_LDFLAGS@"
-+final_cflags="@MPICH_MPICC_CFLAGS@"
-+final_cppflags="@MPICH_MPICC_CPPFLAGS@"
-+final_ldflags="@MPICH_MPICC_LDFLAGS@"
- final_libs="@MPICH_MPICC_LIBS@"
- if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then
-     final_ldflags="${final_ldflags} @LDFLAGS@"
--    final_libs="${final_libs} __LIBS_TO_BE_FILLED_AT_INSTALL_TIME__"
-+    final_libs="${final_libs}"
- fi
- 
- # -----------------------------------------------------------------------
-diff --git a/src/env/mpicxx.bash.in b/src/env/mpicxx.bash.in
-index 29566ba..acf897b 100644
---- a/src/env/mpicxx.bash.in
-+++ b/src/env/mpicxx.bash.in
-@@ -253,13 +253,13 @@ if [ -n "$profConf" ] ; then
-     fi
- fi
- 
--final_cxxflags="@MPICH_MPICXX_CXXFLAGS@ @WRAPPER_CXXFLAGS@"
--final_cppflags="@MPICH_MPICXX_CPPFLAGS@ @WRAPPER_CPPFLAGS@"
--final_ldflags="@MPICH_MPICXX_LDFLAGS@ @WRAPPER_LDFLAGS@"
-+final_cxxflags="@MPICH_MPICXX_CXXFLAGS@"
-+final_cppflags="@MPICH_MPICXX_CPPFLAGS@"
-+final_ldflags="@MPICH_MPICXX_LDFLAGS@"
- final_libs="@MPICH_MPICXX_LIBS@"
- if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then
-     final_ldflags="${final_ldflags} @LDFLAGS@"
--    final_libs="${final_libs} __LIBS_TO_BE_FILLED_AT_INSTALL_TIME__"
-+    final_libs="${final_libs}"
- fi
- 
- # A temporary statement to invoke the compiler
-diff --git a/src/env/mpicxx.sh.in b/src/env/mpicxx.sh.in
-index 0b830fe..36c2486 100644
---- a/src/env/mpicxx.sh.in
-+++ b/src/env/mpicxx.sh.in
-@@ -259,13 +259,13 @@ if [ -n "$profConf" ] ; then
-     fi
- fi
- 
--final_cxxflags="@MPICH_MPICXX_CXXFLAGS@ @WRAPPER_CXXFLAGS@"
--final_cppflags="@MPICH_MPICXX_CPPFLAGS@ @WRAPPER_CPPFLAGS@"
--final_ldflags="@MPICH_MPICXX_LDFLAGS@ @WRAPPER_LDFLAGS@"
-+final_cxxflags="@MPICH_MPICXX_CXXFLAGS@"
-+final_cppflags="@MPICH_MPICXX_CPPFLAGS@"
-+final_ldflags="@MPICH_MPICXX_LDFLAGS@"
- final_libs="@MPICH_MPICXX_LIBS@"
- if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then
-     final_ldflags="${final_ldflags} @LDFLAGS@"
--    final_libs="${final_libs} __LIBS_TO_BE_FILLED_AT_INSTALL_TIME__"
-+    final_libs="${final_libs}"
- fi
- 
- # A temporary statement to invoke the compiler
-diff --git a/src/env/mpifort.bash.in b/src/env/mpifort.bash.in
-index 5312aea..c1e557b 100644
---- a/src/env/mpifort.bash.in
-+++ b/src/env/mpifort.bash.in
-@@ -335,12 +335,12 @@ elif [ -n "$FCMODINC" ] ; then
-     FCMODDIRS="${FCMODINC}$modincdir"
- fi
- 
--final_fcflags="@MPICH_MPIFORT_FCFLAGS@ @WRAPPER_FCFLAGS@"
--final_ldflags="@MPICH_MPIFORT_LDFLAGS@ @WRAPPER_LDFLAGS@"
-+final_fcflags="@MPICH_MPIFORT_FCFLAGS@"
-+final_ldflags="@MPICH_MPIFORT_LDFLAGS@"
- final_libs="@MPICH_MPIFORT_LIBS@"
- if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then
-     final_ldflags="${final_ldflags} @LDFLAGS@"
--    final_libs="${final_libs} __LIBS_TO_BE_FILLED_AT_INSTALL_TIME__"
-+    final_libs="${final_libs}"
- fi
- 
- extra_f77_flags="@WRAPPER_EXTRA_F77_FLAGS@"
-diff --git a/src/env/mpifort.sh.in b/src/env/mpifort.sh.in
-index 902b0f7..95c1232 100644
---- a/src/env/mpifort.sh.in
-+++ b/src/env/mpifort.sh.in
-@@ -352,12 +352,12 @@ elif [ -n "$FCMODINC" ] ; then
-     FCMODDIRS="${FCMODINC}$modincdir"
- fi
- 
--final_fcflags="@MPICH_MPIFORT_FCFLAGS@ @WRAPPER_FCFLAGS@"
--final_ldflags="@MPICH_MPIFORT_LDFLAGS@ @WRAPPER_LDFLAGS@"
-+final_fcflags="@MPICH_MPIFORT_FCFLAGS@"
-+final_ldflags="@MPICH_MPIFORT_LDFLAGS@"
- final_libs="@MPICH_MPIFORT_LIBS@"
- if test "@INTERLIB_DEPS@" = "no" -o "${interlib_deps}" = "no" ; then
-     final_ldflags="${final_ldflags} @LDFLAGS@"
--    final_libs="${final_libs} __LIBS_TO_BE_FILLED_AT_INSTALL_TIME__"
-+    final_libs="${final_libs}"
- fi
- 
- extra_f77_flags="@WRAPPER_EXTRA_F77_FLAGS@"
--- 
-2.40.0.rc1
-

diff --git a/0004-Make-mpich.module-useful.patch b/0004-Make-mpich.module-useful.patch
deleted file mode 100644
index f18ef39..0000000
--- a/0004-Make-mpich.module-useful.patch
+++ /dev/null
@@ -1,45 +0,0 @@
-From 27c409c30875ea3ddb8e4bfc6add07c5a3c7780a Mon Sep 17 00:00:00 2001
-From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
-Date: Sun, 10 Apr 2022 09:36:17 +0200
-Subject: [PATCH 4/4] Make mpich.module useful
-
----
- src/packaging/envmods/mpich.module.in | 25 ++++++++++++++++++-------
- 1 file changed, 18 insertions(+), 7 deletions(-)
-
-diff --git a/src/packaging/envmods/mpich.module.in b/src/packaging/envmods/mpich.module.in
-index 3d6b4fa623..b8283274ee 100644
---- a/src/packaging/envmods/mpich.module.in
-+++ b/src/packaging/envmods/mpich.module.in
-@@ -3,12 +3,24 @@
- #  MPICH module for use with 'environment-modules' package:
- # 
- 
-+# Only allow one mpi module to be loaded at a time
-+conflict mpi
-+
- # Define prefix so PATH and MANPATH can be updated.
--setenv        prefix        @prefix@
--setenv        exec_prefix   @exec_prefix@
-+setenv        MPI_BIN       @LIBDIR@/bin
-+setenv        MPI_SYSCONFIG @sysconfdir@/@MPINAME@-@ARCH@
-+setenv        MPI_FORTRAN_MOD_DIR @fortranmoddir@/@MPINAME@
-+setenv        MPI_INCLUDE   @includedir@
-+setenv        MPI_LIB       @libdir@
-+setenv        MPI_MAN       @mandir@
-+setenv        MPI_PYTHON_SITEARCH	@py2sitearch@/@MPINAME@
-+setenv        MPI_PYTHON2_SITEARCH	@py2sitearch@/@MPINAME@
-+setenv        MPI_PYTHON3_SITEARCH	@py3sitearch@/@MPINAME@
-+setenv        MPI_COMPILER  @MPINAME@-@ARCH@
-+setenv        MPI_SUFFIX    _@MPINAME@
-+setenv        MPI_HOME      @LIBDIR@
- prepend-path  PATH          @bindir@
--prepend-path  MANPATH       @mandir@
--
--# Undefine prefix and exec_prefix which are too generic environment variables.
--unsetenv      prefix
--unsetenv      exec_prefix
-+prepend-path  LD_LIBRARY_PATH @libdir@
-+prepend-path  MANPATH       :@mandir@
-+prepend-path  PKG_CONFIG_PATH @LIBDIR@/lib/pkgconfig
-+prepend-path  CMAKE_PREFIX_PATH @LIBDIR@

diff --git a/esac-syntax-fix.diff b/esac-syntax-fix.diff
deleted file mode 100644
index e863798..0000000
--- a/esac-syntax-fix.diff
+++ /dev/null
@@ -1,103 +0,0 @@
---- mpich-3.4.1/src/mpl/configure.ac~	2021-01-20 19:04:56.000000000 +0100
-+++ mpich-3.4.1/src/mpl/configure.ac	2021-05-17 09:45:20.178904241 +0200
-@@ -426,99 +426,7 @@
- 
-     linux86_cycle|linux86_cycle_2)
-     
--# The following AC_TRY_RUN statements are needed because x86_64 compilers
--# usually know about rdtscp but the cpu may or may not actually implement the
--# feature.  This is not cross-compile safe, unfortunately.  In the long run we
--# should allow the user to override this with a configure flag.
--    AC_CACHE_CHECK([that linux86 cycle counter is available],
--        pac_cv_linux86_cycle,
--            AC_TRY_RUN([
--int main()
--{
--    /* rdtscp */
--    long long var, *var_ptr=&var;
--    __asm__ __volatile__("rdtscp; shl \$32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
--    return 0;
--}
--            ],pac_cv_linux86_cycle=rdtscp,
--                AC_TRY_RUN([[
--int main()
--{
--    /* cpuid 64 */
--    long long var, *var_ptr=&var;
--    __asm__ __volatile__("push %%rbx ; cpuid ; rdtsc ; pop %%rbx ; shl $32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
--    return 0;
--}
--                ]],pac_cv_linux86_cycle=cpuid_rdtsc64,
--                    AC_TRY_RUN([[[
--int main()
--{
--    /* cpuid 32 */
--    long long var, *var_ptr=&var;
--    __asm__ __volatile__("push %%ebx ; cpuid ; rdtsc ; pop %%ebx" : "=A" (*var_ptr) : : "ecx");
--    return 0;
--}
--                    ]]],pac_cv_linux86_cycle=cpuid_rdtsc32,
--                        AC_TRY_RUN([[[[
--int main()
--{
--    /* simple */
--    long long var, *var_ptr=&var;
--    __asm__ __volatile__("rdtsc" : "=A" (*var_ptr));
--    return 0;
--}
--                        ]]]],pac_cv_linux86_cycle=rdtsc,
--                        pac_cv_linux86_cycle=no)
--                    )
--                ),
--dnl The if-cross-compiling clause from the first AC_TRY_RUN.  Hope that if the
--dnl compiler knows about the instruction then it's supported by the target
--dnl platform.
--                AC_TRY_COMPILE(,[[
--                    long long var, *var_ptr=&var;
--                    __asm__ __volatile__("rdtscp; shl \$32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
--                ]],pac_cv_linux86_cycle=rdtscp,
--                    AC_TRY_COMPILE(,[[[
--                        long long var, *var_ptr=&var;
--                        __asm__ __volatile__("push %%rbx ; cpuid ; rdtsc ; pop %%rbx ; shl $32, %%rdx; or %%rdx, %%rax" : "=a" (*var_ptr) : : "ecx", "rdx");
--                    ]]],pac_cv_linux86_cycle=cpuid_rdtsc64,
--                        AC_TRY_COMPILE(,[[[[
--                            long long var, *var_ptr=&var;
--                            __asm__ __volatile__("push %%ebx ; cpuid ; rdtsc ; pop %%ebx" : "=A" (*var_ptr) : : "ecx");
--                        ]]]],pac_cv_linux86_cycle=cpuid_rdtsc32,
--                            AC_TRY_COMPILE(,[[[[[
--                                long long var, *var_ptr=&var;
--                                __asm__ __volatile__("rdtsc" : "=A" (*var_ptr));
--                            ]]]]],pac_cv_linux86_cycle=rdtsc,
--                            pac_cv_linux86_cycle=no)
--                        )
--                    )
--                )
--            )
--    )
--
--    case "$pac_cv_linux86_cycle" in
--        "rdtscp")
--            AC_DEFINE(LINUX86_CYCLE_RDTSCP,1,[Define which x86 cycle counter to use])
--	    ;;
--        "cpuid_rdtsc64")
--            AC_DEFINE(LINUX86_CYCLE_CPUID_RDTSC64,1,[Define which x86 cycle counter to use])
--            ;;
--        "cpuid_rdtsc32")
--            AC_DEFINE(LINUX86_CYCLE_CPUID_RDTSC32,1,[Define which x86 cycle counter to use])
--	    ;;
--        "rdtsc")
--            AC_DEFINE(LINUX86_CYCLE_RDTSC,1,[Define which x86 cycle counter to use])
--	    ;;
--        *)
--            cpu_gcc_x86_cycle=no
--	    ;;
--    esac
--
--    if test "$cpu_gcc_x86_cycle" = "no" ; then
--        AC_MSG_ERROR([Linux86 cycle counter is not available on this system and or with the $CC compiler])
--    fi
--    MPL_TIMER_TYPE="long long"
-+    AC_MSG_ERROR([Linux86 cycle counter is not available])
-     ;;
- 
-     gcc_ia64_cycle)

diff --git a/mpich-aclocal_cc-implicit-int.patch b/mpich-aclocal_cc-implicit-int.patch
deleted file mode 100644
index e093283..0000000
--- a/mpich-aclocal_cc-implicit-int.patch
+++ /dev/null
@@ -1,124 +0,0 @@
-aclocal_cc.m4: Remove use of implicit int from weak symbol checks
-
-Implicit int is no longer part of the C language since the 1999
-revision.
-
-Submitted upstream: <https://github.com/pmodels/mpich/pull/6301>
-
-diff --git a/confdb/aclocal_cc.m4 b/confdb/aclocal_cc.m4
-index a85e082..2710ada 100644
---- a/confdb/aclocal_cc.m4
-+++ b/confdb/aclocal_cc.m4
-@@ -381,7 +381,7 @@ AC_CACHE_CHECK([for multiple weak symbol support], pac_cv_prog_c_multiple_weak_s
-         #pragma weak PFoo_ = Foo
-         #pragma weak pfoo_ = Foo
-         int Foo(int);
--        int Foo(a) { return a; }
-+        int Foo(int a) { return a; }
-     ]])],[AC_LANG_SOURCE([[
-         extern int PFoo(int), PFoo_(int), pfoo_(int);
-         int main() {
-diff --git a/modules/json-c/autoconf-archive/m4/aclocal_cc.m4 b/modules/json-c/autoconf-archive/m4/aclocal_cc.m4
-index 8a1552d..cd28a4f 100644
---- a/modules/json-c/autoconf-archive/m4/aclocal_cc.m4
-+++ b/modules/json-c/autoconf-archive/m4/aclocal_cc.m4
-@@ -383,7 +383,7 @@ extern int pfoo_(int);
- #pragma weak PFoo_ = Foo
- #pragma weak pfoo_ = Foo
- int Foo(int);
--int Foo(a) { return a; }
-+int Foo(int a) { return a; }
-     ])
- ],[
-     AC_LANG_SOURCE([
-diff --git a/modules/yaksa/m4/aclocal_cc.m4 b/modules/yaksa/m4/aclocal_cc.m4
-index d15d674..9fcf485 100644
---- a/modules/yaksa/m4/aclocal_cc.m4
-+++ b/modules/yaksa/m4/aclocal_cc.m4
-@@ -422,7 +422,7 @@ extern int pfoo_(int);
- #pragma weak PFoo_ = Foo
- #pragma weak pfoo_ = Foo
- int Foo(int);
--int Foo(a) { return a; }
-+int Foo(int a) { return a; }
-     ])
- ],[
-     AC_LANG_SOURCE([
-diff --git a/src/mpi/romio/confdb/aclocal_cc.m4 b/src/mpi/romio/confdb/aclocal_cc.m4
-index a85e082..2710ada 100644
---- a/src/mpi/romio/confdb/aclocal_cc.m4
-+++ b/src/mpi/romio/confdb/aclocal_cc.m4
-@@ -381,7 +381,7 @@ AC_CACHE_CHECK([for multiple weak symbol support], pac_cv_prog_c_multiple_weak_s
-         #pragma weak PFoo_ = Foo
-         #pragma weak pfoo_ = Foo
-         int Foo(int);
--        int Foo(a) { return a; }
-+        int Foo(int a) { return a; }
-     ]])],[AC_LANG_SOURCE([[
-         extern int PFoo(int), PFoo_(int), pfoo_(int);
-         int main() {
-diff --git a/src/mpi/romio/mpl/confdb/aclocal_cc.m4 b/src/mpi/romio/mpl/confdb/aclocal_cc.m4
-index a85e082..2710ada 100644
---- a/src/mpi/romio/mpl/confdb/aclocal_cc.m4
-+++ b/src/mpi/romio/mpl/confdb/aclocal_cc.m4
-@@ -381,7 +381,7 @@ AC_CACHE_CHECK([for multiple weak symbol support], pac_cv_prog_c_multiple_weak_s
-         #pragma weak PFoo_ = Foo
-         #pragma weak pfoo_ = Foo
-         int Foo(int);
--        int Foo(a) { return a; }
-+        int Foo(int a) { return a; }
-     ]])],[AC_LANG_SOURCE([[
-         extern int PFoo(int), PFoo_(int), pfoo_(int);
-         int main() {
-diff --git a/src/mpl/confdb/aclocal_cc.m4 b/src/mpl/confdb/aclocal_cc.m4
-index a85e082..2710ada 100644
---- a/src/mpl/confdb/aclocal_cc.m4
-+++ b/src/mpl/confdb/aclocal_cc.m4
-@@ -381,7 +381,7 @@ AC_CACHE_CHECK([for multiple weak symbol support], pac_cv_prog_c_multiple_weak_s
-         #pragma weak PFoo_ = Foo
-         #pragma weak pfoo_ = Foo
-         int Foo(int);
--        int Foo(a) { return a; }
-+        int Foo(int a) { return a; }
-     ]])],[AC_LANG_SOURCE([[
-         extern int PFoo(int), PFoo_(int), pfoo_(int);
-         int main() {
-diff --git a/src/pm/hydra/confdb/aclocal_cc.m4 b/src/pm/hydra/confdb/aclocal_cc.m4
-index a85e082..2710ada 100644
---- a/src/pm/hydra/confdb/aclocal_cc.m4
-+++ b/src/pm/hydra/confdb/aclocal_cc.m4
-@@ -381,7 +381,7 @@ AC_CACHE_CHECK([for multiple weak symbol support], pac_cv_prog_c_multiple_weak_s
-         #pragma weak PFoo_ = Foo
-         #pragma weak pfoo_ = Foo
-         int Foo(int);
--        int Foo(a) { return a; }
-+        int Foo(int a) { return a; }
-     ]])],[AC_LANG_SOURCE([[
-         extern int PFoo(int), PFoo_(int), pfoo_(int);
-         int main() {
-diff --git a/test/mpi/confdb/aclocal_cc.m4 b/test/mpi/confdb/aclocal_cc.m4
-index a85e082..2710ada 100644
---- a/test/mpi/confdb/aclocal_cc.m4
-+++ b/test/mpi/confdb/aclocal_cc.m4
-@@ -381,7 +381,7 @@ AC_CACHE_CHECK([for multiple weak symbol support], pac_cv_prog_c_multiple_weak_s
-         #pragma weak PFoo_ = Foo
-         #pragma weak pfoo_ = Foo
-         int Foo(int);
--        int Foo(a) { return a; }
-+        int Foo(int a) { return a; }
-     ]])],[AC_LANG_SOURCE([[
-         extern int PFoo(int), PFoo_(int), pfoo_(int);
-         int main() {
-diff --git a/test/mpi/dtpools/confdb/aclocal_cc.m4 b/test/mpi/dtpools/confdb/aclocal_cc.m4
-index a85e082..2710ada 100644
---- a/test/mpi/dtpools/confdb/aclocal_cc.m4
-+++ b/test/mpi/dtpools/confdb/aclocal_cc.m4
-@@ -381,7 +381,7 @@ AC_CACHE_CHECK([for multiple weak symbol support], pac_cv_prog_c_multiple_weak_s
-         #pragma weak PFoo_ = Foo
-         #pragma weak pfoo_ = Foo
-         int Foo(int);
--        int Foo(a) { return a; }
-+        int Foo(int a) { return a; }
-     ]])],[AC_LANG_SOURCE([[
-         extern int PFoo(int), PFoo_(int), pfoo_(int);
-         int main() {

diff --git a/mpich-configure-max_align_t.patch b/mpich-configure-max_align_t.patch
deleted file mode 100644
index bc20d05..0000000
--- a/mpich-configure-max_align_t.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-Remove spurious argument to AC_CHECK_ALIGNOF, which caused this
-configure test to fail.
-
-Submitted upstream: <https://github.com/pmodels/mpich/pull/6302>
-
-diff --git a/configure.ac b/configure.ac
-index 3e2aa2cb7e828675..f76eb49833bb358c 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -2701,7 +2701,7 @@ if test "$MPID_NO_FLOAT16" != "yes" ; then
- fi
- 
- # ----------------------------------------------------------------------------
--AC_CHECK_ALIGNOF([max_align_t],[0],[#include <stddef.h>])
-+AC_CHECK_ALIGNOF([max_align_t],[#include <stddef.h>])
- 
- if test "$ac_cv_alignof_max_align_t" != "0" ; then
-     AC_DEFINE_UNQUOTED(MAX_ALIGNMENT,$ac_cv_alignof_max_align_t,[Controls byte alignment of structures (for aligning allocated structures)])

diff --git a/mpich-json-configure-__thread.patch b/mpich-json-configure-__thread.patch
deleted file mode 100644
index 2959ae8..0000000
--- a/mpich-json-configure-__thread.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-Do not call undeclared exit function in __thread support check
-
-Submitted upstream: <https://github.com/pmodels/json-c/pull/2>
-
-diff --git a/modules/json-c/configure.ac b/modules/json-c/configure.ac
-index 9eb80bcf1c1d2e62..1511d7def23e8c39 100644
---- a/modules/json-c/configure.ac
-+++ b/modules/json-c/configure.ac
-@@ -69,7 +69,7 @@ AC_CACHE_CHECK([for __thread support], ac_cv___thread, [dnl
- AC_LINK_IFELSE([dnl
- AC_LANG_PROGRAM([[#undef __thread
- static __thread int a; int foo (int b) { return a + b; }]],
--		[[exit (foo (0));]])],
-+		[[return foo (0);]])],
- 	       ac_cv___thread=yes, ac_cv___thread=no)
- ])
- AS_IF([test "x$ac_cv___thread" != xno],

diff --git a/mpich.spec b/mpich.spec
index 173a671..c2853c3 100644
--- a/mpich.spec
+++ b/mpich.spec
@@ -1,6 +1,9 @@
+%global somajor 12
+%global mpi_abi_somajor 1
+
 Summary:        A high-performance implementation of MPI
 Name:           mpich
-Version:        4.2.2
+Version:        5.0.2
 Release:        %autorelease
 License:        mpich2
 URL:            https://www.mpich.org/
@@ -9,20 +12,10 @@ Source0:        https://www.mpich.org/static/downloads/%{version}/%{name}-%{vers
 Source1:        mpich.macros
 Source3:        mpich.pth.py3
 
-Patch:          0001-pkgconf-remove-optimization-and-link-flags-from-pkgc.patch
-Patch:          0002-pkgconf-also-drop-rpath-flags-from-pkgconf-file.patch
-Patch:          0003-Drop-build-flags-e.g.-specs.-and-lto-from-mpi-wrappe.patch
-Patch:          0004-Make-mpich.module-useful.patch
-# TODO: submit ^ upstream
-
-Patch:          mpich-configure-max_align_t.patch
-Patch:          mpich-aclocal_cc-implicit-int.patch
-Patch:          mpich-json-configure-__thread.patch
+Patch:          0001-pkgconf-drop-linker-flags.patch
+Patch:          0002-Make-mpich.module-useful.patch
 
 BuildRequires:  make
-BuildRequires:  autoconf
-BuildRequires:  automake
-BuildRequires:  libtool
 BuildRequires:  gcc
 BuildRequires:  gcc-c++
 BuildRequires:  gcc-gfortran
@@ -54,8 +47,6 @@ BuildRequires:  valgrind-devel
 BuildRequires:  python3-devel
 BuildRequires:  rpm-mpi-hooks
 Provides:       mpi
-Provides:       mpich2 = %{version}
-Obsoletes:      mpich2 < 3.0
 Requires:       environment(modules)
 
 # Make sure this package is rebuilt with correct Python version when updating
@@ -87,8 +78,6 @@ mpich-autoload package.
 %package autoload
 Summary:        Load mpich automatically into profile
 Requires:       mpich = %{version}-%{release}
-Provides:       mpich2-autoload = 3.0.1
-Obsoletes:      mpich2-autoload < 3.0
 
 %description autoload
 This package contains profile files that make mpich automatically loaded.
@@ -101,8 +90,6 @@ Requires:       pkgconfig
 Requires:       gcc-gfortran
 Requires:       rpm-mpi-hooks
 Requires:       redhat-rpm-config
-Provides:       mpich2-devel = 3.0.1
-Obsoletes:      mpich2-devel < 3.0
 
 %description devel
 Contains development headers and libraries for mpich
@@ -110,9 +97,7 @@ Contains development headers and libraries for mpich
 %package doc
 Summary:        Documentations and examples for mpich
 BuildArch:      noarch
-Requires:       %{name}-devel = %{version}-%{release}
-Provides:       mpich2-doc = 3.0.1
-Obsoletes:      mpich2-doc < 3.0
+Requires:       %{name} = %{version}-%{release}
 
 %description doc
 Contains documentations, examples and man-pages for mpich
@@ -128,18 +113,15 @@ mpich support for Python 3.
 %prep
 %autosetup -p1
 
-%build
-./autogen.sh
-
+%conf
 CONFIGURE_OPTS=(
         --with-custom-version-string=%{version}-%{release}
-        --enable-sharedlibs=gcc
+        --enable-mpi-abi
         --enable-shared
         --enable-static=no
-        --enable-lib-depend
-        --disable-rpath
         --disable-silent-rules
         --disable-dependency-tracking
+        --with-wrapper-dl-type=none
         --with-gnu-ld
         --with-pm=hydra:gforker
         --includedir=%{_includedir}/%{name}-%{_arch}
@@ -172,6 +154,7 @@ sed -r -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
 #Try and work around 'unused-direct-shlib-dependency' rpmlint warnning
 sed -i -e 's| -shared | -Wl,--as-needed\0|g' libtool
 
+%build
 %make_build VERBOSE=1
 
 %install
@@ -234,14 +217,18 @@ make check VERBOSE=1 \
 
 %files
 %license COPYRIGHT
-%doc CHANGES README README.envvar RELEASE_NOTES
+%config(noreplace) %{_sysconfdir}/mpixxx_opts.conf
+%doc CHANGES README README.envvar
 %dir %{_libdir}/%{name}
 %dir %{_libdir}/%{name}/lib
 %dir %{_libdir}/%{name}/bin
 %dir %{_libdir}/%{name}/lib/cmake
 %dir %{_libdir}/%{name}/include
 %dir %{_fmoddir}/mpich
-%{_libdir}/%{name}/lib/*.so.*
+%{_libdir}/%{name}/lib/libmpi.so.%{somajor}{,.*}
+%{_libdir}/%{name}/lib/libmpicxx.so.%{somajor}{,.*}
+%{_libdir}/%{name}/lib/libmpifort.so.%{somajor}{,.*}
+%{_libdir}/%{name}/lib/libmpi_abi.so.%{mpi_abi_somajor}{,.*}
 %{_libdir}/%{name}/bin/hydra*
 %{_libdir}/%{name}/bin/mpichversion
 %{_libdir}/%{name}/bin/mpiexec*
@@ -258,10 +245,21 @@ make check VERBOSE=1 \
 %{_includedir}/%{name}-%{_arch}/
 %{_libdir}/%{name}/lib/pkgconfig/
 %{_libdir}/%{name}/lib/cmake/
-%{_libdir}/%{name}/lib/*.so
+%{_libdir}/%{name}/lib/libmpi.so
+%{_libdir}/%{name}/lib/libmpicxx.so
+%{_libdir}/%{name}/lib/libmpifort.so
+%{_libdir}/%{name}/lib/libmpi_abi.so
+%{_libdir}/%{name}/lib/libmpich.so
+%{_libdir}/%{name}/lib/libmpichcxx.so
+%{_libdir}/%{name}/lib/libmpichf90.so
+%{_libdir}/%{name}/lib/libfmpich.so
+%{_libdir}/%{name}/lib/libmpl.so
+%{_libdir}/%{name}/lib/libopa.so
 %{_libdir}/%{name}/bin/mpicc
+%{_libdir}/%{name}/bin/mpicc_abi
 %{_libdir}/%{name}/bin/mpic++
 %{_libdir}/%{name}/bin/mpicxx
+%{_libdir}/%{name}/bin/mpicxx_abi
 %{_libdir}/%{name}/bin/mpif77
 %{_libdir}/%{name}/bin/mpif90
 %{_libdir}/%{name}/bin/mpifort
@@ -271,7 +269,7 @@ make check VERBOSE=1 \
 
 %files doc
 %dir %{_datadir}/%{name}
-%{_datadir}/%{name}/doc/
+%doc %{_datadir}/%{name}/doc/
 
 %files -n python3-mpich
 %dir %{python3_sitearch}/%{name}

diff --git a/sources b/sources
index 09a5e12..6b91624 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (mpich-4.2.2.tar.gz) = 706b1f008a4da3bc44b9c8191e20031983eed7d82aadeac8cf4b2c7ffbe5c5ec88c047f7a826e3a0a7e076799e03cceec908853eec89f651de50301af619e757
+SHA512 (mpich-5.0.2.tar.gz) = 2b34b9159cdeb1bf01e9814d7573f7968c668942a58160587205823dc674b6d3ac1be933239e7b7ec59c498f53ea6c54522cf3734655958d1a733d624f335136

                 reply	other threads:[~2026-10-27 10:03 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179309539244.1.1561643745929686141.rpms-mpich-669df3afd622@fedoraproject.org \
    --to=growl1234@outlook.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox