NetBSD Problem Report #61082
From www@netbsd.org Thu Nov 26 17:28:47 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)
client-signature RSA-PSS (2048 bits))
(Client CN "mail.netbsd.org", Issuer "YR1" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 7228D1A923B
for <gnats-bugs@gnats.NetBSD.org>; Thu, 26 Nov 2026 17:28:47 +0000 (UTC)
Message-Id: <20261126172845.EDEB21A923D@mollari.NetBSD.org>
Date: Thu, 26 Nov 2026 17:28:45 +0000 (UTC)
From: phil@hagelb.org
Reply-To: phil@hagelb.org
To: gnats-bugs@NetBSD.org
Subject: luacheck is packaged for incompatible Lua versions
X-Send-Pr-Version: www-1.0
X-From4GNATS: "phil@hagelb.org via gnats" <gnats-admin@NetBSD.org>
>Number: 61082
>Category: pkg
>Synopsis: luacheck is packaged for incompatible Lua versions
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Nov 26 17:30:00 +0000 2026
>Last-Modified: Thu Nov 26 17:50:01 +0000 2026
>Originator: Phil Hagelberg
>Release: 11.1
>Organization:
>Environment:
NetBSD coronacht 11.1 NetBSD 11.1 (GENERIC) #0: Mon Nov 2 16:34:32 UTC 2026 mkrepro@mkrepro.NetBSD.org:/usr/src/sys/arch/amd64/compile/GENERIC amd64
>Description:
The luacheck program is packaged for lua5.1, lua5.2, lua5.3, lua5.4, and lua5.5. However, it is not compatible with either lua5.4 or lua5.5, since the upstream has not been updated in several years. The lua5.3-check package works great, but lua54-check and lua55-check don't run at all.
>How-To-Repeat:
Install lua54-check or lua55-check and try to run it:
/usr/pkg/bin/lua5.4: /usr/pkg/share/lua/5.4/luacheck/stages.lua:34: bad argument #2 to 'insert' (number expected, got table)
stack traceback:
[C]: in function 'table.insert'
/usr/pkg/share/lua/5.4/luacheck/stages.lua:34: in main chunk
[C]: in function 'require'
/usr/pkg/share/lua/5.4/luacheck/check.lua:5: in main chunk
[C]: in function 'require'
/usr/pkg/share/lua/5.4/luacheck/init.lua:1: in main chunk
[C]: in function 'require'
/usr/pkg/share/lua/5.4/luacheck/main.lua:3: in main chunk
[C]: in function 'require'
/home/phil/bin/luacheck:2: in main chunk
[C]: in ?
Or for 5.5:
/usr/pkg/bin/lua5.5: error loading module 'luacheck.standards' from file '/usr/pkg/share/lua/5.5/luacheck/standards.lua':
/usr/pkg/share/lua/5.5/luacheck/standards.lua:134: attempt to assign to const variable 'field_name'
stack traceback:
[C]: in ?
[C]: in global 'require'
/usr/pkg/share/lua/5.5/luacheck/builtin_standards.lua:1: in main chunk
[C]: in global 'require'
/usr/pkg/share/lua/5.5/luacheck/options.lua:3: in main chunk
[C]: in global 'require'
/usr/pkg/share/lua/5.5/luacheck/config.lua:1: in main chunk
[C]: in global 'require'
/usr/pkg/share/lua/5.5/luacheck/main.lua:2: in main chunk
[C]: in global 'require'
/usr/pkg/bin/luacheck-5.5:2: in main chunk
[C]: in ?
>Fix:
Until the upstream is updated, the packages for 5.4 and 5.5 should be removed.
>Audit-Trail:
From: "Taylor R Campbell" <riastradh@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/61082 CVS commit: pkgsrc/devel/lua-check
Date: Thu, 26 Nov 2026 17:46:00 +0000
Module Name: pkgsrc
Committed By: riastradh
Date: Thu Nov 26 17:46:00 UTC 2026
Modified Files:
pkgsrc/devel/lua-check: DESCR Makefile
Log Message:
devel/lua-check: Fix LUA_VERSIONS_INCOMPATIBLE and typo in COMMENT.
There is no Lua 6.4; presumably the `64' was meant to be `54', and
now we need to add 5.5 too.
Also add the missing trailing newline in DESCR that pkglint
complained about.
PKGREVISION++ for typo in comment and trailing newline in DESCR.
PR pkg/61082: luacheck is packaged for incompatible Lua versions
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 pkgsrc/devel/lua-check/DESCR \
pkgsrc/devel/lua-check/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
(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.