devdraw doesn't work on AIX
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by reproducing the failure with sam or acme on AIX, then inspect the referenced golang.org/x/exp/shiny/driver/driver_fallback.go and driver_x11.go changes. Determine whether the XGB connection error is caused by exp or devdraw; done means devdraw can access a screen and sam or acme starts without the reported errors.
Written by the indexing model from the issue text.
Description
The Go port of devdraw does not work on AIX, even though Go itself does. While devdraw itself can be built on AIX, when running sam or acme, an error similar to the following is displayed:
$ sam
devdraw: no driver for accessing a screen
samterm: drawinit: EOF
This is because AIX is not supported in the upstream module golang.org/x/exp/shiny/driver. The following local modification to golang.org/x/exp adds support:
diff --git a/shiny/driver/driver_fallback.go b/shiny/driver/driver_fallback.go
index e36fbc5..9c9b01c 100644
--- a/shiny/driver/driver_fallback.go
+++ b/shiny/driver/driver_fallback.go
@@ -2,12 +2,13 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build !darwin && (!linux || android) && !windows && !dragonfly && !openbsd
+//go:build !darwin && (!linux || android) && !windows && !dragonfly && !openbsd && !aix
// +build !darwin
// +build !linux android
// +build !windows
// +build !dragonfly
// +build !openbsd
+// +build !aix
package driver
diff --git a/shiny/driver/driver_x11.go b/shiny/driver/driver_x11.go
index bc24238..e205638 100644
--- a/shiny/driver/driver_x11.go
+++ b/shiny/driver/driver_x11.go
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
-//go:build (linux && !android) || dragonfly || openbsd
-// +build linux,!android dragonfly openbsd
+//go:build (linux && !android) || dragonfly || openbsd || aix
+// +build linux,!android dragonfly openbsd aix
package driver
However, with that modification in place, errors such as the following are seen on the command line:
$ sam
XGB: conn.go:47: Could not get authority info: EOF
XGB: conn.go:48: Trying connection without authority info...
devdraw: x11driver: xgb.NewConn failed: EOF
samterm: drawinit: EOF
This might entirely be the fault of the exp module, not actually devdraw, but wasn't sure, so I'm reporting it here as well.
- Dominant language
- Go
- Stars
- 377
- Forks
- 109
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from 9fans/go
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
-
Watch: spaces in command are not preservedPossibly taken @cptaffe claimed this 445 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 52/100
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
-
samterm doesn't compile on AIXPossibly taken @bhuntsman claimed this 637 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
Similar issues
-
Type: Bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
projectdiscovery/httpx#2735 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
charmbracelet/huh#849 ·
-
help wanted stage/010-actionable
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
hivecommons/hive#18458 ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
suzuki-shunsuke/tfcmt#2636 ·
Maintainers usually reply within 1 day
-
ui: links opened in a new tab omit the public URL path prefix (e.g. rotations on a schedule's assignments page)Possibly taken @dginther claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day