summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2026-04-27 15:22:56 +0200
committerNoé Lopez <noelopez@free.fr>2026-04-29 18:36:37 +0200
commit9a759d93e67ee96662ec4ebaf89c9892e7afeaa2 (patch)
tree2c11f6ece93cc2c99630662b9b30f26ea6343e69 /gnu
parentfd7bd9e685a9dc9aa5033efc9a6e2f92ad6bd2ba (diff)
gnu: orca: Prevent crash on startup.
* gnu/packages/patches/orca-fix-gst-init-check-call.patch: New file. * gnu/local.mk (dist_patch_DATA): Reference it here. * gnu/packages/gnome.scm (orca): Use it here. [#:phases]<qualify-program>: Adapt to upstream quote style change. [inputs]: Add python-dbus. Change-Id: I585d610901c7c3d488840c00f0a1d03942eebe01 Signed-off-by: Noé Lopez <noelopez@free.fr>
Diffstat (limited to 'gnu')
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/gnome.scm6
-rw-r--r--gnu/packages/patches/orca-fix-gst-init-check-call.patch28
3 files changed, 33 insertions, 2 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 4e37022ac2..87a7793a47 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -2070,6 +2070,7 @@ dist_patch_DATA = \
%D%/packages/patches/open-zwave-hidapi.patch \
%D%/packages/patches/opusfile-CVE-2022-47021.patch \
%D%/packages/patches/orbit2-fix-array-allocation-32bit.patch \
+ %D%/packages/patches/orca-fix-gst-init-check-call.patch \
%D%/packages/patches/orpheus-cast-errors-and-includes.patch \
%D%/packages/patches/ots-no-include-missing-file.patch \
%D%/packages/patches/owncloud-disable-updatecheck.patch \
diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm
index 8a75b156d9..a170f42755 100644
--- a/gnu/packages/gnome.scm
+++ b/gnu/packages/gnome.scm
@@ -11575,7 +11575,8 @@ accessibility infrastructure.")
name "-" version ".tar.xz"))
(sha256
(base32
- "0sfs06f66dsibvnp87jshhs7n3f8shkn9x7j3ygpk8409za2n2xy"))))
+ "0sfs06f66dsibvnp87jshhs7n3f8shkn9x7j3ygpk8409za2n2xy"))
+ (patches (search-patches "orca-fix-gst-init-check-call.patch"))))
(build-system meson-build-system)
(arguments
'(#:glib-or-gtk? #t
@@ -11593,7 +11594,7 @@ accessibility infrastructure.")
(pgrep (string-append
(assoc-ref inputs "procps") "/bin/pgrep")))
(substitute* "src/orca/orca_modifier_manager.py"
- (("'xkbcomp'") (format #f "'~a'" xkbcomp)))
+ (("\"xkbcomp\"") (format #f "'~a'" xkbcomp)))
(substitute* "src/orca/debug.py"
(("'pgrep %s'")
(format #f "'~a %s'" pgrep)))
@@ -11627,6 +11628,7 @@ accessibility infrastructure.")
`(,liblouis "python")
procps ; for pgrep
python
+ python-dbus
python-pygobject-3.50
python-pyatspi
speech-dispatcher
diff --git a/gnu/packages/patches/orca-fix-gst-init-check-call.patch b/gnu/packages/patches/orca-fix-gst-init-check-call.patch
new file mode 100644
index 0000000000..d806570ce6
--- /dev/null
+++ b/gnu/packages/patches/orca-fix-gst-init-check-call.patch
@@ -0,0 +1,28 @@
+From 98300ecbb26fcacb0f7a722629fc50b4ec6bd1ab Mon Sep 17 00:00:00 2001
+Message-ID: <98300ecbb26fcacb0f7a722629fc50b4ec6bd1ab.1777294348.git.vivien@planete-kraus.eu>
+From: Vivien Kraus <vivien@planete-kraus.eu>
+Date: Mon, 27 Apr 2026 14:51:07 +0200
+Subject: [PATCH] Fix invalid Gst.init_check call
+
+init_check accepts a list of program arguments. An empty list works.
+
+---
+ src/orca/sound.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/orca/sound.py b/src/orca/sound.py
+index d507a371d..b1129609f 100644
+--- a/src/orca/sound.py
++++ b/src/orca/sound.py
+@@ -34,7 +34,7 @@ try:
+ except Exception:
+ _gstreamerAvailable = False
+ else:
+- _gstreamerAvailable, args = Gst.init_check(None)
++ _gstreamerAvailable, args = Gst.init_check([])
+
+ from . import debug
+ from .sound_generator import Icon, Tone
+--
+2.52.0
+