[Bug 268875] devel/lua51-posix: module 'bit32' not found

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 11 Jan 2023 01:41:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=268875

            Bug ID: 268875
           Summary: devel/lua51-posix: module 'bit32' not found
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: matt@cloverbasin.com

Upstream has a "bit32" module dependency in their rockspec, which is
unaccounted for in this package:
https://github.com/luaposix/luaposix/blob/master/luaposix-git-1.rockspec#L21

The solution to this problem would be to introduce a similar package to Arch
Linux's lua51-bit32 package:
https://archlinux.org/packages/community/x86_64/lua51-bit32/

Arch Linux has the same problem, ( https://bugs.archlinux.org/task/77084 ) but
in their case the module dependency is readily available as a package already.

Error message:
[matt@inspiron ~]$ lua51
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> posix = assert(require("posix"))
/usr/local/share/lua/5.1/posix/_base.lua:19: module 'bit32' not found:

Package info:
[matt@inspiron ~]$ pkg info lua51-posix
lua51-posix-35.1
Name           : lua51-posix
Version        : 35.1
Installed on   : Tue Jan 10 21:58:51 2023 MST
Origin         : devel/lua-posix
Architecture   : FreeBSD:13:amd64
Prefix         : /usr/local
Categories     : devel
Licenses       : MIT
Maintainer     : sunpoet@FreeBSD.org
WWW            : https://github.com/luaposix/luaposix
Comment        : Lua bindings for POSIX APIs
Annotations    :
        FreeBSD_version: 1301000
        flavor         : lua51
        repo_type      : binary
        repository     : FreeBSD
Flat size      : 714KiB

-- 
You are receiving this mail because:
You are the assignee for the bug.