Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mvapich3 for openSUSE:Factory 
checked in at 2024-09-09 14:44:03
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mvapich3 (Old)
 and      /work/SRC/openSUSE:Factory/.mvapich3.new.10096 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mvapich3"

Mon Sep  9 14:44:03 2024 rev:2 rq:1199357 version:3.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/mvapich3/mvapich3.changes        2024-02-20 
21:16:38.755024228 +0100
+++ /work/SRC/openSUSE:Factory/.mvapich3.new.10096/mvapich3.changes     
2024-09-09 14:44:42.171348674 +0200
@@ -1,0 +2,6 @@
+Sat Sep  7 11:12:27 UTC 2024 - Nicolas Morey <[email protected]>
+
+- Add autogen-only-deal-with-json-yaksa-if-enabled.patch to use
+  system version of libjson-c.
+
+-------------------------------------------------------------------

New:
----
  autogen-only-deal-with-json-yaksa-if-enabled.patch

BETA DEBUG BEGIN:
  New:
- Add autogen-only-deal-with-json-yaksa-if-enabled.patch to use
  system version of libjson-c.
BETA DEBUG END:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mvapich3.spec ++++++
--- /var/tmp/diff_new_pack.zz4d0A/_old  2024-09-09 14:44:43.107387401 +0200
+++ /var/tmp/diff_new_pack.zz4d0A/_new  2024-09-09 14:44:43.111387566 +0200
@@ -1,7 +1,7 @@
 #
 # spec file
 #
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -191,6 +191,7 @@
 Patch3:         mpi-coll-missing-return.patch
 Patch4:         autoconf-pull-dynamic-and-not-static-libs-from-pkg-config.patch
 Patch5:         config-replace-AC_TRY_-COMPILE-LINK-RUN.patch
+Patch6:         autogen-only-deal-with-json-yaksa-if-enabled.patch
 
 URL:            http://mvapich.cse.ohio-state.edu
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
@@ -211,10 +212,10 @@
 %ifnarch s390 s390x %{arm}
 BuildRequires:  libnuma-devel
 %endif
+BuildRequires:  libjson-c-devel
 BuildRequires:  libtool
-BuildRequires:  libtool
-BuildRequires:  sysfsutils
 BuildRequires:  python3
+BuildRequires:  sysfsutils
 %if %{without hpc}
 BuildRequires:  gcc-c++
 BuildRequires:  gcc-fortran
@@ -318,7 +319,6 @@
 
 cp /usr/share/automake*/config.* .
 
-
 %build
 %global _lto_cflags %{_lto_cflags} -ffat-lto-objects
 
@@ -327,7 +327,7 @@
 export FFLAGS="-fallow-argument-mismatch $FFLAGS"
 %endif
 
-./autogen.sh --without-ucx --without-ofi
+./autogen.sh --without-ucx --without-ofi --without-json
 %if %{with hpc}
 %{hpc_setup}
 %{hpc_configure} \

++++++ autogen-only-deal-with-json-yaksa-if-enabled.patch ++++++
commit f52bf4f26caeee6452aea2b38c6702543be19ba4
Author: Nicolas Morey <[email protected]>
Date:   Sat Sep 7 13:09:18 2024 +0200

    autogen: only deal with json/yaksa if enabled
    
    --without-(json|yaksa) is partially ignored as submodule is not
    checked but still configured
    
    Signed-off-by: Nicolas Morey <[email protected]>

diff --git configure.ac configure.ac
index 51ddb3952c4b..163cb29bcee9 100644
--- configure.ac
+++ configure.ac
@@ -1428,14 +1428,23 @@ AC_SUBST([jsonsrcdir])
 jsonlib=""
 AC_SUBST([jsonlib])
 
-PAC_PUSH_ALL_FLAGS()
-PAC_RESET_ALL_FLAGS()
-PAC_CONFIG_SUBDIR_ARGS([modules/json-c],[--enable-embedded 
--disable-werror],[],[AC_MSG_ERROR(json-c configure failed)])
-PAC_POP_ALL_FLAGS()
-jsonsrcdir="${main_top_builddir}/modules/json-c"
-jsonlib="${main_top_builddir}/modules/json-c/libjson-c.la"
-PAC_APPEND_FLAG([-I${use_top_srcdir}/modules/json-c],[CPPFLAGS])
-PAC_APPEND_FLAG([-I${main_top_builddir}/modules/json-c],[CPPFLAGS])
+PAC_CHECK_HEADER_LIB([json-c/json.h], [json-c], [json_object_get], 
[have_json=yes], [have_json=no])
+if test "${have_json}" = "no" ; then
+   AC_MSG_NOTICE([Using an embedded libjson-c])PAC_PUSH_ALL_FLAGS()
+   PAC_RESET_ALL_FLAGS()
+   PAC_CONFIG_SUBDIR_ARGS([modules/json-c],[--enable-embedded 
--disable-werror],[],
+                          [AC_MSG_ERROR(json-c configure failed)])
+   PAC_POP_ALL_FLAGS()
+   jsonsrcdir="${main_top_builddir}/modules/json-c"
+   jsonlib="${main_top_builddir}/modules/json-c/libjson-c.la"
+   PAC_APPEND_FLAG([-I${use_top_srcdir}/modules/json-c],[CPPFLAGS])
+   PAC_APPEND_FLAG([-I${main_top_builddir}/modules/json-c],[CPPFLAGS])
+else
+   AC_MSG_NOTICE([Using an external libjson-c])
+   PAC_APPEND_FLAG([-I/usr/include/json-c],[CPPFLAGS])
+   PAC_APPEND_FLAG([-ljson-c],[WRAPPER_LIBS])
+fi
+
 
 # ----------------------------------------------------------------------------
 # HWLOC

Reply via email to