@@@ L.B. 2026
@@@
@@@ make old names aliases:
--- include/newMPInames.h~      2026-02-24 13:03:05.005331899 +0100
+++ include/newMPInames.h       2026-02-23 22:32:24.384322219 +0100
@@ -0,0 +1,7 @@
+#undef MPI_Errhandler_set
+#define MPI_Errhandler_set MPI_Comm_set_errhandler
+#undef MPI_Errhandler_create
+#define MPI_Errhandler_create MPI_Comm_create_errhandler
+#undef  MPI_Type_struct
+#define MPI_Type_struct MPI_Type_create_struct
+#define MPI_Handler_function MPI_Comm_errhandler_function
@@@ necessary in two files:
--- src/sys/objects/init.c~     2026-02-23 21:50:26.275910658 +0100
+++ src/sys/objects/init.c      2026-02-23 21:50:57.648866741 +0100
@@ -9,6 +9,7 @@
 */

 #include "petscsys.h"        /*I  "petscsys.h"   I*/
+#include "newMPInames.h"
 #if defined(PETSC_HAVE_STDLIB_H)
 #include <stdlib.h>
 #endif
--- src/semiLagrange/impls/da/slda.c~   2026-02-23 22:41:50.325476739 +0100
+++ src/semiLagrange/impls/da/slda.c    2026-02-23 22:43:24.412200288 +0100
@@ -1,4 +1,5 @@
 #include "slda.h"       /*I  "characteristic.h"  I*/
+#include "newMPInames.h"

 #undef __FUNCT__  
 #define __FUNCT__ "CharacteristicView_DA"
@@@ bool may be smaller than pointer:
--- src/mat/impls/aij/mpi/mpiaij.c~	2026-03-06 05:08:06.594651102 +0100
+++ src/mat/impls/aij/mpi/mpiaij.c	2026-03-06 06:19:58.961801011 +0100
@@ -1068,11 +1068,11 @@
     ierr = PetscViewerGetFormat(viewer,&format);CHKERRQ(ierr);
     if (format == PETSC_VIEWER_ASCII_INFO_DETAIL) {
       MatInfo    info;
-      PetscTruth inodes;
+      PetscInt   *inodes;
 
       ierr = MPI_Comm_rank(((PetscObject)mat)->comm,&rank);CHKERRQ(ierr);
       ierr = MatGetInfo(mat,MAT_LOCAL,&info);CHKERRQ(ierr);
-      ierr = MatInodeGetInodeSizes(aij->A,PETSC_NULL,(PetscInt **)&inodes,PETSC_NULL);CHKERRQ(ierr);
+      ierr = MatInodeGetInodeSizes(aij->A,PETSC_NULL,&inodes,PETSC_NULL);CHKERRQ(ierr);
       if (!inodes) {
         ierr = PetscViewerASCIISynchronizedPrintf(viewer,"[%d] Local rows %D nz %D nz alloced %D mem %D, not using I-node routines\n",
 					      rank,mat->rmap->n,(PetscInt)info.nz_used,(PetscInt)info.nz_allocated,(PetscInt)info.memory);CHKERRQ(ierr);
@@@ pypy2.7 already got rid of __comp__:
--- config/BuildSystem/help.py.~    2026-03-04 18:06:48.013063813 +0100
+++ config/BuildSystem/help.py  2026-03-04 17:58:12.537498711 +0100
@@ -60,7 +60,7 @@
     (nameLen, descLen) = self.getTextSizes()
     format = '  %-'+str(nameLen)+'s: %s\n'
     items  = self.sections.items()
-    items.sort(lambda a, b: a[1][0].__cmp__(b[1][0]))
+    items.sort(key=lambda e:e[1][0])
     for section, names in items:
       f.write(section+':\n')
       for name in names[1]:
@@@ MPI_COMM_WORLD is not int:
--- config/BuildSystem/config/packages/MPI.py~     2025-06-13 10:40:37.944362909 +0200
+++ config/BuildSystem/config/packages/MPI.py      2025-06-13 10:51:54.113711183 +0200
@@ -198,7 +198,7 @@
     oldLibs  = self.compilers.LIBS
     self.compilers.CPPFLAGS += ' '+self.headers.toString(self.include)
     self.compilers.LIBS = self.libraries.toString(self.lib)+' '+self.compilers.LIBS
-    if self.checkLink('#include <mpi.h>\n', 'if (MPI_Comm_f2c(MPI_COMM_WORLD));\n'):
+    if self.checkLink('#include <mpi.h>\n', 'if (MPI_Comm_f2c(1140850688));\n'):
       self.commf2c = 1
       self.addDefine('HAVE_MPI_COMM_F2C', 1)
     if self.checkLink('#include <mpi.h>\n', 'if (MPI_Comm_c2f(MPI_COMM_WORLD));\n'):
@@@ deprecation:
--- src/sys/objects/options.c~	2026-03-06 06:42:35.785208413 +0100
+++ src/sys/objects/options.c	2026-03-06 06:44:19.318514530 +0100
@@ -2,7 +2,7 @@
 
 /* Feature test macros to make sure atoll is available (SVr4, POSIX.1-2001, 4.3BSD, C99), not in (C89 and POSIX.1-1996) */
 #define _XOPEN_SOURCE 600
-#define _BSD_SOURCE
+#define _DEFAULT_SOURCE
 /*
    These routines simplify the use of command line, file options, etc., and are used to manipulate the options database.
    This provides the low-level interface, the high level interface is in aoptions.c
@@@ just a typo:
--- src/sys/viewer/impls/draw/vdraw.h~    2026-02-25 10:02:21.984341227 +0100
+++ src/sys/viewer/impls/draw/vdraw.h    2026-02-25 10:02:27.107458909 +0100
@@ -3,7 +3,7 @@
 */

 #if !defined(__VDRAW_H)
-#define __VDRAWL_H
+#define __VDRAW_H

 #include "private/viewerimpl.h"
 typedef struct {
