Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package libArcus for openSUSE:Factory 
checked in at 2025-06-20 16:48:48
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libArcus (Old)
 and      /work/SRC/openSUSE:Factory/.libArcus.new.31170 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libArcus"

Fri Jun 20 16:48:48 2025 rev:25 rq:1286786 version:4.13.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/libArcus/libArcus.changes        2025-03-13 
15:08:10.483176169 +0100
+++ /work/SRC/openSUSE:Factory/.libArcus.new.31170/libArcus.changes     
2025-06-20 16:50:06.225983435 +0200
@@ -1,0 +2,6 @@
+Mon Jun 16 12:11:30 UTC 2025 - Dominique Leuenberger <dims...@opensuse.org>
+
+- Add libArcus-protobuf-30.patch: Fix build against protobuf 30
+  [gh#Ultimaker/libArcus#163].
+
+-------------------------------------------------------------------

New:
----
  libArcus-protobuf-30.patch

----------(New B)----------
  New:
- Add libArcus-protobuf-30.patch: Fix build against protobuf 30
  [gh#Ultimaker/libArcus#163].
----------(New E)----------

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

Other differences:
------------------
++++++ libArcus.spec ++++++
--- /var/tmp/diff_new_pack.8Jp2Jk/_old  2025-06-20 16:50:07.646042164 +0200
+++ /var/tmp/diff_new_pack.8Jp2Jk/_new  2025-06-20 16:50:07.646042164 +0200
@@ -32,6 +32,8 @@
 Patch1:         0001-Use-single-parameter-SetTotalBytesLimit-fix-protobuf.patch
 # PATCH-FIX-OPENSUSE
 Patch2:         0001-Fix-compatibility-for-protobuf-v26.x-and-later.patch
+# PATCH-FIX-UPSTREAM libArcus-protobuf-30.patch gh#Ultimaker/libArcus#163 
dims...@opensuse.org -- Fix compilation against protobuf 30.x
+Patch3:         libArcus-protobuf-30.patch
 BuildRequires:  cmake >= 3.6
 BuildRequires:  gcc-c++
 BuildRequires:  protobuf-devel >= 3.0.0

++++++ libArcus-protobuf-30.patch ++++++
Index: libArcus-4.13/python/PythonMessage.cpp
===================================================================
--- libArcus-4.13.orig/python/PythonMessage.cpp
+++ libArcus-4.13/python/PythonMessage.cpp
@@ -47,7 +47,7 @@ PythonMessage::~PythonMessage()
 
 std::string Arcus::PythonMessage::getTypeName() const
 {
-    return  _message->GetTypeName();
+    return std::string(_message->GetTypeName());
 }
 
 MessagePtr Arcus::PythonMessage::getSharedMessage() const
Index: libArcus-4.13/src/MessageTypeStore.cpp
===================================================================
--- libArcus-4.13.orig/src/MessageTypeStore.cpp
+++ libArcus-4.13/src/MessageTypeStore.cpp
@@ -21,6 +21,8 @@
 #include <unordered_map>
 #include <sstream>
 #include <iostream>
+#include <string_view>
+#include <cstdint>
 
 #include <google/protobuf/dynamic_message.h>
 #include <google/protobuf/compiler/importer.h>
@@ -34,16 +36,18 @@ using namespace Arcus;
  * of std::hash differs between compilers, we need to make sure we use the same
  * implementation everywhere.
  */
-uint32_t hash(const std::string& input)
+uint32_t hash(std::string_view input)
 {
-    const char* data = input.c_str();
-    uint32_t length = input.size();
-    uint32_t result = static_cast<uint32_t>(2166136261UL);
-    for(; length; --length)
+    const char* data = input.data();
+    uint32_t length = static_cast<uint32_t>(input.size());
+    uint32_t result = 2166136261u;
+
+    for (; length; --length)
     {
         result ^= static_cast<uint32_t>(*data++);
-        result *= static_cast<uint32_t>(16777619UL);
+        result *= 16777619u;
     }
+
     return result;
 }
 
Index: libArcus-4.13/src/MessageTypeStore.h
===================================================================
--- libArcus-4.13.orig/src/MessageTypeStore.h
+++ libArcus-4.13/src/MessageTypeStore.h
@@ -20,6 +20,7 @@
 #define ARCUS_MESSAGE_TYPE_STORE_H
 
 #include <memory>
+#include <cstdint>
 
 #include "ArcusExport.h"
 #include "Types.h"
Index: libArcus-4.13/src/Types.h
===================================================================
--- libArcus-4.13.orig/src/Types.h
+++ libArcus-4.13/src/Types.h
@@ -20,6 +20,7 @@
 #define ARCUS_TYPES_H
 
 #include <string>
+#include <cstdint>
 #include <memory>
 
 namespace google
Index: libArcus-4.13/src/PlatformSocket_p.h
===================================================================
--- libArcus-4.13.orig/src/PlatformSocket_p.h
+++ libArcus-4.13/src/PlatformSocket_p.h
@@ -21,6 +21,7 @@
 
 #include <memory>
 #include <string>
+#include <cstdint>
 
 namespace Arcus
 {

Reply via email to