🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #2611

Bug#1152463: lmod: Incompatible with upcoming lua-posix 38

#2611
From: Sergei Golovan
Date: Thu, 29 Oct 2026 15:40
102 lines
8291 bytes
Source: lmod
Version: 8.7.60-1.1
Severity: important

Dear Maintainer,

I intend to upload newly released lua-posix 38, which removes some
functions and breaks backward compatibility (see [1] for the full list).

lmod uses some of deprecated and noe removed functions, so I expect
it will break when lua-posix 38 will be introduced to Debian.

I guess, you'd have to patch lmod to use the new interface.
Unfortunately, simpy replacing the old name by the new one doesn't work.
For example, posix.uname is replaced by posix.sys.utsname.uname, but
the latter does not take arguments and returns a table with the results
instead of an individual field.

Here is the list of found old functions:

contrib/Bright/SitePackage.lua:local uname  = require("posix").uname
contrib/hostTypeCacheBuilder/may_i_build_cache:   myHostName = posix.uname("%n")
contrib/TACC/SitePackage.lua:local uname   = require("posix").uname
contrib/tracking_module_usage/gen_1/SitePackage.lua:local uname   = require("posix").uname
docs/source/300_tracking_module_usage.rst:   local uname   = require("posix").uname
hermes/lib/build_epoch.lua:   if (posix.gettimeofday) then
hermes/lib/build_epoch.lua:            local t1, t2 = posix.gettimeofday()
hermes/lib/build_epoch.lua:            local t = posix.gettimeofday()
hermes/lib/build_epoch.lua:      local x1, x2 = posix.gettimeofday()
hermes/lib/engine.lua:      local mystat = posix.stat(fullFn)
hermes/lib/getUname.lua:   local machName         = posix.uname("%m")
hermes/lib/getUname.lua:   local osName           = posix.uname("%s")
hermes/lib/getUname.lua:   t.hostName  = posix.uname("%n")
hermes/tm/FindTests.lua:      local mystat = posix.stat(path)
hermes/tm/FindTests.lua:         mystat = posix.stat(path)
hermes/tools/fileOps.lua:   local t = posix.stat(d,"type")
hermes/tools/fileOps.lua:   local t = posix.stat(fn,"type")
proj_mgmt/build_hide_cmd:   local tm = posix.localtime(myTime)
proj_mgmt/epoch.in.lua:-- depending on what version of posix.gettimeofday is installed.
proj_mgmt/epoch.in.lua:   if (posix.gettimeofday) then
proj_mgmt/epoch.in.lua:local stat     = posix.stat
proj_mgmt/epoch.in.lua:            local t1, t2 = posix.gettimeofday()
proj_mgmt/epoch.in.lua:            local t = posix.gettimeofday()
proj_mgmt/epoch.in.lua:      local x1, x2 = posix.gettimeofday()
proj_mgmt/jsonLoadConversion:local stat     = posix.stat
proj_mgmt/updateVersion:   local t = posix.stat(fn,"type")
rt/saverestore/saverestore.tdesc:   local osName = posix.uname("%s")
rt/sd_tacc/sd_tacc.tdesc:   local osName = posix.uname("%s")
settarg/getUname.lua:   local machName         = posix.uname("%m")
settarg/getUname.lua:   local osName           = posix.uname("%s")
settarg/getUname.lua:   local release          = posix.uname("%r")
src/addto.in.lua:local stat     = posix.stat
src/check_module_tree_syntax.in.lua:local stat     = posix.stat
src/chkJson:local stat     = posix.stat
src/clearLMOD_cmd.in.lua:local stat     = posix.stat
src/computeHashSum.in.lua:local stat     = posix.stat
src/DirTree.lua:local stat      = posix.stat
src/lmod.in.lua:      dbg.print{"Hostname: ",posix.uname("%n"),"\n"}
src/lmod.in.lua:      dbg.print{"System: ",posix.uname("%s")," ",posix.uname("%r"),"\n"}
src/lmod.in.lua:      dbg.print{"Version: ",posix.uname("%v"),"\n"}
src/lmod.in.lua:local stat     = posix.stat
src/ml_cmd.in.lua:local stat     = posix.stat
src/MRC.lua:   if (posix.strptime == nil or posix.mktime == nil) then
src/MRC.lua:   if (posix.strptime == nil or posix.mktime == nil) then
src/MRC.lua:   local d = posix.strptime(tStr,"%Y-%m-%dT%H:%M")
src/MRC.lua:      local tm = posix.localtime(s_Epoch)
src/MRC.lua:   return posix.mktime(tm)
src/printEnvT.lua:local stat     = posix.stat
src/sandbox.lua:            hostid = posix.hostid, open = posix.open,
src/sandbox.lua:            openlog = posix.openlog, closelog = posix.closelog,
src/sandbox.lua:  posix = { uname = posix.uname, setenv = posix.setenv,
src/sandbox.lua:            syslog = posix.syslog, stat = posix.stat},
src/sh_to_modulefile.in.lua:local stat     = posix.stat
src/spiderCacheSupport.in.lua:local stat     = posix.stat
src/spider.in.lua:   local hostName = posix.uname("%n")
src/spider.in.lua:local stat     = posix.stat
src/StandardPackage.lua:   a[#a + 1]  = posix.uname("%m")
src/StandardPackage.lua:   a[#a + 1]  = posix.uname("%s")
src/utils.lua:         epoch_type = "posix.gettimeofday() (1)"
src/utils.lua:         epoch_type = "posix.gettimeofday() (2)"
src/utils.lua:   if (posix.gettimeofday) then
src/utils.lua:      local gettimeofday = posix.gettimeofday
src/utils.lua:   local ppid  = posix.getpid("ppid")
src/utils.lua:local stat         = posix.stat
tools/fileOps.lua:   local result = posix.stat(f,"type")
tools/fileOps.lua:local stat      = posix.stat
tools/fileOps.lua:   local t = posix.stat(fn,"type")

[1] https://github.com/luaposix/luaposix/releases/tag/v38

-- System Information:
Debian Release: 13.7
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable-debug'), (500, 'proposed-updates'), (500, 'stable'), (1, 'experimental'), (1, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64

Kernel: Linux 6.12.111+deb13-amd64 (SMP w/24 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
Technical Details
Message-ID: <NTAoq-8DX6-23@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod
From: Sergei Golovan <sgolovan@debian.org>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1152463: lmod: Incompatible with upcoming lua-posix 38
Date: Thu, 29 Oct 2026 16:40:02 +0100
Message-ID: <NTAoq-8DX6-23@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Thu Oct 29 15:37:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.699
Reply-To: Sergei Golovan <sgolovan@debian.org>, 1152463@bugs.debian.org
Original-Sender: Sergei Golovan <sgolovan@gmail.com>
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: debian-hpc@lists.debian.org
X-Debian-Pr-Message: report 1152463
X-Debian-Pr-Package: src:lmod
X-Debian-Pr-Source: lmod
X-Gm-Message-State: AFq9FYJLg//GLjq8il7z/sspMksn37diRalkwMl6xlKGDWtAFUynY3Fk
	kRr4BKeO7xmr4xtnE8XwQtpT6XpzTD0Inqdk4grLuuUc+z8zmmfysSja7Mkw9Q==
X-Gm-Gg: AYBFou02c0QVQLoJcYqE+M5DvgnEkPob4Fj6QsZaj84w7u89iH6NmsZV/HV49SSxZ+n
	Dvj+mQACflQDWFQeh6vkunBcq0MBINuYaJct66Ch7f7uMIE1T4rGziH9LkqpsjSv8Cx32u2FqWL
	kWDApUp1NLgn8n38JrENhK4N53VcfZNqm9BGwcrgCctdvSjmTNPpyRVGUSvF7AjsDhG2oSr/Uwe
	Ymeu9zKVn7+GNuSzX6K9/XVHW4itpYSCys8/EfeuD339GV+WBcBFvWUvi5vjKiqPM2afxBRIjEP
	tuVUVQeuBJmosxG4FIF9yxzs5xU0jKb1v/MkPIuG0u0uoMBSdYLnJFf/JNPW8ZPsTA2AnqLYex2
	wt4hsHPc9PigqrhMBM3vXECAlLQjf0FrLd5paPds8CuYR7JqT32ZSRNihHhg8RwR92Oce9hjjPZ
	Eim73Yl7UycW/lQv8/j/NJrtlVVIbU6GytoATqqb5jwiwyRCOlCsP1tLW3hTEwhKBehovORGGWR
	tNCwRZE8dw38Rdc7cIBRkzmTHJj8PM1jW0vxkPmJsUOH/i8cxjdsLKtA3bveo7zKk1hR44j8FM4
	kHcP9V4E5TGlDAlVg5dvyqD4gEwqxpQvXoUL
X-Received: by 2002:a05:6512:61a1:b0:5bf:a426:28fb with SMTP id 2adb3069b0e04-5bfcad3187bmr2208072e87.6.1793288087945;
        Thu, 29 Oct 2026 08:34:47 -0700 (PDT)
Sender: robomod@news.nic.it
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999554
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 102
Organization: linux.* mail to news gateway
X-Original-Date: Thu, 29 Oct 2026 18:34:44 +0300
X-Original-Message-ID: <179328808481.3591249.7220531434045583093.reportbug@jupiter.golovan.home>
X-Original-Sender: Sergei Golovan <sgolovan@gmail.com>