pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/60849: [PATCH] wm/awesome spawn calls throwing UnixInputStream error
>Number: 60849
>Category: pkg
>Synopsis: [PATCH] wm/awesome spawn calls throwing UnixInputStream error
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 04 18:40:00 +0000 2026
>Originator: Brian Gomes Bascoy
>Release: NetBSD 11.0
>Organization:
>Environment:
System: NetBSD idefix 11.0 NetBSD 11.0 (GENERIC) #0: Thu Jul 30 15:23:12 UTC 2026 mkrepro%mkrepro.NetBSD.org@localhost:/usr/src/sys/arch/amd64/compile/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
When using Awesome WM Awful's Spawn API the following error is thrown:
attempt to index a nil value (field 'UnixInputStream')
>How-To-Repeat:
There are quite a few ways to trigger the error, for example by performing a call to awful.spawn.easy_async_with_shell
>Fix:
The issue is already fixed upstream in the master branch (but still unreleased):
https://github.com/awesomeWM/awesome/pull/4022/changes
3v1n0's patch updates /usr/pkg/share/awesome/lib/awful/spawn.lua with:
--- spawn.lua.orig 2026-10-04 17:02:00.808348915 +0100
+++ spawn.lua 2026-10-04 17:02:59.901458251 +0100
@@ -225,6 +225,7 @@
}
local lgi = require("lgi")
local Gio = lgi.Gio
+local GioUnix = lgi.GioUnix
local GLib = lgi.GLib
local util = require("awful.util")
local gtable = require("gears.table")
@@ -411,11 +412,11 @@
end
end
if have_stdout then
- spawn.read_lines(Gio.UnixInputStream.new(stdout, true),
+ spawn.read_lines(GioUnix.InputStream.new(stdout, true),
stdout_callback, step_done, true)
end
if have_stderr then
- spawn.read_lines(Gio.UnixInputStream.new(stderr, true),
+ spawn.read_lines(GioUnix.InputStream.new(stderr, true),
stderr_callback, step_done, true)
end
assert(stdin == nil)
Home |
Main Index |
Thread Index |
Old Index