[Debian-on-mobile-maintainers] Bug#1155816: phosh-session-services: FTBFS: error: failed to select a version for the requirement `zbus = "^5.13"`

Simon Quigley simon at tsimonq2.net
Sun Nov 29 19:17:34 GMT 2026


Hello,

Attached is a debdiff fixing this.

Best regards,
Simon Quigley
tsimonq2 at debian.org
-------------- next part --------------
diff -Nru phosh-session-services-0.3.0/debian/changelog phosh-session-services-0.3.0/debian/changelog
--- phosh-session-services-0.3.0/debian/changelog	2026-11-07 09:17:13.000000000 -0600
+++ phosh-session-services-0.3.0/debian/changelog	2026-11-29 12:57:22.000000000 -0600
@@ -1,3 +1,10 @@
+phosh-session-services (0.3.0-1.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Build against zbus 6 (Closes: #1155816).
+
+ -- Simon Quigley <tsimonq2 at debian.org>  Sun, 29 Nov 2026 12:57:49 -0600
+
 phosh-session-services (0.3.0-1) unstable; urgency=medium
 
   * Initial upload to Debian (Closes: #1148928)
diff -Nru phosh-session-services-0.3.0/debian/patches/series phosh-session-services-0.3.0/debian/patches/series
--- phosh-session-services-0.3.0/debian/patches/series	2026-11-07 09:17:13.000000000 -0600
+++ phosh-session-services-0.3.0/debian/patches/series	2026-11-29 12:57:11.000000000 -0600
@@ -1,3 +1,4 @@
 build-Add-rust-triplet-to-path.patch
 cargo-Pin-dependencies-to-versions-in-available-in-Debian.patch
 cargo-Drop-demo.patch
+zbus-6.patch
diff -Nru phosh-session-services-0.3.0/debian/patches/zbus-6.patch phosh-session-services-0.3.0/debian/patches/zbus-6.patch
--- phosh-session-services-0.3.0/debian/patches/zbus-6.patch	1969-12-31 18:00:00.000000000 -0600
+++ phosh-session-services-0.3.0/debian/patches/zbus-6.patch	2026-11-29 12:57:18.000000000 -0600
@@ -0,0 +1,354 @@
+Description: Build against zbus 6.
+ zbus 6 contains the old zvariant types. A direct zvariant
+ dependency is a second copy of those types. Builder setters
+ report conversion errors from build(), and ServiceUnknown is
+ an fdo error. #[tokio::main] needs Tokio's rt-multi-thread
+ feature, which zbus 6 no longer enables.
+Author: Matthias Geiger <werdahias at debian.org>
+Author: Simon Quigley <tsimonq2 at debian.org>
+Origin: vendor
+Forwarded: no
+Last-Update: 2026-11-29
+---
+--- a/phosh-os-updater/Cargo.toml
++++ b/phosh-os-updater/Cargo.toml
+@@ -27,14 +27,13 @@ rand = { version = "0.10.1", features =
+ serde = "1.0.228"
+ serde_json = "1.0.150"
+ tracing-subscriber= { version = "0.3", features = ["env-filter"] }
+-zvariant = "5.12.0"
+ 
+ [dependencies.tokio]
+ default-features = false
+-features = ["fs", "macros", "rt", "sync", "time", "signal"]
++features = ["fs", "macros", "rt", "rt-multi-thread", "sync", "time", "signal"]
+ version = "1.49"
+ 
+ [dependencies.zbus]
+ default-features = false
+-features = ["tokio"]
+-version = "5.13"
++features = ["tokio", "proxy"]
++version = "6.0"
+--- a/phosh-os-updater/src/updater/sysupdate1.rs
++++ b/phosh-os-updater/src/updater/sysupdate1.rs
+@@ -3,8 +3,7 @@
+ 
+ use log::{trace, warn};
+ use serde::Deserialize;
+-use zbus::{Connection, Result, proxy};
+-use zvariant::{OwnedObjectPath, Type};
++use zbus::{Connection, OwnedObjectPath, Result, Type, proxy};
+ 
+ use crate::updater::{UpdateError, UpdateInfo};
+ 
+@@ -88,8 +87,8 @@ impl Sysupdate1UpdateChecker {
+ 
+         let targets = match sysupdate.list_targets().await {
+             Err(e) => {
+-                if let zbus::Error::MethodError(name, _, _) = &e
+-                    && name.as_str() == "org.freedesktop.DBus.Error.ServiceUnknown"
++                if let zbus::Error::FDO(err) = &e
++                    && matches!(err.as_ref(), zbus::fdo::Error::ServiceUnknown(_))
+                 {
+                     return Err(UpdateError::NotSupported(
+                         "org.freedesktop.sysupdate1".into(),
+@@ -128,7 +127,7 @@ impl Sysupdate1UpdateChecker {
+         }
+ 
+         let proxy = Sysupdate1TargetProxy::builder(&self.conn)
+-            .path(&target.path)?
++            .path(&target.path)
+             .build()
+             .await?;
+ 
+--- a/phosh-push-distributor/Cargo.toml
++++ b/phosh-push-distributor/Cargo.toml
+@@ -25,13 +25,13 @@ version = "0.13"
+ 
+ [dependencies.tokio]
+ default-features = false
+-features = ["fs", "io-std", "io-util", "macros", "rt", "signal", "sync", "time"]
++features = ["fs", "io-std", "io-util", "macros", "rt", "rt-multi-thread", "signal", "sync", "time"]
+ version = "1.49"
+ 
+ [dependencies.zbus]
+ default-features = false
+-features = ["tokio"]
+-version = "5.13"
++features = ["tokio", "service"]
++version = "6.0"
+ 
+ [dev-dependencies.tokio]
+ features = ["net"]
+--- a/phosh-push-distributor/src/bus.rs
++++ b/phosh-push-distributor/src/bus.rs
+@@ -11,13 +11,13 @@ use std::collections::HashMap;
+ use async_trait::async_trait;
+ use zbus::Connection;
+ use zbus::message::{Flags, Message};
+-use zbus::zvariant::Value;
++use zbus::Variant;
+ 
+ pub const CONNECTOR_PATH: &str = "/org/unifiedpush/Connector";
+ pub const CONNECTOR_INTERFACE: &str = "org.unifiedpush.Connector2";
+ 
+ /// The `a{sv}` argument dictionary all `UnifiedPush` calls use.
+-pub type Args = HashMap<&'static str, Value<'static>>;
++pub type Args = HashMap<&'static str, Variant<'static>>;
+ 
+ #[async_trait]
+ pub trait ConnectorBus: Send + Sync {
+@@ -52,10 +52,10 @@ pub trait ConnectorBus: Send + Sync {
+ #[must_use]
+ pub fn message_args(token: &str, payload: &[u8], id: Option<&str>) -> Args {
+     let mut args = Args::new();
+-    args.insert("token", Value::from(token.to_string()));
+-    args.insert("message", Value::from(payload.to_vec()));
++    args.insert("token", Variant::from(token.to_string()));
++    args.insert("message", Variant::from(payload.to_vec()));
+     if let Some(id) = id {
+-        args.insert("id", Value::from(id.to_string()));
++        args.insert("id", Variant::from(id.to_string()));
+     }
+     args
+ }
+@@ -63,15 +63,15 @@ pub fn message_args(token: &str, payload
+ #[must_use]
+ pub fn new_endpoint_args(token: &str, endpoint: &str) -> Args {
+     let mut args = Args::new();
+-    args.insert("token", Value::from(token.to_string()));
+-    args.insert("endpoint", Value::from(endpoint.to_string()));
++    args.insert("token", Variant::from(token.to_string()));
++    args.insert("endpoint", Variant::from(endpoint.to_string()));
+     args
+ }
+ 
+ #[must_use]
+ pub fn unregistered_args(token: &str) -> Args {
+     let mut args = Args::new();
+-    args.insert("token", Value::from(token.to_string()));
++    args.insert("token", Variant::from(token.to_string()));
+     args
+ }
+ 
+@@ -90,10 +90,10 @@ impl DbusBus {
+     /// fire-and-forget. This also means a slow to activate application
+     /// can't block us.
+     async fn call(&self, service: &str, member: &'static str, args: Args) -> zbus::Result<()> {
+-        let message = Message::method_call(CONNECTOR_PATH, member)?
+-            .interface(CONNECTOR_INTERFACE)?
+-            .destination(service)?
+-            .with_flags(Flags::NoReplyExpected)?
++        let message = Message::method_call(CONNECTOR_PATH, member)
++            .interface(CONNECTOR_INTERFACE)
++            .destination(service)
++            .with_flags(Flags::NO_REPLY_EXPECTED)
+             .build(&args)?;
+         self.conn.send(&message).await
+     }
+--- a/phosh-session-services/Cargo.toml
++++ b/phosh-session-services/Cargo.toml
+@@ -11,9 +11,8 @@ async-channel = "2.5.0"
+ futures-lite = "2.6.1"
+ log = "0.4.32"
+ serde = "1.0.228"
+-zvariant = "5.12.0"
+ 
+ [dependencies.zbus]
+ default-features = false
+-features = ["tokio"]
+-version = "5.13"
++features = ["tokio", "proxy"]
++version = "6.0"
+--- a/phosh-session-services/src/nm.rs
++++ b/phosh-session-services/src/nm.rs
+@@ -91,8 +91,8 @@ impl NetworkManager {
+         let nm = NetworkManagerProxy::new(&self.conn).await?;
+ 
+         let props = zbus::fdo::PropertiesProxy::builder(&self.conn)
+-            .destination("org.freedesktop.NetworkManager")?
+-            .path(nm.inner().path())?
++            .destination("org.freedesktop.NetworkManager")
++            .path(nm.inner().path())
+             .build()
+             .await?;
+ 
+--- a/phosh-session-services/src/pms.rs
++++ b/phosh-session-services/src/pms.rs
+@@ -8,8 +8,7 @@
+ 
+ use std::collections::HashMap;
+ 
+-use zbus::{Connection, Result, proxy};
+-use zvariant::Value;
++use zbus::{Connection, Result, Variant, proxy};
+ 
+ #[proxy(
+     interface = "org.gtk.Actions",
+@@ -20,8 +19,8 @@ trait GtkActions {
+     async fn activate(
+         &self,
+         action_name: &str,
+-        parameter: Vec<Value<'_>>,
+-        platform_data: HashMap<String, Value<'_>>,
++        parameter: Vec<Variant<'_>>,
++        platform_data: HashMap<String, Variant<'_>>,
+     ) -> zbus::Result<()>;
+ }
+ 
+@@ -45,8 +44,8 @@ impl MobileSettingsPanel {
+     /// Will return `Err` if the `DBus` calls fail
+     pub async fn open_panel(&self, panel: &str, subpage: Option<&str>) -> Result<()> {
+         let parameter = match subpage {
+-            Some(subpage) => vec![Value::from((panel, vec![subpage]))],
+-            None => vec![Value::from((panel, Vec::<Value<'_>>::new()))],
++            Some(subpage) => vec![Variant::from((panel, vec![subpage]))],
++            None => vec![Variant::from((panel, Vec::<Variant<'_>>::new()))],
+         };
+ 
+         let proxy = GtkActionsProxy::new(&self.conn).await?;
+--- a/phosh-syncbus/Cargo.toml
++++ b/phosh-syncbus/Cargo.toml
+@@ -30,7 +30,7 @@ version = "1.0"
+ 
+ [dependencies.tokio]
+ default-features = false
+-features = ["fs", "macros", "process", "rt", "sync", "time"]
++features = ["fs", "macros", "process", "rt", "rt-multi-thread", "sync", "time"]
+ version = "1.49"
+ 
+ [dependencies.tracing]
+@@ -46,5 +46,5 @@ version = "2.5"
+ 
+ [dependencies.zbus]
+ default-features = false
+-features = ["tokio"]
+-version = "5.13"
++features = ["tokio", "proxy", "service", "object-manager"]
++version = "6.0"
+--- a/phosh-push-distributor/src/dbus.rs
++++ b/phosh-push-distributor/src/dbus.rs
+@@ -8,7 +8,7 @@ use std::hash::BuildHasher;
+ use std::sync::Arc;
+ 
+ use log::warn;
+-use zbus::zvariant::{OwnedValue, Value};
++use zbus::{OwnedVariant, Variant};
+ use zbus::{fdo, interface};
+ 
+ use crate::distributor::{Distributor, RegisterError};
+@@ -17,7 +17,7 @@ use crate::provider::RegisterRequest;
+ pub const BUS_NAME: &str = "org.unifiedpush.Distributor.phosh";
+ pub const PATH: &str = "/org/unifiedpush/Distributor";
+ 
+-fn string_arg<S: BuildHasher>(args: &HashMap<String, OwnedValue, S>, key: &str) -> Option<String> {
++fn string_arg<S: BuildHasher>(args: &HashMap<String, OwnedVariant, S>, key: &str) -> Option<String> {
+     args.get(key)?
+         .downcast_ref::<&str>()
+         .ok()
+@@ -27,7 +27,7 @@ fn string_arg<S: BuildHasher>(args: &Has
+ /// Parse the `a{sv}` argument of `Register`.
+ #[must_use]
+ pub fn parse_register<S: BuildHasher>(
+-    args: &HashMap<String, OwnedValue, S>,
++    args: &HashMap<String, OwnedVariant, S>,
+ ) -> Option<RegisterRequest> {
+     Some(RegisterRequest {
+         token: string_arg(args, "token")?,
+@@ -39,15 +39,15 @@ pub fn parse_register<S: BuildHasher>(
+ 
+ /// Build the `a{sv}` reply of `Register`.
+ #[must_use]
+-pub fn register_reply(failure: Option<&RegisterError>) -> HashMap<String, Value<'static>> {
++pub fn register_reply(failure: Option<&RegisterError>) -> HashMap<String, Variant<'static>> {
+     let mut reply = HashMap::new();
+     match failure {
+         None => {
+-            reply.insert("success".into(), Value::from("REGISTRATION_SUCCEEDED"));
++            reply.insert("success".into(), Variant::from("REGISTRATION_SUCCEEDED"));
+         }
+         Some(error) => {
+-            reply.insert("success".into(), Value::from("REGISTRATION_FAILED"));
+-            reply.insert("reason".into(), Value::from(error.reason()));
++            reply.insert("success".into(), Variant::from("REGISTRATION_FAILED"));
++            reply.insert("reason".into(), Variant::from(error.reason()));
+         }
+     }
+     reply
+@@ -68,8 +68,8 @@ impl DistributorInterface {
+ impl DistributorInterface {
+     async fn register(
+         &self,
+-        args: HashMap<String, OwnedValue>,
+-    ) -> fdo::Result<HashMap<String, Value<'static>>> {
++        args: HashMap<String, OwnedVariant>,
++    ) -> fdo::Result<HashMap<String, Variant<'static>>> {
+         let request = parse_register(&args)
+             .ok_or_else(|| fdo::Error::InvalidArgs("token and service are required".into()))?;
+         let token = request.token.clone();
+@@ -94,8 +94,8 @@ impl DistributorInterface {
+ 
+     async fn unregister(
+         &self,
+-        args: HashMap<String, OwnedValue>,
+-    ) -> fdo::Result<HashMap<String, Value<'static>>> {
++        args: HashMap<String, OwnedVariant>,
++    ) -> fdo::Result<HashMap<String, Variant<'static>>> {
+         let token = string_arg(&args, "token")
+             .ok_or_else(|| fdo::Error::InvalidArgs("token is required".into()))?;
+         self.distributor.unregister(&token).await;
+--- a/phosh-session-services/src/noti.rs
++++ b/phosh-session-services/src/noti.rs
+@@ -6,8 +6,7 @@ use std::sync::{Arc, Mutex};
+ 
+ use futures_lite::stream::StreamExt;
+ use log::{debug, trace};
+-use zbus::zvariant::Value;
+-use zbus::{Connection, Result, proxy};
++use zbus::{Connection, Result, Variant, proxy};
+ 
+ const DEFAULT_TIMEOUT_MS: i32 = 5000;
+ 
+@@ -26,7 +25,7 @@ trait Notification {
+         summary: &str,
+         body: &str,
+         actions: &[&str],
+-        hints: HashMap<&str, &Value<'_>>,
++        hints: HashMap<&str, &Variant<'_>>,
+         expire_timeout: i32,
+     ) -> zbus::Result<u32>;
+ 
+@@ -113,8 +112,8 @@ impl NotiManager {
+     ) -> Result<u32> {
+         let proxy = NotificationProxy::new(&self.conn).await?;
+         let mut hints = HashMap::new();
+-        hints.insert("urgency", &Value::U8(1));
+-        let s = Value::from(self.app_id.as_str());
++        hints.insert("urgency", &Variant::U8(1));
++        let s = Variant::from(self.app_id.as_str());
+         hints.insert("desktop-entry", &s);
+         let replaces_id = replaces_id.unwrap_or(0);
+ 
+--- a/phosh-syncbus/src/systemd.rs
++++ b/phosh-syncbus/src/systemd.rs
+@@ -1,8 +1,8 @@
+ use serde::{Deserialize, Serialize};
+ use zbus::proxy;
+-use zbus::zvariant::{OwnedObjectPath, OwnedValue, Type, Value};
++use zbus::{OwnedObjectPath, OwnedVariant, Type, Variant};
+ 
+-#[derive(Deserialize, Serialize, Type, Value, OwnedValue, Clone, Debug, PartialEq)]
++#[derive(Deserialize, Serialize, Type, Variant, OwnedVariant, Clone, Debug, PartialEq)]
+ #[serde(rename_all = "kebab-case")]
+ #[zvariant(signature = "s", rename_all = "kebab-case")]
+ pub enum ActiveState {
+@@ -25,7 +25,7 @@ pub trait Unit {
+     fn active_state(&self) -> zbus::Result<ActiveState>;
+ }
+ 
+-#[derive(Deserialize, Serialize, Type, Value, Clone)]
++#[derive(Deserialize, Serialize, Type, Variant, Clone)]
+ #[serde(rename_all = "kebab-case")]
+ #[zvariant(signature = "s", rename_all = "kebab-case")]
+ pub enum Mode {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-on-mobile-maintainers/attachments/20261129/b0743376/attachment-0001.sig>


More information about the Debian-on-mobile-maintainers mailing list