[Debian-on-mobile-maintainers] Bug#1155354: squeekboard: please port to zbus 6
Simon Quigley
simon at tsimonq2.net
Sat Nov 28 19:58:12 GMT 2026
Hello,
I have attached a patch, it builds correctly on my end.
Best regards,
Simon Quigley
tsimonq2 at debian.org
-------------- next part --------------
diff -Nru squeekboard-1.43.1/debian/changelog squeekboard-1.43.1/debian/changelog
--- squeekboard-1.43.1/debian/changelog 2026-10-04 11:41:34.000000000 -0500
+++ squeekboard-1.43.1/debian/changelog 2026-11-28 13:50:46.000000000 -0600
@@ -1,3 +1,13 @@
+squeekboard (1.43.1-2.2) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * Port to zbus 6 (Closes: #1155354).
+ * Declare close() as int close(int). rustc 1.99 rejects the old
+ declaration. Upstream merge request !714 changes the argument
+ type only. Thanks to Antonio Cotos <acf981 at protonmail.com>.
+
+ -- Simon Quigley <tsimonq2 at debian.org> Sat, 28 Nov 2026 13:50:46 -0600
+
squeekboard (1.43.1-2.1) unstable; urgency=medium
* Non-maintainer upload.
diff -Nru squeekboard-1.43.1/debian/control squeekboard-1.43.1/debian/control
--- squeekboard-1.43.1/debian/control 2026-10-04 11:41:26.000000000 -0500
+++ squeekboard-1.43.1/debian/control 2026-11-28 13:50:17.000000000 -0600
@@ -23,7 +23,8 @@
librust-serde-yaml-0.9-dev,
librust-thread-local-dev,
librust-xkbcommon-0.9-dev,
- librust-zbus-5-dev,
+ librust-futures-util-0.3-dev,
+ librust-zbus-6-dev,
librust-zvariant-5-dev,
librust-zvariant-derive-5-dev,
libwayland-dev,
diff -Nru squeekboard-1.43.1/debian/patches/series squeekboard-1.43.1/debian/patches/series
--- squeekboard-1.43.1/debian/patches/series 2026-10-04 11:41:26.000000000 -0500
+++ squeekboard-1.43.1/debian/patches/series 2026-11-28 13:49:59.000000000 -0600
@@ -3,3 +3,5 @@
0003-data-Add-systemd-unit-file.patch
0004-src-data-parsing-fix-build-with-recent-Rust.patch
0005-Bump-xkbcommon-dependency-to-0.9.patch
+zbus-6.patch
+vkeyboard-fix-close-declaration.patch
diff -Nru squeekboard-1.43.1/debian/patches/vkeyboard-fix-close-declaration.patch squeekboard-1.43.1/debian/patches/vkeyboard-fix-close-declaration.patch
--- squeekboard-1.43.1/debian/patches/vkeyboard-fix-close-declaration.patch 1969-12-31 18:00:00.000000000 -0600
+++ squeekboard-1.43.1/debian/patches/vkeyboard-fix-close-declaration.patch 2026-11-28 13:50:38.000000000 -0600
@@ -0,0 +1,31 @@
+Description: Declare close() with the libc signature.
+ rustc 1.99 rejects a declaration of the close symbol that differs
+ from int close(int). Upstream merge request !714 changes the
+ argument type only; the return type is needed as well.
+Author: Simon Quigley <tsimonq2 at debian.org>
+Author: Antonio Cotos <acf981 at protonmail.com>
+Origin: vendor
+Forwarded: not-needed
+Bug-Debian: https://bugs.debian.org/1155354
+Reviewed-by: Simon Quigley <tsimonq2 at debian.org>
+Last-Update: 2026-11-28
+---
+--- a/src/vkeyboard.rs
++++ b/src/vkeyboard.rs
+@@ -39,14 +39,14 @@ pub mod c {
+ impl Drop for KeyMap {
+ fn drop(&mut self) {
+ unsafe {
+- close(self.fd as u32);
++ close(self.fd as i32);
+ }
+ }
+ }
+
+ extern "C" {
+ // From libc, to let KeyMap get deallocated.
+- fn close(fd: u32);
++ fn close(fd: i32) -> i32;
+
+ pub fn eek_virtual_keyboard_v1_key(
+ virtual_keyboard: ZwpVirtualKeyboardV1,
diff -Nru squeekboard-1.43.1/debian/patches/zbus-6.patch squeekboard-1.43.1/debian/patches/zbus-6.patch
--- squeekboard-1.43.1/debian/patches/zbus-6.patch 1969-12-31 18:00:00.000000000 -0600
+++ squeekboard-1.43.1/debian/patches/zbus-6.patch 2026-11-28 13:50:32.000000000 -0600
@@ -0,0 +1,112 @@
+Description: Port to zbus 6.
+ zbus 6 removes the blocking API. Drive it with one zbus::block_on
+ on the existing thread, and read ActiveChanged with StreamExt. The
+ connection stays in scope so the default-rt helper thread keeps
+ serving it. Antonio Cotos <acf981 at protonmail.com> tested an
+ equivalent port.
+Author: Simon Quigley <tsimonq2 at debian.org>
+Origin: vendor
+Forwarded: not-needed
+Bug-Debian: https://bugs.debian.org/1155354
+Reviewed-by: Simon Quigley <tsimonq2 at debian.org>
+Last-Update: 2026-11-28
+---
+--- a/Cargo.toml
++++ b/Cargo.toml
+@@ -31,7 +31,8 @@ serde = { version = "1.0", features = ["
+ serde_yaml = "0.9"
+ bitflags = "1.3"
+ clap = { version = "4.4", features=["std"], default-features = false }
+-zbus = { version = "5", features = ["blocking"] }
++futures-util = "0.3"
++zbus = "6"
+ zvariant = "5"
+ zvariant_derive = "5"
+ xkbcommon = { version = "0.9", features = ["wayland"] }
+--- a/src/actors/external/debug.rs
++++ b/src/actors/external/debug.rs
+@@ -7,7 +7,6 @@ use crate::main;
+ use crate::state;
+
+ use std::thread;
+-use zbus::{blocking::Connection, ObjectServer};
+
+ use super::Void;
+
+@@ -39,11 +38,18 @@ impl Manager {
+ }
+
+ fn start(mgr: Manager) -> Result<(), Box<dyn std::error::Error>> {
+- let connection = Connection::session()?;
+-
+- connection.object_server().at("/sm/puri/SqueekDebug", mgr)?;
+- connection.request_name("sm.puri.SqueekDebug")?;
++ let connection = zbus::block_on(async {
++ let connection = zbus::Connection::session().await?;
++ connection
++ .object_server()
++ .at("/sm/puri/SqueekDebug", mgr)
++ .await?;
++ connection.request_name("sm.puri.SqueekDebug").await?;
++ Ok::<_, zbus::Error>(connection)
++ })?;
+
++ // zbus 6 keeps a live connection on a helper thread after block_on returns.
++ let _connection = connection;
+ loop {
+ thread::park();
+ }
+--- a/src/actors/external/screensaver.rs
++++ b/src/actors/external/screensaver.rs
+@@ -6,8 +6,8 @@
+ use crate::actors::Destination;
+ use crate::actors::popover;
+ use crate::logging;
++use futures_util::StreamExt;
+ use std::thread;
+-use zbus::blocking::Connection;
+
+ use super::Void;
+
+@@ -36,21 +36,26 @@ pub fn init(destination: popover::Destin
+ }
+
+ fn start(destination: popover::Destination) -> Result<Void, zbus::Error> {
+- let conn = Connection::session()?;
+- let manager = ManagerProxyBlocking::new(&conn)?;
++ zbus::block_on(async {
++ let result: Result<Void, zbus::Error> = async {
++ let conn = zbus::Connection::session().await?;
++ let manager = ManagerProxy::new(&conn).await?;
++ let mut active_changed = manager.receive_active_changed().await?;
++
++ while let Some(m) = active_changed.next().await {
++ match m.args() {
++ Ok(args) => destination.send(popover::Event::ScreensaverActive(args.active)),
++ Err(err) => log_print!(
++ logging::Level::Bug,
++ "Encountered unhandled event: {:?}",
++ err,
++ ),
++ }
++ }
+
+- let mut active_changed = manager.receive_active_changed()?;
+-
+- for m in active_changed {
+- match m.args() {
+- Ok(args) => destination.send(popover::Event::ScreensaverActive(args.active)),
+- Err(err) => log_print!(
+- logging::Level::Bug,
+- "Encountered unhandled event: {:?}",
+- err,
+- ),
++ unreachable!()
+ }
+- }
+-
+- unreachable!()
++ .await;
++ result
++ })
+ }
-------------- 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/20261128/ed5c0f90/attachment-0001.sig>
More information about the Debian-on-mobile-maintainers
mailing list