Article View: linux.debian.bugs.rc
Article #1791Bug#1151636: [pkg-lua-devel] Bug#1151636: lua5.5 should not be marked M-A: foreign
From: Helmut Grohne
Date: Mon, 26 Oct 2026 20:20
Date: Mon, 26 Oct 2026 20:20
61 lines
4733 bytes
4733 bytes
Control: clone -1 -2 Control: retitle -2 tcl8.6 must not be marked Multi-Arch: foreign Control: reassign -2 tcl8.6 Control: found -2 8.6.11+dfsg-1 Hi Sergei, On Mon, Oct 26, 2026 at 10:53:47AM +0300, Sergei Golovan wrote: > Can you be a bit more specific? lua5.5 ships only a Lua interpreter > (and compiler), so, for > example lua5.5 i386 can be used to run Lua scripts on amd64. This is all right. What lua can also do is load the zlib (lua-zlib) library. | $ mmdebstrap unstable /dev/null --variant=essential --architectures=amd64,i386 --include=lua5.5,lua-zlib:i386 --chrooted-customize-hook="lua5.5 -e 'require(\"zlib\")'" | ... | lua5.5: (command line):1: module 'zlib' not found: | no field package.preload['zlib'] | no file '/usr/local/share/lua/5.5/zlib.lua' | no file '/usr/local/share/lua/5.5/zlib/init.lua' | no file '/usr/local/lib/lua/5.5/zlib.lua' | no file '/usr/local/lib/lua/5.5/zlib/init.lua' | no file '/usr/share/lua/5.5/zlib.lua' | no file '/usr/share/lua/5.5/zlib/init.lua' | no file './zlib.lua' | no file './zlib/init.lua' | no file '/usr/local/lib/lua/5.5/zlib.so' | no file '/usr/lib/x86_64-linux-gnu/lua/5.5/zlib.so' | no file '/usr/lib/lua/5.5/zlib.so' | no file '/usr/local/lib/lua/5.5/loadall.so' | no file './zlib.so' | stack traceback: | [C]: in global 'require' | (command line):1: in main chunk | [C]: in ? | $ > May be multi-arch allowed would be better than foreign, but at least > some other packages > with interpreters are multi-arch foreign: tcl8.6 (and tcl9.0), bash. > perl and python are > multi-arch allowed though. Those interpreters are not all the same. The key distinction is whether they're extensible with shared libraries. For Perl and Python there are a ton of such packaged extensions. Even GNU make can be extended in such a way (though it is very uncommon). When it comes to tcl8.6, I think the story is the same as for lua. Loading a foreign tcl-trf into tcl8.6 would fail in the very same way as above. For bash the story is less obvious. Searching its source code reveals that it does use dlopen and this is a strong clue. The "enable -f filename functionname" syntax appears to provide a similar feature, but I'm not sure it is practically relevant as it is with lua-zlib and tcl-trf. For instance, there is https://sources.debian.org/src/lm-sensors/1:3.6.2-2/prog/daemon/healthd.sh?hl=27#L27 but I could not find a matching sleep.so and the relevant file is installed as an example. Helmut
Technical Details
Message-ID:
<NSzkJ-84wi-15@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomodReferences:
<NR1O9-7cec-5@gated-at.bofh.it> <NR1O9-7cec-5@gated-at.bofh.it> <NSzkJ-84wi-17@gated-at.bofh.it> <NR1O9-7cec-5@gated-at.bofh.it> <NSzkJ-84wi-17@gated-at.bofh.it>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.nntp4.net!news.samoylyk.net!gothmog.csi.it!bofh.it!news.nic.it!robomod From: Helmut Grohne <helmut@subdivi.de> Newsgroups: linux.debian.bugs.rc Subject: Bug#1151636: [pkg-lua-devel] Bug#1151636: lua5.5 should not be marked M-A: foreign Date: Mon, 26 Oct 2026 21:20:01 +0100 Message-ID: <NSzkJ-84wi-15@gated-at.bofh.it> References: <NR1O9-7cec-5@gated-at.bofh.it> <NR1O9-7cec-5@gated-at.bofh.it> <NSzkJ-84wi-17@gated-at.bofh.it> <NR1O9-7cec-5@gated-at.bofh.it> <NSzkJ-84wi-17@gated-at.bofh.it> X-Original-To: Sergei Golovan <sgolovan@gmail.com>, 1151636@bugs.debian.org X-Mailbox-Line: From debian-bugs-rc-request@lists.debian.org Mon Oct 26 20:18:12 2026 Old-Return-Path: <debbugs@buxtehude.debian.org> X-Spam-Flag: NO X-Spam-Score: -1.45 Reply-To: Helmut Grohne <helmut@subdivi.de>, 1151636@bugs.debian.org Resent-To: debian-bugs-dist@lists.debian.org Resent-Cc: pkg-lua-devel@lists.alioth.debian.org X-Debian-Pr-Message: followup 1151636 X-Debian-Pr-Package: lua5.5 X-Debian-Pr-Source: lua5.5 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Debian-Message: from BTS X-Mailing-List: <debian-bugs-rc@lists.debian.org> archive/latest/836225 List-ID: <debian-bugs-rc.lists.debian.org> List-URL: <https://lists.debian.org/debian-bugs-rc/> Approved: robomod@news.nic.it Lines: 61 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Cc: Nilesh Patra <nilesh@debian.org> X-Original-Date: Mon, 26 Oct 2026 12:26:05 +0100 X-Original-Message-ID: <20261026112605.GA2497837@subdivi.de> X-Original-References: <8ef3333a-424f-45f1-a4c4-bf28b8a806fb@debian.org> <8ef3333a-424f-45f1-a4c4-bf28b8a806fb@debian.org> <CAOq2pXH5dW6QDH4-USr6P-s0M9tqhM0wU3ydUvQrQwA8H2Tk5w@mail.gmail.com> <8ef3333a-424f-45f1-a4c4-bf28b8a806fb@debian.org> <CAOq2pXH5dW6QDH4-USr6P-s0M9tqhM0wU3ydUvQrQwA8H2Tk5w@mail.gmail.com>