Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package petsc for openSUSE:Factory checked in at 2025-05-20 12:20:23 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/petsc (Old) and /work/SRC/openSUSE:Factory/.petsc.new.30101 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "petsc" Tue May 20 12:20:23 2025 rev:41 rq:1278500 version:3.23.0 Changes: -------- --- /work/SRC/openSUSE:Factory/petsc/petsc.changes 2025-04-11 16:49:58.383281019 +0200 +++ /work/SRC/openSUSE:Factory/.petsc.new.30101/petsc.changes 2025-05-20 12:20:33.903268189 +0200 @@ -1,0 +2,18 @@ +Mon May 19 09:04:39 UTC 2025 - Atri Bhattacharya <badshah...@gmail.com> + +- Use COPTFLAGS, FOPTFLAGS, and CXXOPTFLAGS to pass rpm optflags + to compilers instead of directly setting CFLAGS, FFLAGS, or + CXXFLAGS; this is recommended by upstream and fixes build + failures seen when compiling fortran modules on Leap 16 and + older (see https://gitlab.com/petsc/petsc/-/issues/1727). +- Changes PETSC_ARCH definition to %_arch instead of + linux-gnu-c-opt; this is in line with upstream's recommendation + and what Fedora does and should be ok for openSUSE not that we + no longer use hpc macros. +- Modify petsc-fix-libdir.patch to use + sysconfig.get_config_vars('platlibdir') instead of + sys.platlibdir for compatibility with python 3.6 (fix FTBFS on + 15.6 and older). +- Actually bail out before running make when configuring fails. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ petsc.spec ++++++ --- /var/tmp/diff_new_pack.Jj0xlH/_old 2025-05-20 12:20:34.667300755 +0200 +++ /var/tmp/diff_new_pack.Jj0xlH/_new 2025-05-20 12:20:34.667300755 +0200 @@ -65,7 +65,7 @@ %define p_libdir %{p_prefix}%_lib %define p_include %{p_prefix}include -%define petsc_arch linux-gnu-c-opt +%define petsc_arch %_arch Name: %{package_name} Summary: Portable Extensible Toolkit for Scientific Computation @@ -198,9 +198,9 @@ %endif %{_bindir}/python%{python3_version} ./configure \ - --CFLAGS="$RPM_OPT_FLAGS $ARCHCFLAGS" \ - --FFLAGS="$RPM_OPT_FLAGS $ARCHCFLAGS" \ - --CXXFLAGS="$RPM_OPT_FLAGS $ARCHCFLAGS" \ + --COPTFLAGS="$RPM_OPT_FLAGS $ARCHCFLAGS" \ + --FOPTLAGS="$RPM_OPT_FLAGS $ARCHCFLAGS" \ + --CXXOPTFLAGS="$RPM_OPT_FLAGS $ARCHCFLAGS" \ --prefix=%{p_prefix} \ --with-batch=0 \ --with-clanguage=C++ \ @@ -225,7 +225,7 @@ --with-ptscotch=1 \ --with-scalapack=1 \ %endif - || cat configure.log +|| { cat configure.log; exit 1; } %make_build ++++++ Allow-lib64-as-library-directory-for-scalapack.patch ++++++ --- /var/tmp/diff_new_pack.Jj0xlH/_old 2025-05-20 12:20:34.687301607 +0200 +++ /var/tmp/diff_new_pack.Jj0xlH/_new 2025-05-20 12:20:34.691301778 +0200 @@ -10,11 +10,11 @@ --- config/BuildSystem/config/packages/scalapack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/config/BuildSystem/config/packages/scalapack.py b/config/BuildSystem/config/packages/scalapack.py -index a4bf7ec..f009ca4 100644 ---- a/config/BuildSystem/config/packages/scalapack.py -+++ b/config/BuildSystem/config/packages/scalapack.py -@@ -19,7 +19,7 @@ class Configure(config.package.CMakePackage): +Index: petsc-3.23.0/config/BuildSystem/config/packages/scalapack.py +=================================================================== +--- petsc-3.23.0.orig/config/BuildSystem/config/packages/scalapack.py ++++ petsc-3.23.0/config/BuildSystem/config/packages/scalapack.py +@@ -20,7 +20,7 @@ class Configure(config.package.CMakePack self.downloadonWindows= 1 self.makerulename = 'scalapack' self.minCmakeVersion = (3,9,0) ++++++ Remove-rpath-test.patch ++++++ --- /var/tmp/diff_new_pack.Jj0xlH/_old 2025-05-20 12:20:34.707302460 +0200 +++ /var/tmp/diff_new_pack.Jj0xlH/_new 2025-05-20 12:20:34.711302630 +0200 @@ -10,11 +10,11 @@ --- config/BuildSystem/config/setCompilers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/config/BuildSystem/config/setCompilers.py b/config/BuildSystem/config/setCompilers.py -index bcf0181..8013365 100644 ---- a/config/BuildSystem/config/setCompilers.py -+++ b/config/BuildSystem/config/setCompilers.py -@@ -2545,7 +2545,7 @@ class Configure(config.base.Configure): +Index: petsc-3.23.0/config/BuildSystem/config/setCompilers.py +=================================================================== +--- petsc-3.23.0.orig/config/BuildSystem/config/setCompilers.py ++++ petsc-3.23.0/config/BuildSystem/config/setCompilers.py +@@ -2554,7 +2554,7 @@ class Configure(config.base.Configure): testFlags = [] # test '-R' before '-rpath' as sun compilers [c,fortran] don't give proper errors with wrong options. elif not Configure.isDarwin(self.log): ++++++ petsc-3.7-fix-pastix-detection.patch ++++++ --- /var/tmp/diff_new_pack.Jj0xlH/_old 2025-05-20 12:20:34.743303994 +0200 +++ /var/tmp/diff_new_pack.Jj0xlH/_new 2025-05-20 12:20:34.747304165 +0200 @@ -7,11 +7,11 @@ config/BuildSystem/config/package.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) -diff --git a/config/BuildSystem/config/package.py b/config/BuildSystem/config/package.py -index b1a88556..fb0ef22e 100644 ---- a/config/BuildSystem/config/package.py -+++ b/config/BuildSystem/config/package.py -@@ -180,7 +180,10 @@ class Package(config.base.Configure): +Index: petsc-3.23.0/config/BuildSystem/config/package.py +=================================================================== +--- petsc-3.23.0.orig/config/BuildSystem/config/package.py ++++ petsc-3.23.0/config/BuildSystem/config/package.py +@@ -202,7 +202,10 @@ class Package(config.base.Configure): self.name = 'DEBUGGING' self.PACKAGE = self.name.upper() self.package = self.name.lower() @@ -23,7 +23,4 @@ self.downloadname = self.name self.downloaddirnames = [self.downloadname] return --- -2.26.2 - ++++++ petsc-fix-libdir.patch ++++++ --- /var/tmp/diff_new_pack.Jj0xlH/_old 2025-05-20 12:20:34.763304847 +0200 +++ /var/tmp/diff_new_pack.Jj0xlH/_new 2025-05-20 12:20:34.767305017 +0200 @@ -8,20 +8,24 @@ config/install.py | 14 ++++++++------ 2 files changed, 12 insertions(+), 8 deletions(-) -diff --git a/config/PETSc/Configure.py b/config/PETSc/Configure.py -index b025144..251b8be 100644 ---- a/config/PETSc/Configure.py -+++ b/config/PETSc/Configure.py -@@ -5,6 +5,8 @@ import sys +Index: petsc-3.23.0/config/PETSc/Configure.py +=================================================================== +--- petsc-3.23.0.orig/config/PETSc/Configure.py ++++ petsc-3.23.0/config/PETSc/Configure.py +@@ -2,9 +2,12 @@ import config.base + + import os + import sys ++import sysconfig import re import pickle -+LIB = sys.platlibdir ++LIB = sysconfig.get_config_var('platlibdir') or 'lib' + class Configure(config.base.Configure): def __init__(self, framework): config.base.Configure.__init__(self, framework) -@@ -172,7 +174,7 @@ class Configure(config.base.Configure): +@@ -173,7 +176,7 @@ class Configure(config.base.Configure): cflags_inc.append('-I' + os.path.join(self.petscdir.dir, 'include')) fd.write('exec_prefix=${prefix}\n') fd.write('includedir=${prefix}/include\n') @@ -30,7 +34,7 @@ with self.setCompilers.Language('C'): fd.write('ccompiler='+self.setCompilers.getCompiler()+'\n') -@@ -448,7 +450,7 @@ prepend-path PATH "%s" +@@ -449,7 +452,7 @@ prepend-path PATH "%s" self.addMakeMacro('PETSC_FC_INCLUDES',self.headers.toStringNoDupes(allincludes,modinc(allincludes))) self.addMakeMacro('PETSC_FC_INCLUDES_INSTALL',self.headers.toStringNoDupes(allincludes_install,modinc(allincludes_install))) @@ -39,19 +43,20 @@ self.addDefine('LIB_DIR','"'+LIB_DIR+'"') # Use build dir here for 'make check' to work before 'make install' PREINSTALL_LIB_DIR = os.path.join(self.petscdir.dir,self.arch.arch,'lib') -diff --git a/config/install.py b/config/install.py -index e438f8f..94d2374 100755 ---- a/config/install.py -+++ b/config/install.py -@@ -2,6 +2,8 @@ +Index: petsc-3.23.0/config/install.py +=================================================================== +--- petsc-3.23.0.orig/config/install.py ++++ petsc-3.23.0/config/install.py +@@ -1,6 +1,8 @@ + #!/usr/bin/env python3 from __future__ import print_function - import os, re, shutil, sys - -+LIB = sys.platlibdir +-import os, re, shutil, sys ++import os, re, shutil, sys, sysconfig + ++LIB = sysconfig.get_config_var('platlibdir') or 'lib' + if 'PETSC_DIR' in os.environ: PETSC_DIR = os.environ['PETSC_DIR'] - else: @@ -77,12 +79,12 @@ class Installer(script.Script): self.archBinDir = os.path.join(self.rootDir, self.arch, 'bin') self.archLibDir = os.path.join(self.rootDir, self.arch, 'lib') @@ -79,7 +84,4 @@ if sys.platform == 'linux': libraries = [ lib for lib in lsdir(self.destLibDir, 'lib*.so*') --- -2.49.0 -