Agent review pass.
This commit is contained in:
1 parent
e9b2e9508b
commit
64ee749a8e
105 files changed
+2098
-320
No files matched your search
@@ -0,0 +1,44 @@
|
||||
pkgbase = cthulhu-git
|
||||
pkgdesc = Desktop-agnostic screen reader with speech, Braille, and Tentacle support
|
||||
pkgver = 2026.10.31.r588.g9680b58
|
||||
pkgrel = 3
|
||||
url = https://git.stormux.org/storm/cthulhu
|
||||
arch = x86_64
|
||||
arch = aarch64
|
||||
arch = armv7h
|
||||
license = GPL-3.0-or-later
|
||||
makedepends = git
|
||||
makedepends = go
|
||||
makedepends = pkgconf
|
||||
depends = glibc
|
||||
depends = at-spi2-core
|
||||
depends = glib2
|
||||
depends = gdk-pixbuf2
|
||||
depends = gtk3
|
||||
depends = speech-dispatcher
|
||||
depends = gstreamer
|
||||
depends = gst-plugins-base
|
||||
depends = gst-plugins-good
|
||||
depends = brltty
|
||||
depends = liblouis
|
||||
depends = libx11
|
||||
depends = libxres
|
||||
depends = libxtst
|
||||
depends = libxi
|
||||
depends = libxfixes
|
||||
depends = libxkbcommon
|
||||
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
|
||||
provides = cthulhu=2026.10.31.r588.g9680b58
|
||||
conflicts = cthulhu
|
||||
options = !debug
|
||||
options = !lto
|
||||
source = cthulhu::git+https://git.stormux.org/storm/cthulhu.git#branch=master
|
||||
sha512sums = SKIP
|
||||
optdepends_x86_64 = wine-access: Wine, Proton, NVDA Controller, and Tolk integration
|
||||
|
||||
pkgname = cthulhu-git
|
||||
@@ -81,6 +81,8 @@ build() {
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
export GOPATH="${srcdir}/go"
|
||||
export GOCACHE="${GOCACHE:-${srcdir}/go-build}"
|
||||
export GOWORK=off
|
||||
export GOTOOLCHAIN=local
|
||||
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
|
||||
|
||||
go build -o build/cthulhu ./cmd/cthulhu
|
||||
|
||||
@@ -76,6 +76,8 @@ build() {
|
||||
export CGO_LDFLAGS="${LDFLAGS}"
|
||||
export GOPATH="${srcdir}/go"
|
||||
export GOCACHE="${GOCACHE:-${srcdir}/go-build}"
|
||||
export GOWORK=off
|
||||
export GOTOOLCHAIN=local
|
||||
export GOFLAGS="-buildmode=pie -trimpath -ldflags=-linkmode=external -mod=readonly -modcacherw"
|
||||
|
||||
go build -o build/cthulhu ./cmd/cthulhu
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
diff --git a/internal/wine/manager_test.go b/internal/wine/manager_test.go
|
||||
index 438fe26..0a5a0bb 100644
|
||||
--- a/internal/wine/manager_test.go
|
||||
+++ b/internal/wine/manager_test.go
|
||||
@@ -226,7 +226,8 @@ func TestManagerLaunchesAndStopsHelperForActivePrefix(t *testing.T) {
|
||||
t.Setenv("CTHULHU_TEST_WINE_OUTPUT", output)
|
||||
t.Setenv("DBUS_SESSION_BUS_ADDRESS", "unix:path=/reader-bus")
|
||||
helper := filepath.Join(root, "helper")
|
||||
- script := "#!/bin/sh\nprintf '%s\\n' \"$WINEPREFIX\" \"$CTHULHU_WINE_ACCESS_MANAGED\" \"$DBUS_SESSION_BUS_ADDRESS\" \"$DISPLAY\" > \"$CTHULHU_TEST_WINE_OUTPUT\"\nexec sleep 30\n"
|
||||
+ // Publish the complete environment atomically; printf can issue multiple writes.
|
||||
+ script := "#!/bin/sh\nprintf '%s\\n' \"$WINEPREFIX\" \"$CTHULHU_WINE_ACCESS_MANAGED\" \"$DBUS_SESSION_BUS_ADDRESS\" \"$DISPLAY\" > \"$CTHULHU_TEST_WINE_OUTPUT.tmp\"\nmv \"$CTHULHU_TEST_WINE_OUTPUT.tmp\" \"$CTHULHU_TEST_WINE_OUTPUT\"\nexec sleep 30\n"
|
||||
if err := os.WriteFile(helper, []byte(script), 0700); err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -1,43 +0,0 @@
|
||||
diff --git a/internal/app/tentacle_interaction_test.go b/internal/app/tentacle_interaction_test.go
|
||||
index db03ab2..52307f0 100644
|
||||
--- a/internal/app/tentacle_interaction_test.go
|
||||
+++ b/internal/app/tentacle_interaction_test.go
|
||||
@@ -32,7 +32,9 @@ func TestTentacleInteractionPeer(t *testing.T) {
|
||||
return sdk.Interaction{Form: &sdk.Form{Title: "Wormhole menu", Elements: []sdk.Element{{ID: "code", Label: "Wormhole code", Kind: sdk.Entry, Required: true, MaxLength: 256}}}, Next: next}, nil
|
||||
}
|
||||
submit := func(_ context.Context, raw json.RawMessage) (any, error) {
|
||||
- os.WriteFile(marker, raw, 0600)
|
||||
+ if err := write_tentacle_fixture_marker(marker, raw); err != nil {
|
||||
+ return nil, err
|
||||
+ }
|
||||
return sdk.Interaction{Presentation: sdk.Presentation{Speech: "Submitted", Braille: "Submitted"}}, nil
|
||||
}
|
||||
commands := []sdk.Command{
|
||||
diff --git a/internal/app/tentacles_test.go b/internal/app/tentacles_test.go
|
||||
index 8b862fd..36ee001 100644
|
||||
--- a/internal/app/tentacles_test.go
|
||||
+++ b/internal/app/tentacles_test.go
|
||||
@@ -19,6 +19,14 @@ import (
|
||||
sdk "git.stormux.org/storm/cthulhu/sdk/go/tentacle"
|
||||
)
|
||||
|
||||
+// Publish complete fixture data before readers can observe the marker.
|
||||
+func write_tentacle_fixture_marker(markerPath string, data []byte) error {
|
||||
+ if err := os.WriteFile(markerPath+".tmp", data, 0600); err != nil {
|
||||
+ return err
|
||||
+ }
|
||||
+ return os.Rename(markerPath+".tmp", markerPath)
|
||||
+}
|
||||
+
|
||||
// Subprocess fixture: no reader backend, network, or desktop access.
|
||||
func TestTentacleReaderPeer(t *testing.T) {
|
||||
if len(os.Args) < 3 || os.Args[len(os.Args)-2] != "reader-peer" {
|
||||
@@ -41,7 +49,7 @@ func TestTentacleReaderPeer(t *testing.T) {
|
||||
os.Exit(3)
|
||||
}
|
||||
group, _ := os.ReadFile("/proc/self/cgroup")
|
||||
- if err := os.WriteFile(marker, group, 0600); err != nil {
|
||||
+ if err := write_tentacle_fixture_marker(marker, group); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
if filepath.Base(marker) == "present-delay" {
|
||||
Reference in new issue
Block a user