You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
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:
However, with that modification in place, errors such as the following are seen on the command line:
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.
The text was updated successfully, but these errors were encountered: