From fee0f8198e5764a0a6775703d9a3262f34eef5ff Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 1 Dec 2026 11:48:43 -0500 Subject: [PATCH] Prepare 2026.12.01 release packages and repair Xorg probe --- .../Arch-Linux/cthulhu-git/.SRCINFO | 6 +- .../Arch-Linux/cthulhu-git/PKGBUILD | 6 +- distro-packages/Arch-Linux/cthulhu/.SRCINFO | 11 +-- distro-packages/Arch-Linux/cthulhu/PKGBUILD | 19 ++--- .../cthulhu/ocr-descendant-test.patch | 14 ---- .../cthulhu/speech-history-test.patch | 78 ------------------- .../xorg/xterm_handoff_native_test.go | 2 +- 7 files changed, 16 insertions(+), 120 deletions(-) delete mode 100644 distro-packages/Arch-Linux/cthulhu/ocr-descendant-test.patch delete mode 100644 distro-packages/Arch-Linux/cthulhu/speech-history-test.patch diff --git a/distro-packages/Arch-Linux/cthulhu-git/.SRCINFO b/distro-packages/Arch-Linux/cthulhu-git/.SRCINFO index e648349..e58b220 100644 --- a/distro-packages/Arch-Linux/cthulhu-git/.SRCINFO +++ b/distro-packages/Arch-Linux/cthulhu-git/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = cthulhu-git pkgdesc = Desktop-agnostic screen reader with speech, Braille, and Tentacle support - pkgver = 2026.10.31.r588.g9680b58 - pkgrel = 3 + pkgver = 2026.12.01.r767.ga7e69b1 + pkgrel = 1 url = https://git.stormux.org/storm/cthulhu arch = x86_64 arch = aarch64 @@ -33,7 +33,7 @@ pkgbase = cthulhu-git optdepends = libusb: DECtalk USB hardware speech optdepends = tesseract: OCR engine for text recognition optdepends = tesseract-data-eng: English OCR language data - provides = cthulhu=2026.10.31.r588.g9680b58 + provides = cthulhu=2026.12.01.r767.ga7e69b1 conflicts = cthulhu options = !debug options = !lto diff --git a/distro-packages/Arch-Linux/cthulhu-git/PKGBUILD b/distro-packages/Arch-Linux/cthulhu-git/PKGBUILD index e70551b..d389695 100644 --- a/distro-packages/Arch-Linux/cthulhu-git/PKGBUILD +++ b/distro-packages/Arch-Linux/cthulhu-git/PKGBUILD @@ -4,8 +4,8 @@ pkgbase=cthulhu-git pkgname=cthulhu-git _pkgname=cthulhu -pkgver=2026.10.31.r588.g9680b58 -pkgrel=3 +pkgver=2026.12.01.r767.ga7e69b1 +pkgrel=1 pkgdesc="Desktop-agnostic screen reader with speech, Braille, and Tentacle support" url="https://git.stormux.org/storm/cthulhu" arch=(x86_64 aarch64 armv7h) @@ -87,7 +87,7 @@ build() { go build -o build/cthulhu ./cmd/cthulhu go build -tags brlapi -o build/cthulhu-braille ./cmd/cthulhu-braille - # Include the helper once incoming Remote keyboard support reaches master. + # Older source revisions predate incoming Remote keyboard support. if [[ -d cmd/cthulhu-input-helper ]]; then go build -o build/cthulhu-input-helper ./cmd/cthulhu-input-helper fi diff --git a/distro-packages/Arch-Linux/cthulhu/.SRCINFO b/distro-packages/Arch-Linux/cthulhu/.SRCINFO index 2f09552..9015bb8 100644 --- a/distro-packages/Arch-Linux/cthulhu/.SRCINFO +++ b/distro-packages/Arch-Linux/cthulhu/.SRCINFO @@ -1,7 +1,7 @@ pkgbase = cthulhu pkgdesc = Desktop-agnostic screen reader with speech, Braille, and Tentacle support - pkgver = 2026.10.31 - pkgrel = 7 + pkgver = 2026.12.01 + pkgrel = 1 url = https://git.stormux.org/storm/cthulhu arch = x86_64 arch = aarch64 @@ -30,17 +30,14 @@ pkgbase = cthulhu depends = xclip depends = dbus optdepends = git: Discover and update Tentacle repositories + optdepends = libusb: DECtalk USB hardware speech optdepends = tesseract: OCR engine for text recognition optdepends = tesseract-data-eng: English OCR language data conflicts = cthulhu-git options = !debug options = !lto - source = cthulhu::git+https://git.stormux.org/storm/cthulhu.git#tag=2026.10.31 - source = ocr-descendant-test.patch - source = speech-history-test.patch + source = cthulhu::git+https://git.stormux.org/storm/cthulhu.git#tag=2026.12.01 sha512sums = SKIP - sha512sums = d733908430bb0de8ce199b44680b9fb38165bd55d0f178f1b9f81cf5b8f9d36dd1c4ab360f6e1fad048a81ba3a52ee3f5f041e0e60aa5aeb0065429623a77a7e - sha512sums = 1fa70d8bf17a8469ef7dae342634a1d656a91bcdc2608e15ca906c4b3f88252042ec89401f9266372461d1e1e329ff7f3b8ff29d05fb04fc7c1f507c4634237a optdepends_x86_64 = wine-access: Wine, Proton, NVDA Controller, and Tolk integration pkgname = cthulhu diff --git a/distro-packages/Arch-Linux/cthulhu/PKGBUILD b/distro-packages/Arch-Linux/cthulhu/PKGBUILD index 68a518e..a268970 100644 --- a/distro-packages/Arch-Linux/cthulhu/PKGBUILD +++ b/distro-packages/Arch-Linux/cthulhu/PKGBUILD @@ -2,8 +2,8 @@ # shellcheck shell=bash disable=SC2034,SC2154,SC2164 pkgname=cthulhu -pkgver=2026.10.31 -pkgrel=7 +pkgver=2026.12.01 +pkgrel=1 pkgdesc="Desktop-agnostic screen reader with speech, Braille, and Tentacle support" url="https://git.stormux.org/storm/cthulhu" arch=(x86_64 aarch64 armv7h) @@ -40,6 +40,7 @@ depends=( ) optdepends=( 'git: Discover and update Tentacle repositories' + 'libusb: DECtalk USB hardware speech' 'tesseract: OCR engine for text recognition' 'tesseract-data-eng: English OCR language data' ) @@ -54,18 +55,8 @@ makedepends=( ) options=(!debug !lto) # The release tag must exist upstream before makepkg can fetch this source. -source=("${pkgname}::git+https://git.stormux.org/storm/${pkgname}.git#tag=${pkgver}" - "ocr-descendant-test.patch" - "speech-history-test.patch") -sha512sums=('SKIP' - 'd733908430bb0de8ce199b44680b9fb38165bd55d0f178f1b9f81cf5b8f9d36dd1c4ab360f6e1fad048a81ba3a52ee3f5f041e0e60aa5aeb0065429623a77a7e' - '1fa70d8bf17a8469ef7dae342634a1d656a91bcdc2608e15ca906c4b3f88252042ec89401f9266372461d1e1e329ff7f3b8ff29d05fb04fc7c1f507c4634237a') - -prepare() { - cd "${pkgname}" - patch -Np1 -i "${srcdir}/ocr-descendant-test.patch" - patch -Np1 -i "${srcdir}/speech-history-test.patch" -} +source=("${pkgname}::git+https://git.stormux.org/storm/${pkgname}.git#tag=${pkgver}") +sha512sums=('SKIP') build() { cd "${pkgname}" diff --git a/distro-packages/Arch-Linux/cthulhu/ocr-descendant-test.patch b/distro-packages/Arch-Linux/cthulhu/ocr-descendant-test.patch deleted file mode 100644 index e5c0c9f..0000000 --- a/distro-packages/Arch-Linux/cthulhu/ocr-descendant-test.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/internal/ocr/engine_test.go b/internal/ocr/engine_test.go -index 950983b..24f845a 100644 ---- a/internal/ocr/engine_test.go -+++ b/internal/ocr/engine_test.go -@@ -313,7 +313,8 @@ func TestEngineRetiresDescendantsHoldingPipes(t *testing.T) { - defer poll.Stop() - for { - status, err := os.ReadFile(fmt.Sprintf("/proc/%d/stat", pid)) -- if errors.Is(err, os.ErrNotExist) { -+ // A process exiting during the proc read can report ESRCH instead of ENOENT. -+ if errors.Is(err, os.ErrNotExist) || errors.Is(err, syscall.ESRCH) { - break - } - if err != nil { diff --git a/distro-packages/Arch-Linux/cthulhu/speech-history-test.patch b/distro-packages/Arch-Linux/cthulhu/speech-history-test.patch deleted file mode 100644 index 6f5dc7e..0000000 --- a/distro-packages/Arch-Linux/cthulhu/speech-history-test.patch +++ /dev/null @@ -1,78 +0,0 @@ -diff --git a/internal/app/speech_history_test.go b/internal/app/speech_history_test.go -index d4eb637..d73811c 100644 ---- a/internal/app/speech_history_test.go -+++ b/internal/app/speech_history_test.go -@@ -194,12 +194,18 @@ func TestRunRoutesSpeechHistoryCommands(t *testing.T) { - settings := config.DefaultSettings() - settings.EnableSpeech = false - settings.EnableSound = false -- commands := &fakeCommands{commands: make(chan input.CommandEvent, 3)} -+ // An unbuffered command waits for startup before timing callback delivery. -+ commands := &fakeCommands{commands: make(chan input.CommandEvent)} - called := make(chan input.Command, 2) -- done := make(chan error, 1) -+ ctx, cancel := context.WithCancel(t.Context()) -+ done := make(chan struct{}) -+ var runError error - go func() { -- done <- Run(context.Background(), Options{ -+ defer close(done) -+ runError = Run(ctx, Options{ - Logger: slog.New(slog.DiscardHandler), Settings: &settings, -+ newSound: func() soundService { return silentSound{} }, -+ newSpeaker: func() Speaker { return &fakeSpeaker{} }, - newCommands: func() commandListener { return commands }, - newAdapter: func() Adapter { return &fakeAdapter{events: make(chan atspi.Event)} }, - newInput: func() InputListener { return &fakeInputListener{events: make(chan input.Event)} }, -@@ -207,24 +213,44 @@ func TestRunRoutesSpeechHistoryCommands(t *testing.T) { - onSpeechMonitor: func() { called <- input.ToggleSpeechMonitor }, - }) - }() -+ t.Cleanup(func() { -+ cancel() -+ select { -+ case <-done: -+ if runError != nil { -+ t.Errorf("Run: %v", runError) -+ } -+ case <-time.After(10 * time.Second): -+ t.Error("Run did not stop after cancellation") -+ } -+ }) -+ sendCommand := func(command input.Command) { -+ t.Helper() -+ select { -+ case commands.commands <- input.CommandEvent{Command: command}: -+ case <-done: -+ t.Fatalf("Run stopped before accepting %s: %v", command, runError) -+ case <-time.After(10 * time.Second): -+ t.Fatalf("Run was not ready to accept %s", command) -+ } -+ } - for _, command := range []input.Command{input.ShowSpeechHistory, input.ToggleSpeechMonitor} { -- commands.commands <- input.CommandEvent{Command: command} -+ sendCommand(command) - select { - case got := <-called: - if got != command { - t.Fatalf("routed %s, want %s", got, command) - } -+ case <-done: -+ t.Fatalf("Run stopped while routing %s: %v", command, runError) - case <-time.After(time.Second): - t.Fatalf("command %s was not routed", command) - } - } -- commands.commands <- input.CommandEvent{Command: input.Quit} -+ sendCommand(input.Quit) - select { -- case err := <-done: -- if err != nil { -- t.Fatal(err) -- } -- case <-time.After(time.Second): -+ case <-done: -+ case <-time.After(10 * time.Second): - t.Fatal("quit was not handled") - } - } diff --git a/internal/platform/xorg/xterm_handoff_native_test.go b/internal/platform/xorg/xterm_handoff_native_test.go index 94162f3..4bc13a3 100644 --- a/internal/platform/xorg/xterm_handoff_native_test.go +++ b/internal/platform/xorg/xterm_handoff_native_test.go @@ -21,7 +21,7 @@ func TestNativeSuspendedQueuedKey(t *testing.T) { ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) defer cancel() probe := filepath.Join(t.TempDir(), "suspension-probe") - if out, err := exec.CommandContext(ctx, "cc", "-I.", "../../../tests/xorg_suspension_probe.c", "commands_native.c", "commands_local.c", "i3_native.c", "-o", probe, "-lX11", "-lXtst", "-lXi", "-lxkbcommon", "-lpthread").CombinedOutput(); err != nil { + if out, err := exec.CommandContext(ctx, "cc", "-I.", "../../../tests/xorg_suspension_probe.c", "commands_native.c", "commands_local.c", "application.c", "i3_native.c", "-o", probe, "-lX11", "-lXtst", "-lXi", "-lxkbcommon", "-lpthread").CombinedOutput(); err != nil { t.Fatalf("compile native probe: %v: %s", err, out) } for _, mode := range []string{"queued", "replay", "passive", "caps-handoff"} {