Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package rtorrent for openSUSE:Factory 
checked in at 2025-03-31 11:42:37
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/rtorrent (Old)
 and      /work/SRC/openSUSE:Factory/.rtorrent.new.2696 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "rtorrent"

Mon Mar 31 11:42:37 2025 rev:15 rq:1265386 version:0.15.2

Changes:
--------
--- /work/SRC/openSUSE:Factory/rtorrent/rtorrent.changes        2025-01-05 
15:28:59.692181236 +0100
+++ /work/SRC/openSUSE:Factory/.rtorrent.new.2696/rtorrent.changes      
2025-03-31 11:43:53.301922587 +0200
@@ -1,0 +2,7 @@
+Fri Mar 28 21:24:20 UTC 2025 - Jan Engelhardt <jeng...@inai.de>
+
+- Update to release 0.15.2
+  * Colors, LUA and json-rpc are now supported in the client
+- Add 0001-Added-default-switch-cases-to-RpcManager.patch
+
+-------------------------------------------------------------------

Old:
----
  rtorrent-0.15.1.tar.gz

New:
----
  0001-Added-default-switch-cases-to-RpcManager.patch
  rtorrent-0.15.2.tar.gz

BETA DEBUG BEGIN:
  New:  * Colors, LUA and json-rpc are now supported in the client
- Add 0001-Added-default-switch-cases-to-RpcManager.patch
BETA DEBUG END:

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

Other differences:
------------------
++++++ rtorrent.spec ++++++
--- /var/tmp/diff_new_pack.2vuGl0/_old  2025-03-31 11:43:54.021952465 +0200
+++ /var/tmp/diff_new_pack.2vuGl0/_new  2025-03-31 11:43:54.025952631 +0200
@@ -17,27 +17,31 @@
 
 
 Name:           rtorrent
-Version:        0.15.1
+Version:        0.15.2
 Release:        0
 Summary:        Console-based BitTorrent client
 License:        SUSE-GPL-2.0+-with-openssl-exception
 Group:          Productivity/Networking/File-Sharing
 URL:            https://github.com/rakshasa/rtorrent
-
 Source:         
https://github.com/rakshasa/rtorrent/releases/download/v%version/%name-%version.tar.gz
 Source2:        rtorrent.desktop
 # This manpage copied from the 0.9.2 tarball as it was missing in later 
versions
 Source3:        rtorrent.1
 Source4:        rtorrent.service
+Patch1:         0001-Added-default-switch-cases-to-RpcManager.patch
 BuildRequires:  autoconf-archive
 BuildRequires:  automake
+%if 0%{?suse_version} && 0%{?suse_version} < 1600
+BuildRequires:  gcc13-c++
+%else
 BuildRequires:  gcc-c++
+%endif
 BuildRequires:  libtool
 BuildRequires:  ncurses-devel
 BuildRequires:  update-desktop-files
 BuildRequires:  pkgconfig(cppunit) >= 1.9.6
 BuildRequires:  pkgconfig(libcurl) >= 7.15.4
-BuildRequires:  pkgconfig(libtorrent) >= 0.15.0
+BuildRequires:  pkgconfig(libtorrent) >= 0.15.2
 BuildRequires:  sysuser-tools
 Provides:       bundled(tinyxml2) = 10.0.0
 %sysusers_requires
@@ -52,10 +56,12 @@
 %autosetup -p1
 
 %build
+%if 0%{?suse_version} && 0%{?suse_version} < 1600
+export CXX=g++-13
+%endif
 # It's full of type pun violations
 export CFLAGS="%optflags -fno-strict-aliasing"
 export CXXFLAGS="$CFLAGS"
-export CXXFLAGS="$CXXFLAGS -std=gnu++14"
 autoreconf -fiv
 %configure --with-xmlrpc-tinyxml2 --enable-ipv6
 %make_build

++++++ 0001-Added-default-switch-cases-to-RpcManager.patch ++++++
>From 672bd0900501bba4d302479dc6fd1e244c2268f5 Mon Sep 17 00:00:00 2001
From: rakshasa <sundell.softw...@gmail.com>
Date: Sat, 29 Mar 2025 07:46:22 +0100
Subject: [PATCH] Added default switch cases to RpcManager.

---
 src/rpc/rpc_manager.cc | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/src/rpc/rpc_manager.cc b/src/rpc/rpc_manager.cc
index 5409a4f..13a13d6 100644
--- a/src/rpc/rpc_manager.cc
+++ b/src/rpc/rpc_manager.cc
@@ -99,22 +99,26 @@ RpcManager::object_to_target(const torrent::Object& obj, 
int call_flags, rpc::ta
 bool
 RpcManager::process(RPCType type, const char* in_buffer, uint32_t length, 
slot_response_callback callback) {
   switch (type) {
-  case RPCType::XML: {
+  case RPCType::XML:
     if (m_xmlrpc.is_valid() && 
rpc::call_command_value("network.rpc.use_xmlrpc")) {
       return m_xmlrpc.process(in_buffer, length, callback);
     } else {
       const std::string response = "<?xml 
version=\"1.0\"?><methodResponse><fault><struct><member><name>faultCode</name><value><i8>-501</i8></value></member><member><name>faultString</name><value><string>XML-RPC
 not supported</string></value></member></struct></fault></methodResponse>";
       return callback(response.c_str(), response.size());
     }
-  }
-  case RPCType::JSON: {
+    break;
+
+  case RPCType::JSON:
     if (rpc::call_command_value("network.rpc.use_jsonrpc")) {
       return m_jsonrpc.process(in_buffer, length, callback);
     } else {
       const std::string response = 
"{\"jsonrpc\":\"2.0\",\"error\":{\"code\":-32601,\"message\":\"JSON-RPC not 
supported\"},\"id\":null}";
       return callback(response.c_str(), response.size());
     }
-  }
+    break;
+
+  default:
+    throw torrent::input_error("invalid parameters: unknown RPC type");
   }
 }
 
@@ -139,6 +143,8 @@ RpcManager::is_type_enabled(RPCType type) const {
     return m_is_xmlrpc_enabled;
   case RPCType::JSON:
     return m_is_jsonrpc_enabled;
+  default:
+    throw torrent::input_error("invalid parameters: unknown RPC type");
   }
 }
 
@@ -147,8 +153,12 @@ RpcManager::set_type_enabled(RPCType type, bool enabled) {
   switch (type) {
   case RPCType::XML:
     m_is_xmlrpc_enabled = enabled;
+    break;
   case RPCType::JSON:
     m_is_jsonrpc_enabled = enabled;
+    break;
+  default:
+    throw torrent::input_error("invalid parameters: unknown RPC type");
   }
 }
 
-- 
2.49.0


++++++ _scmsync.obsinfo ++++++
--- /var/tmp/diff_new_pack.2vuGl0/_old  2025-03-31 11:43:54.069954457 +0200
+++ /var/tmp/diff_new_pack.2vuGl0/_new  2025-03-31 11:43:54.073954623 +0200
@@ -1,5 +1,5 @@
-mtime: 1735830402
-commit: 5857fe05c1c1900aac7a237be3b537f77c0c3ab3488b24ee8d4f1fd4f897613c
+mtime: 1743247964
+commit: e3fc352f2ff3e61fde885842d912da4d13042fe86a839bb08d21fbf44d5d9fa7
 url: https://src.opensuse.org/jengelh/rtorrent
 revision: master
 

++++++ build.specials.obscpio ++++++

++++++ rtorrent-0.15.1.tar.gz -> rtorrent-0.15.2.tar.gz ++++++
++++ 41156 lines of diff (skipped)

Reply via email to