NetBSD Problem Report #60849
From www@netbsd.org Sun Oct 4 18:35:00 2026
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256
client-signature RSA-PSS (2048 bits) client-digest SHA256)
(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id C069A1A923B
for <gnats-bugs@gnats.NetBSD.org>; Sun, 4 Oct 2026 18:35:00 +0000 (UTC)
Message-Id: <20261004183459.4E6F81A923C@mollari.NetBSD.org>
Date: Sun, 4 Oct 2026 18:34:59 +0000 (UTC)
From: netbsd@pera.mozmail.com
Reply-To: netbsd@pera.mozmail.com
To: gnats-bugs@NetBSD.org
Subject: [PATCH] wm/awesome spawn calls throwing UnixInputStream error
X-Send-Pr-Version: www-1.0
X-From4GNATS: "netbsd@pera.mozmail.com via gnats" <gnats-admin@NetBSD.org>
>Number: 60849
>Category: pkg
>Synopsis: [PATCH] wm/awesome spawn calls throwing UnixInputStream error
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: pending-pullups
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Oct 04 18:40:00 +0000 2026
>Closed-Date:
>Last-Modified: Sat Oct 10 14:20:02 +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:/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)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Mon, 05 Oct 2026 10:40:37 +0000
State-Changed-Why:
Committed, thanks!
From: "Thomas Klausner" <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60849 CVS commit: pkgsrc/wm/awesome
Date: Mon, 5 Oct 2026 10:40:06 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Mon Oct 5 10:40:06 UTC 2026
Modified Files:
pkgsrc/wm/awesome: Makefile distinfo
Added Files:
pkgsrc/wm/awesome/patches: patch-lib_awful_spawn.lua
Log Message:
awesome: add upstream patch for glib2 compat
Via Brian Gomes Bascoy in PR 60849.
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.109 -r1.110 pkgsrc/wm/awesome/Makefile
cvs rdiff -u -r1.30 -r1.31 pkgsrc/wm/awesome/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/wm/awesome/patches/patch-lib_awful_spawn.lua
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
State-Changed-From-To: closed->pending-pullups
State-Changed-By: bsiegert@NetBSD.org
State-Changed-When: Mon, 05 Oct 2026 11:40:49 +0000
State-Changed-Why:
pullup to 2026Q3 sent
From: "Maya Rashish" <maya@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/60849 CVS commit: [pkgsrc-2026Q3] pkgsrc/wm/awesome
Date: Sat, 10 Oct 2026 14:18:44 +0000
Module Name: pkgsrc
Committed By: maya
Date: Sat Oct 10 14:18:44 UTC 2026
Modified Files:
pkgsrc/wm/awesome [pkgsrc-2026Q3]: Makefile distinfo
Added Files:
pkgsrc/wm/awesome/patches [pkgsrc-2026Q3]: patch-lib_awful_spawn.lua
Log Message:
Pullup ticket #7266 - requested by bsiegert
wm/awesome: Bug fix
Revisions pulled up:
- wm/awesome/Makefile 1.110
- wm/awesome/distinfo 1.31
- wm/awesome/patches/patch-lib_awful_spawn.lua 1.1
---
Module Name: pkgsrc
Committed By: wiz
Date: Mon Oct 5 10:40:06 UTC 2026
Modified Files:
pkgsrc/wm/awesome: Makefile distinfo
Added Files:
pkgsrc/wm/awesome/patches: patch-lib_awful_spawn.lua
Log Message:
awesome: add upstream patch for glib2 compat
Via Brian Gomes Bascoy in PR 60849.
Bump PKGREVISION.
To generate a diff of this commit:
cvs rdiff -u -r1.107 -r1.107.2.1 pkgsrc/wm/awesome/Makefile
cvs rdiff -u -r1.30 -r1.30.10.1 pkgsrc/wm/awesome/distinfo
cvs rdiff -u -r0 -r1.1.2.2 \
pkgsrc/wm/awesome/patches/patch-lib_awful_spawn.lua
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.