public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hidviz] rawhide: Fixed build with boost-1.90
@ 2026-07-23 15:46 
  0 siblings, 0 replies; only message in thread
From:  @ 2026-07-23 15:46 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/hidviz
            Branch : rawhide
            Commit : e77b01584786ae5b2e151740672119ef1475a0bf
            Author : Jaroslav Škarvada <jskarvad@redhat.com>
            Date   : 2026-07-23T17:45:45+02:00
            Stats  : +43/-0 in 2 file(s)
            URL    : https://src.fedoraproject.org/rpms/hidviz/c/e77b01584786ae5b2e151740672119ef1475a0bf?branch=rawhide

            Log:
            Fixed build with boost-1.90

Resolved: rhbz#2504127

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>

---
diff --git a/hidviz-0.2.1-boost-1.90-fix.patch b/hidviz-0.2.1-boost-1.90-fix.patch
new file mode 100644
index 0000000..ccb056d
--- /dev/null
+++ b/hidviz-0.2.1-boost-1.90-fix.patch
@@ -0,0 +1,41 @@
+diff --git a/libhidx/libhidx/src/Connector.hh b/libhidx/libhidx/src/Connector.hh
+index 96ddef4..fcdf4e2 100644
+--- a/libhidx/libhidx/src/Connector.hh
++++ b/libhidx/libhidx/src/Connector.hh
+@@ -92,7 +92,7 @@ namespace libhidx {
+         std::string m_socketDir;
+ 
+         /// Asio IO service.
+-        asio::io_service m_ioService;
++        asio::io_context m_ioService;
+ 
+         /// Socket used to communicate with helper process.
+         std::unique_ptr<asio::generic::stream_protocol::socket> m_socket;
+diff --git a/libhidx/libhidx_server/src/Server.cc b/libhidx/libhidx_server/src/Server.cc
+index 7f8362c..06aefde 100644
+--- a/libhidx/libhidx_server/src/Server.cc
++++ b/libhidx/libhidx_server/src/Server.cc
+@@ -374,7 +374,7 @@ namespace server {
+ 
+         std::string sockPath = sockDir + "/" + SOCKET_FILENAME;
+ 
+-        asio::io_service io_service;
++        asio::io_context io_service;
+         local::endpoint ep(sockPath);
+         local::acceptor acceptor{io_service, ep};
+         local::socket localSocket{io_service};
+@@ -399,12 +399,12 @@ namespace server {
+                 return;
+             }
+ 
+-            timer.expires_from_now(500ms);
++            timer.expires_after(500ms);
+             timer.async_wait(timerHandler);
+         };
+ 
+         if(watchParent) {
+-            timer.expires_from_now(500ms);
++            timer.expires_after(500ms);
+             timer.async_wait(timerHandler);
+         }
+ 

diff --git a/hidviz.spec b/hidviz.spec
index 410e96a..d88bedb 100644
--- a/hidviz.spec
+++ b/hidviz.spec
@@ -14,6 +14,8 @@ BuildRequires:	libusbx-devel
 BuildRequires:	asio-devel
 # Already fixed in upstream
 Patch:		hidviz-0.2.1-cmake-4-fix.patch
+# https://github.com/hidviz/hidviz/pull/47
+Patch:		hidviz-0.2.1-boost-1.90-fix.patch
 
 %description
 Hidviz is a GUI application for in-depth analysis of USB HID class devices.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-23 15:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-23 15:46 [rpms/hidviz] rawhide: Fixed build with boost-1.90 

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox