Hello community,

here is the log from the commit of package hyperscan for openSUSE:Factory 
checked in at 2018-09-25 15:44:22
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/hyperscan (Old)
 and      /work/SRC/openSUSE:Factory/.hyperscan.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "hyperscan"

Tue Sep 25 15:44:22 2018 rev:3 rq:637887 version:5.0.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/hyperscan/hyperscan.changes      2018-07-18 
22:53:37.931022133 +0200
+++ /work/SRC/openSUSE:Factory/.hyperscan.new/hyperscan.changes 2018-09-25 
15:44:23.457164351 +0200
@@ -1,0 +2,6 @@
+Tue Sep 25 06:06:59 UTC 2018 - mar...@gmx.de
+
+- Add patch
+  * hyperscan-build.patch (fix build for Tumbleweed)
+
+-------------------------------------------------------------------

New:
----
  hyperscan-build.patch

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

Other differences:
------------------
++++++ hyperscan.spec ++++++
--- /var/tmp/diff_new_pack.G8o9YB/_old  2018-09-25 15:44:25.613162048 +0200
+++ /var/tmp/diff_new_pack.G8o9YB/_new  2018-09-25 15:44:25.613162048 +0200
@@ -26,6 +26,7 @@
 URL:            https://www.hyperscan.io/
 #Git-Clone:     https://github.com/intel/hyperscan.git
 Source:         
https://github.com/intel/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
+Patch0:         hyperscan-build.patch
 BuildRequires:  boost-devel >= 1.57
 BuildRequires:  cmake
 BuildRequires:  gcc-c++ >= 4.9
@@ -87,6 +88,7 @@
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %cmake \

++++++ hyperscan-build.patch ++++++
diff --git a/src/nfa/limex_compile.cpp b/src/nfa/limex_compile.cpp
index 6053b56..bbb2660 100644
--- a/src/nfa/limex_compile.cpp
+++ b/src/nfa/limex_compile.cpp
@@ -980,7 +980,7 @@ u32 addSquashMask(const build_info &args, const NFAVertex 
&v,
     // see if we've already seen it, otherwise add a new one.
     auto it = find(squash.begin(), squash.end(), sit->second);
     if (it != squash.end()) {
-        return verify_u32(distance(squash.begin(), it));
+        return verify_u32(std::distance(squash.begin(), it));
     }
     u32 idx = verify_u32(squash.size());
     squash.push_back(sit->second);
@@ -1007,7 +1007,7 @@ u32 addReports(const flat_set<ReportID> &r, 
vector<ReportID> &reports,
     auto it = search(begin(reports), end(reports), begin(my_reports),
                      end(my_reports));
     if (it != end(reports)) {
-        u32 offset = verify_u32(distance(begin(reports), it));
+        u32 offset = verify_u32(std::distance(begin(reports), it));
         DEBUG_PRINTF("reusing found report list at %u\n", offset);
         return offset;
     }

Reply via email to