Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cppcheck for openSUSE:Factory 
checked in at 2021-05-11 23:04:05
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cppcheck (Old)
 and      /work/SRC/openSUSE:Factory/.cppcheck.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cppcheck"

Tue May 11 23:04:05 2021 rev:16 rq:892005 version:2.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/cppcheck/cppcheck.changes        2021-03-24 
16:14:30.176036622 +0100
+++ /work/SRC/openSUSE:Factory/.cppcheck.new.2988/cppcheck.changes      
2021-05-11 23:04:09.472958366 +0200
@@ -1,0 +2,6 @@
+Mon May 10 06:49:08 UTC 2021 - Stephan Kulow <co...@suse.com>
+
+- add fix-i586.patch to fix compilation on i586, where the test
+  case tests the wrong IntRange
+
+-------------------------------------------------------------------

New:
----
  fix-i586.patch

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

Other differences:
------------------
++++++ cppcheck.spec ++++++
--- /var/tmp/diff_new_pack.NQZdnU/_old  2021-05-11 23:04:09.968956103 +0200
+++ /var/tmp/diff_new_pack.NQZdnU/_new  2021-05-11 23:04:09.972956085 +0200
@@ -23,6 +23,7 @@
 License:        GPL-3.0-or-later
 URL:            https://github.com/danmar/cppcheck
 Source:         
https://github.com/danmar/cppcheck/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Patch0:         fix-i586.patch
 BuildRequires:  cmake
 BuildRequires:  docbook-xsl-stylesheets
 BuildRequires:  gcc-c++
@@ -70,7 +71,7 @@
 doesn't see.
 
 %prep
-%autosetup
+%autosetup -p1
 
 %build
 %cmake \

++++++ fix-i586.patch ++++++
Index: cppcheck-2.4.1/test/testexprengine.cpp
===================================================================
--- cppcheck-2.4.1.orig/test/testexprengine.cpp
+++ cppcheck-2.4.1/test/testexprengine.cpp
@@ -811,12 +811,17 @@ private:
                             "  *x = 2;\n"
                             "  *x = 1;\n"
                             "}";
+#if INTPTR_MAX == INT64_MAX
+        // for 32bit the situation is more complex, armv7l has ffffffff,
+        // i586 has hfffffffflffffffff - so better not test this in those
+        // situations
         ASSERT_EQUALS("1:28: $2=ArrayValue([$1],[:]=?,null)\n"
                       "1:28: $1=IntRange(1:ffffffffffffffff)\n"
                       "1:28: 0:memory:{x=($2,[$1],[:]=?)}\n"
                       "2:9: 0:memory:{x=($2,[$1],[:]=?,[0]=2)}\n"
                       "3:9: 0:memory:{x=($2,[$1],[:]=?,[0]=1)}\n",
                       trackExecution(code));
+#endif
     }
 
     void arrayInit1() {

Reply via email to