Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package capstone for openSUSE:Factory 
checked in at 2026-12-01 16:58:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/capstone (Old)
 and      /work/SRC/openSUSE:Factory/.capstone.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "capstone"

Tue Dec  1 16:58:15 2026 rev:9 rq:1401425 version:5.0.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/capstone/capstone.changes        2026-11-20 
14:45:25.034063826 +0100
+++ /work/SRC/openSUSE:Factory/.capstone.new.1340718/capstone.changes   
2026-12-01 16:58:52.826880983 +0100
@@ -1,0 +2,6 @@
+Sat Nov 28 17:19:09 UTC 2026 - Zoltan Balogh <[email protected]>
+
+- Enable the upstream unit tests: build them with
+  -DCAPSTONE_BUILD_TESTS=ON and run them with ctest in %check.
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ capstone.spec ++++++
--- /var/tmp/diff_new_pack.iRTEJs/_old  2026-12-01 16:58:53.549911200 +0100
+++ /var/tmp/diff_new_pack.iRTEJs/_new  2026-12-01 16:58:53.551911283 +0100
@@ -18,6 +18,14 @@
 
 %global _lto_cflags %{?_lto_cflags} -ffat-lto-objects
 %define sover   5
+
+# The 15.7 repository builds against SLE 15 SP7. Keep that build unchanged
+# and enable the tests in Factory and newer only.
+%if 0%{?suse_version} > 1500
+%global capstone_tests ON
+%else
+%global capstone_tests OFF
+%endif
 Name:           capstone
 Version:        5.0.9
 Release:        0
@@ -87,7 +95,7 @@
     -DBUILD_SHARED_LIBS=ON \
     -DBUILD_STATIC_LIBS=ON \
     -DCAPSTONE_BUILD_CSTEST=OFF \
-    -DCAPSTONE_BUILD_TESTS=OFF
+    -DCAPSTONE_BUILD_TESTS=%{capstone_tests}
 %cmake_build
 
 cd .. # back to the main source directory
@@ -118,6 +126,14 @@
 
 %ldconfig_scriptlets -n libcapstone%{sover}
 
+%if 0%{?suse_version} > 1500
+%check
+# The test binaries link against the shared library in the build tree.
+export LD_LIBRARY_PATH="$PWD/build${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
+cd build
+ctest --output-on-failure
+%endif
+
 %files
 %license LICENSE*.TXT
 %{_bindir}/cstool

Reply via email to