Hello, I have attached a patch, it builds correctly on my end.
Best regards, Simon Quigley [email protected]
diff -Nru swayosd-0.3.0/debian/changelog swayosd-0.3.0/debian/changelog --- swayosd-0.3.0/debian/changelog 2026-11-14 20:24:13.000000000 -0600 +++ swayosd-0.3.0/debian/changelog 2026-11-28 14:16:33.000000000 -0600 @@ -1,3 +1,10 @@ +swayosd (0.3.0-5.1) unstable; urgency=medium + + * Non-maintainer upload. + * Port to zbus 6 (Closes: #1155355). + + -- Simon Quigley <[email protected]> Sat, 28 Nov 2026 14:16:33 -0600 + swayosd (0.3.0-5) unstable; urgency=medium * Build with blight 0.8 (Closes: #1152972) diff -Nru swayosd-0.3.0/debian/control swayosd-0.3.0/debian/control --- swayosd-0.3.0/debian/control 2026-11-14 20:24:13.000000000 -0600 +++ swayosd-0.3.0/debian/control 2026-11-28 14:16:04.000000000 -0600 @@ -34,7 +34,7 @@ librust-substring-1+default-dev (>= 1.4.5-~~), librust-thiserror-1+default-dev (>= 1.0.49-~~), librust-toml-0.8+default-dev, - librust-zbus-5+default-dev, + librust-zbus-6+default-dev, sassc, Standards-Version: 4.7.4 Homepage: https://github.com/ErikReider/SwayOSD diff -Nru swayosd-0.3.0/debian/patches/series swayosd-0.3.0/debian/patches/series --- swayosd-0.3.0/debian/patches/series 2026-11-14 20:24:13.000000000 -0600 +++ swayosd-0.3.0/debian/patches/series 2026-11-28 14:15:46.000000000 -0600 @@ -3,3 +3,4 @@ use-correct-udev-systemd-paths.diff Relax-input-and-blight-dependency.patch polkit-Allow-access-always.patch +zbus-6.patch diff -Nru swayosd-0.3.0/debian/patches/zbus-6.patch swayosd-0.3.0/debian/patches/zbus-6.patch --- swayosd-0.3.0/debian/patches/zbus-6.patch 1969-12-31 18:00:00.000000000 -0600 +++ swayosd-0.3.0/debian/patches/zbus-6.patch 2026-11-28 14:16:19.000000000 -0600 @@ -0,0 +1,104 @@ +Description: Port to zbus 6. +Author: Simon Quigley <[email protected]> +Origin: vendor +Forwarded: not-needed +Reviewed-by: Simon Quigley <[email protected]> +Last-Update: 2026-11-27 +--- +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -34,7 +34,7 @@ pulse = { version = "2.30.1", package = + pulsectl-rs = "0.3.2" + substring = "1.4.5" + lazy_static = "1.5.0" +-zbus = "5" ++zbus = "6" + # Backend Dependencies + input = "0.10" + libc = "0.2.174" +--- a/src/client/main.rs ++++ b/src/client/main.rs +@@ -11,7 +11,7 @@ mod global_utils; + mod brightness_backend; + + use clap::Parser; +-use zbus::{blocking::Connection, proxy}; ++use zbus::proxy; + + use crate::args::ArgsClient; + use crate::argtypes::ArgTypes; +@@ -25,9 +25,11 @@ trait Server { + async fn handle_action(&self, arg_type: String, data: String) -> zbus::Result<bool>; + } + +-fn get_proxy() -> zbus::Result<ServerProxyBlocking<'static>> { +- let connection = Connection::session()?; +- ServerProxyBlocking::new(&connection) ++fn get_proxy() -> zbus::Result<ServerProxy<'static>> { ++ zbus::block_on(async { ++ let connection = zbus::Connection::session().await?; ++ ServerProxy::new(&connection).await ++ }) + } + + fn main() { +@@ -40,7 +42,7 @@ fn main() { + + // Make sure that the server is running + let proxy = match get_proxy() { +- Ok(proxy) => match proxy.0.introspect() { ++ Ok(proxy) => match zbus::block_on(proxy.0.introspect()) { + Ok(_) => proxy, + Err(err) => { + eprintln!("Could not connect to SwayOSD Server with error: {}", err); +@@ -56,7 +58,7 @@ fn main() { + parse_args(&args, &proxy); + } + +-fn parse_args(args: &ArgsClient, proxy: &ServerProxyBlocking<'_>) { ++fn parse_args(args: &ArgsClient, proxy: &ServerProxy<'_>) { + let mut actions: Vec<(ArgTypes, Option<String>)> = Vec::new(); + + // +@@ -195,7 +197,10 @@ fn parse_args(args: &ArgsClient, proxy: + + // execute the sorted actions + for (arg_type, data) in actions { +- let _ = proxy.handle_action(arg_type.to_string(), data.unwrap_or(String::new())); ++ let _ = zbus::block_on(proxy.handle_action( ++ arg_type.to_string(), ++ data.unwrap_or(String::new()), ++ )); + } + } + +--- a/src/input-backend/dbus_server.rs ++++ b/src/input-backend/dbus_server.rs +@@ -17,9 +17,9 @@ impl DbusServer { + + impl DbusServer { + async fn get_connection(&self) -> zbus::Result<Connection> { +- let conn = connection::Builder::system()? +- .name(DBUS_BACKEND_NAME)? +- .serve_at(DBUS_PATH, DbusServer)? ++ let conn = connection::Builder::system() ++ .name(DBUS_BACKEND_NAME) ++ .serve_at(DBUS_PATH, DbusServer) + .build() + .await?; + +--- a/src/server/main.rs ++++ b/src/server/main.rs +@@ -65,9 +65,9 @@ impl DbusServer { + + impl DbusServer { + async fn init(sender: Sender<(ArgTypes, String)>) -> zbus::Result<()> { +- let _connection = connection::Builder::session()? +- .name(DBUS_SERVER_NAME)? +- .serve_at(DBUS_PATH, DbusServer { sender })? ++ let _connection = connection::Builder::session() ++ .name(DBUS_SERVER_NAME) ++ .serve_at(DBUS_PATH, DbusServer { sender }) + .build() + .await?; + pending::<()>().await;
OpenPGP_signature.asc
Description: OpenPGP digital signature

