Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libreoffice for openSUSE:Factory checked in at 2026-11-27 19:40:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libreoffice (Old) and /work/SRC/openSUSE:Factory/.libreoffice.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libreoffice" Fri Nov 27 19:40:20 2026 rev:328 rq:1400858 version:26.8.3.1 Changes: -------- --- /work/SRC/openSUSE:Factory/libreoffice/libreoffice.changes 2026-11-24 12:23:59.039235659 +0100 +++ /work/SRC/openSUSE:Factory/.libreoffice.new.1340718/libreoffice.changes 2026-11-27 19:40:30.051463034 +0100 @@ -1,0 +2,6 @@ +Thu Nov 26 13:39:59 UTC 2026 - Martin Schreiner <[email protected]> + +- Refresh box2d-detection.patch: detect system box2d 3.x, which ships no pkg-config file (bsc#1291895) +- Bundle liborcus below suse_version 1699, i.e. on SLE/Leap 16 too + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libreoffice.spec ++++++ --- /var/tmp/diff_new_pack.6qZrks/_old 2026-11-27 19:40:37.930792766 +0100 +++ /var/tmp/diff_new_pack.6qZrks/_new 2026-11-27 19:40:37.935792976 +0100 @@ -690,7 +690,7 @@ # ---- orcus %global version_orcus 0.21.0 %global enable_orcus 1 -%if 0%{?suse_version} < 1600 +%if 0%{?suse_version} < 1699 %global bundle_orcus 1 %global support_orcus --without-system-orcus %else ++++++ box2d-detection.patch ++++++ --- /var/tmp/diff_new_pack.6qZrks/_old 2026-11-27 19:40:38.152802057 +0100 +++ /var/tmp/diff_new_pack.6qZrks/_new 2026-11-27 19:40:38.159802350 +0100 @@ -2,41 +2,71 @@ Since the box2d 3.x support was added, configure derives the version from `pkg-config --modversion box2d' and only assigns _BOX2D_LIB inside the -"major == 2" branch. box2d 2.4.x (as shipped by openSUSE) installs no -box2d.pc, so BOX2D_VERSION ends up empty: +"major == 2" branch. Neither box2d 2.4.x nor box2d 3.x install a box2d.pc +(3.x only installs CMake config files), so BOX2D_VERSION ends up empty: ./configure: line 42900: test: : integer expected checking for main in -l... no configure: error: box2d library not found. -Fall back to probing box2d/box2d.h when pkg-config has nothing to say, and -default _BOX2D_LIB to box2d so that the 3.x path gets a library name too. +When pkg-config has nothing to say, tell the versions apart by their +headers: only 3.x installs box2d/id.h, and its exact version is obtained +from b2GetVersion(), since slideshow distinguishes 3.0 from 3.1. Otherwise +fall back to box2d/box2d.h (2.4) or Box2D/Box2D.h (2.3). Also default +_BOX2D_LIB to box2d, so that the 3.x path gets a library name too. + +Without the box2d/id.h test, box2d 3.x was taken for 2.4, and the 2.x code +path in slideshow/source/engine/box2dtools.cxx failed to compile against the +3.x headers (bsc#1291895). -diff --git a/configure.ac b/configure.ac --- a/configure.ac +++ b/configure.ac -@@ -12252,19 +12252,22 @@ +@@ -12261,20 +12261,47 @@ SYSTEM_BOX2D=TRUE AC_LANG_PUSH([C++]) BOX2D_VERSION=`$PKG_CONFIG --modversion box2d 2>/dev/null` -+ if test -z "$BOX2D_VERSION"; then -+ dnl box2d 2.4.x does not install a pkg-config file, probe the header -+ dnl instead so that we do not end up comparing an empty version. -+ AC_CHECK_HEADER([box2d/box2d.h], [BOX2D_VERSION=2.4], [BOX2D_VERSION=2.3]) -+ fi - BOX2D_MAJOR=`echo $BOX2D_VERSION | cut -d"." -f1` - BOX2D_MINOR=`echo $BOX2D_VERSION | cut -d"." -f2` +- BOX2D_MAJOR=`echo $BOX2D_VERSION | cut -d"." -f1` +- BOX2D_MINOR=`echo $BOX2D_VERSION | cut -d"." -f2` - if test "$BOX2D_MAJOR" -eq "2"; then - if test "$BOX2D_MINOR" -eq "4"; then - _BOX2D_LIB=box2d - AC_DEFINE(BOX2D_HEADER,<box2d/box2d.h>) -- else ++ if test -z "$BOX2D_VERSION"; then ++ dnl Neither box2d 2.4.x nor 3.x install a pkg-config file. Only 3.x ++ dnl has box2d/id.h, and it reports its version through b2GetVersion(). ++ AC_CHECK_HEADER([box2d/id.h], [libo_box2d_3=yes], [libo_box2d_3=no]) ++ if test "$libo_box2d_3" = "yes"; then ++ AC_MSG_CHECKING([box2d 3.x version]) ++ save_LIBS=$LIBS ++ LIBS="$LIBS -lbox2d" ++ AC_RUN_IFELSE([AC_LANG_PROGRAM([[ ++#include <stdio.h> ++#include <box2d/box2d.h> ++]], [[ ++ b2Version v = b2GetVersion(); ++ FILE *f = fopen("conftest.box2d", "w"); ++ if (!f) ++ return 1; ++ fprintf(f, "%d.%d.%d", v.major, v.minor, v.revision); ++ return fclose(f) != 0; ++]])], ++ [BOX2D_VERSION=`cat conftest.box2d`], ++ [AC_MSG_ERROR([could not determine the box2d 3.x version])], ++ [AC_MSG_ERROR([cross-compiling: cannot determine the box2d 3.x version without box2d.pc])]) ++ rm -f conftest.box2d ++ LIBS=$save_LIBS ++ AC_MSG_RESULT([$BOX2D_VERSION]) + else - # fail this. there's no other alternative to check when we are here. - AC_CHECK_HEADER([Box2D/Box2D.h], [], - [AC_MSG_ERROR(box2d headers not found.)]) - _BOX2D_LIB=Box2D - AC_DEFINE(BOX2D_HEADER,<Box2D/Box2D.h>) -- fi ++ AC_CHECK_HEADER([box2d/box2d.h], [BOX2D_VERSION=2.4], [BOX2D_VERSION=2.3]) + fi + fi ++ BOX2D_MAJOR=`echo $BOX2D_VERSION | cut -d"." -f1` ++ BOX2D_MINOR=`echo $BOX2D_VERSION | cut -d"." -f2` + if test "$BOX2D_MAJOR" -eq "2" -a "$BOX2D_MINOR" -ne "4"; then + # fail this. there's no other alternative to check when we are here. + AC_CHECK_HEADER([Box2D/Box2D.h], [], @@ -46,7 +76,8 @@ + else + _BOX2D_LIB=box2d + AC_DEFINE(BOX2D_HEADER,<box2d/box2d.h>) - fi ++ fi AC_CHECK_LIB([$_BOX2D_LIB], [main], [:], [ AC_MSG_ERROR(box2d library not found.) ], []) + BOX2D_LIBS=-l$_BOX2D_LIB
