about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBobby Rong <rjl931189261@126.com>2023-08-17 12:19:20 +0000
committerJan Tojnar <jtojnar@gmail.com>2023-11-21 08:41:53 +0100
commitd052d2659ae92f9a649ea74caf305fffc6a68bd5 (patch)
tree2f726fe0b5182794fc1e492ff69155261acc46bf
parentdec1ace1b476e2d5395428a6cc9cff9f67d94624 (diff)
orca: 45.alpha → 45.beta2
https://gitlab.gnome.org/GNOME/orca/-/compare/ORCA_45_ALPHA...ORCA_45_BETA2

There is a PSA in the news, but we should be using cpython 0.29 to build *brltty*
and I don't aware of crash here.

https://discourse.gnome.org/t/psa-for-distros-brltty-should-be-built-using-cython-0-29-x-not-cython-3

Rebased our patch another time due to the f-string migration.

Changelog-reviewed-by: Bobby Rong <rjl931189261@126.com>
Changelog-reviewed-by: Jan Tojnar <jtojnar@gmail.com>
-rw-r--r--pkgs/applications/misc/orca/default.nix4
-rw-r--r--pkgs/applications/misc/orca/fix-paths.patch24
2 files changed, 14 insertions, 14 deletions
diff --git a/pkgs/applications/misc/orca/default.nix b/pkgs/applications/misc/orca/default.nix
index 50a67ac6ad237..8b5505a2dc7c3 100644
--- a/pkgs/applications/misc/orca/default.nix
+++ b/pkgs/applications/misc/orca/default.nix
@@ -34,13 +34,13 @@
 
 buildPythonApplication rec {
   pname = "orca";
-  version = "45.alpha";
+  version = "45.beta2";
 
   format = "other";
 
   src = fetchurl {
     url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
-    sha256 = "tlosCFKyb8DtqwJVbBIfXI7KFE13WmhoDC3vQWvJFEQ=";
+    sha256 = "vH1QbS4SOeNDA7D2FY1XK0OTQfQZHB5qTjIR2kocsc4=";
   };
 
   patches = [
diff --git a/pkgs/applications/misc/orca/fix-paths.patch b/pkgs/applications/misc/orca/fix-paths.patch
index 5255553fdd282..45ae4b827ba59 100644
--- a/pkgs/applications/misc/orca/fix-paths.patch
+++ b/pkgs/applications/misc/orca/fix-paths.patch
@@ -1,8 +1,8 @@
 diff --git a/src/orca/debug.py b/src/orca/debug.py
-index 458838b8a..c51d5c18c 100644
+index b7e11ea60..9ab996765 100644
 --- a/src/orca/debug.py
 +++ b/src/orca/debug.py
-@@ -440,7 +440,7 @@ def traceit(frame, event, arg):
+@@ -447,7 +447,7 @@ def traceit(frame, event, arg):
      return traceit
  
  def getOpenFDCount(pid):
@@ -11,20 +11,20 @@ index 458838b8a..c51d5c18c 100644
      procs = procs.decode('UTF-8').split('\n')
      files = list(filter(lambda s: s and s[0] == 'f' and s[1:].isdigit(), procs))
  
-@@ -458,7 +458,7 @@ def getCmdline(pid):
+@@ -465,7 +465,7 @@ def getCmdline(pid):
      return cmdline
  
  def pidOf(procName):
--    openFile = subprocess.Popen('pgrep %s' % procName,
-+    openFile = subprocess.Popen('@pgrep@ %s' % procName,
+-    openFile = subprocess.Popen(f'pgrep {procName}',
++    openFile = subprocess.Popen(f'@pgrep@ {procName}',
                                  shell=True,
                                  stdout=subprocess.PIPE).stdout
      pids = openFile.read()
 diff --git a/src/orca/orca.py b/src/orca/orca.py
-index 0ac486949..42387453c 100644
+index d4e89f918..bb3e6cc1d 100644
 --- a/src/orca/orca.py
 +++ b/src/orca/orca.py
-@@ -304,7 +304,7 @@ def updateKeyMap(keyboardEvent):
+@@ -312,7 +312,7 @@ def updateKeyMap(keyboardEvent):
  
  def _setXmodmap(xkbmap):
      """Set the keyboard map using xkbcomp."""
@@ -33,7 +33,7 @@ index 0ac486949..42387453c 100644
          stdin=subprocess.PIPE, stdout=None, stderr=None)
      p.communicate(xkbmap)
  
-@@ -381,7 +381,7 @@ def _storeXmodmap(keyList):
+@@ -389,7 +389,7 @@ def _storeXmodmap(keyList):
      """
  
      global _originalXmodmap
@@ -42,7 +42,7 @@ index 0ac486949..42387453c 100644
  
  def _restoreXmodmap(keyList=[]):
      """Restore the original xmodmap values for the keys in keyList.
-@@ -396,7 +396,7 @@ def _restoreXmodmap(keyList=[]):
+@@ -404,7 +404,7 @@ def _restoreXmodmap(keyList=[]):
  
      global _capsLockCleared
      _capsLockCleared = False
@@ -74,15 +74,15 @@ index 9d64af948..ca9c9e083 100644
                                  stdout=subprocess.PIPE).stdout
      pids = openFile.read()
 diff --git a/src/orca/script_utilities.py b/src/orca/script_utilities.py
-index 87ee7de52..8d5072df8 100644
+index ed8b155e4..0436cca42 100644
 --- a/src/orca/script_utilities.py
 +++ b/src/orca/script_utilities.py
 @@ -144,7 +144,7 @@ class Utilities:
              return ""
  
          try:
--            cmdline = subprocess.getoutput("cat /proc/%s/cmdline" % pid)
-+            cmdline = subprocess.getoutput("@cat@ /proc/%s/cmdline" % pid)
+-            cmdline = subprocess.getoutput(f"cat /proc/{pid}/cmdline")
++            cmdline = subprocess.getoutput(f"@cat@ /proc/{pid}/cmdline")
          except Exception:
              return ""