Prepare 2026.12.01 release packages and repair Xorg probe

This commit is contained in:
Storm Dragon committed 2026-12-01 11:48:43 -05:00
1 parent a7e69b1632
commit fee0f8198e
7 files changed
+16 -120

No files matched your search

@@ -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
@@ -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
+4 -7
View File
@@ -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
+5 -14
View File
@@ -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}"
@@ -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 {
@@ -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")
}
}