Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package Box2D for openSUSE:Factory checked in at 2026-11-27 19:40:17 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/Box2D (Old) and /work/SRC/openSUSE:Factory/.Box2D.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "Box2D" Fri Nov 27 19:40:17 2026 rev:6 rq:1387088 version:3.1.1 Changes: -------- --- /work/SRC/openSUSE:Factory/Box2D/Box2D.changes 2025-04-30 19:02:37.609934999 +0200 +++ /work/SRC/openSUSE:Factory/.Box2D.new.1340718/Box2D.changes 2026-11-27 19:40:27.076338532 +0100 @@ -1,0 +2,29 @@ +Wed Oct 21 16:55:00 UTC 2026 - Martin Pluskal <[email protected]> + +- Fix i586 build: enable SSE/SSE2 on 32-bit x86, the 3.x sources + use SSE intrinsics unconditionally + +------------------------------------------------------------------- +Sun Oct 18 11:52:53 UTC 2026 - Martin Pluskal <[email protected]> + +- Update to version 3.1.1: + * Box2D 3 is a full rewrite in portable C17 with a new C API built + around ids (b2WorldId, b2BodyId, ...) instead of C++ classes: + deterministic solver, continuous collision, SIMD and multithreading + support, sensors, contact and movement events. + * Joints are now revolute, prismatic, distance, weld, wheel, motor + and mouse joints with limits, motors, springs and friction. + * The 2.x C++ API (b2World class, b2Body/b2Fixture/b2Joint trees) + is gone; the shared library soname moves libbox2d.so.2 -> .so.3. + * 3.1.x bugfixes add surface-material accessors, revolute/prismatic + targets and tunable joint stiffness. +- Packaging changes: + * Rename the shlib package libbox2d2 -> libbox2d3 (baselibs.conf + follows); the -devel file layout is unchanged. + * Require cmake >= 3.22; build only the library: samples, tests and + benchmarks fetch their deps (glfw, enkiTS) over the network. + Drop the testbed-only X11/glfw BuildRequires and link libm + explicitly via box2d-link-libm.patch. + * Spec cleanup (dropped obsolete Group tags). + +------------------------------------------------------------------- Old: ---- box2d-2.4.1.tar.gz New: ---- box2d-3.1.1.tar.gz box2d-link-libm.patch ----------(New B)---------- New: Drop the testbed-only X11/glfw BuildRequires and link libm explicitly via box2d-link-libm.patch. * Spec cleanup (dropped obsolete Group tags). ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ Box2D.spec ++++++ --- /var/tmp/diff_new_pack.6uCZAZ/_old 2026-11-27 19:40:28.243387370 +0100 +++ /var/tmp/diff_new_pack.6uCZAZ/_new 2026-11-27 19:40:28.244387412 +0100 @@ -1,7 +1,7 @@ # # spec file for package Box2D # -# Copyright (c) 2025 SUSE LLC +# Copyright (c) 2026 SUSE LLC and contributors # Copyright (c) 2012 Adam Mizerski <[email protected]> # # All modifications and additions to the file contributed by third parties @@ -17,50 +17,51 @@ # -%define major 2 +%define major 3 %define libname libbox2d Name: Box2D -Version: 2.4.1 +Version: 3.1.1 Release: 0 Summary: A 2D Physics Engine for Games License: MIT -Group: Development/Libraries/C and C++ URL: https://box2d.org/ Source0: https://github.com/erincatto/box2d/archive/v%{version}.tar.gz#/box2d-%{version}.tar.gz Source1: baselibs.conf -BuildRequires: cmake >= 3 +Patch0: box2d-link-libm.patch +BuildRequires: cmake >= 3.22 BuildRequires: gcc-c++ -BuildRequires: libX11-devel -BuildRequires: libXcursor-devel -BuildRequires: libXi-devel -BuildRequires: libXinerama-devel -BuildRequires: libXrandr-devel -BuildRequires: libglfw-devel %description -Box2D is an open source C++ engine for simulating rigid bodies in 2D. +Box2D is an open source physics engine for simulating rigid bodies in 2D. %package -n %{libname}%{major} Summary: A 2D Physics Engine for Games -Group: System/Libraries %description -n %{libname}%{major} -Box2D is an open source C++ engine for simulating rigid bodies in 2D. +Box2D is an open source physics engine for simulating rigid bodies in 2D. %package -n %{libname}-devel Summary: A 2D Physics Engine for Games -Group: Development/Libraries/C and C++ Requires: %{libname}%{major} = %{version} %description -n %{libname}-devel -Box2D is an open source C++ engine for simulating rigid bodies in 2D. +Box2D is an open source physics engine for simulating rigid bodies in 2D. %prep %setup -q -n box2d-%{version} +%patch -P 0 -p1 %build +# Samples, tests and benchmarks fetch dependencies (glfw, enkiTS) over the +# network via FetchContent, so they stay off for the OBS build. +%ifarch %{ix86} +# Box2D 3.x uses SSE intrinsics unconditionally, enable them on 32-bit x86. +export CFLAGS="%{optflags} -msse -msse2" +%endif %cmake \ - -DBOX2D_BUILD_UNIT_TESTS=OFF + -DBOX2D_SAMPLES=OFF \ + -DBOX2D_UNIT_TESTS=OFF \ + -DBOX2D_BENCHMARKS=OFF %make_build %install ++++++ baselibs.conf ++++++ --- /var/tmp/diff_new_pack.6uCZAZ/_old 2026-11-27 19:40:28.322390676 +0100 +++ /var/tmp/diff_new_pack.6uCZAZ/_new 2026-11-27 19:40:28.330391011 +0100 @@ -1,3 +1,3 @@ -libbox2d2 +libbox2d3 libbox2d-devel ++++++ box2d-2.4.1.tar.gz -> box2d-3.1.1.tar.gz ++++++ ++++ 200638 lines of diff (skipped) ++++++ box2d-link-libm.patch ++++++ --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -76,6 +76,10 @@ add_library(box2d ${BOX2D_SOURCE_FILES} ${BOX2D_API_FILES}) +# math_functions.c uses sqrtf/sinf/cosf/atan2f: link libm explicitly +# instead of inheriting it transitively from whatever links box2d. +target_link_libraries(box2d PUBLIC m) + target_include_directories(box2d PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
