Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 603812 - dev-lua/luaposix-33.4.0 missing bit32
Summary: dev-lua/luaposix-33.4.0 missing bit32
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal major with 3 votes (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2016-12-27 04:45 UTC by Daniel M. Weeks
Modified: 2020-08-24 14:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel M. Weeks 2016-12-27 04:45:10 UTC
bit32 has been removed from luaposix but other modules expect it to be available with luaposix. It is listed as a dependency of luaposix as well[1]. Without it, some scripts crash when they try to use luaposix.

[1] https://github.com/luaposix/luaposix/blob/master/rockspec.conf

Reproducible: Always
Comment 1 Kenneth Hoste 2020-07-02 20:39:36 UTC
I'm seeing this problem too, with the most trivial possible Lua program that uses luaposix:

  $ cat test_luaposix.lua
  require("posix")
  $ lua test_luaposix.lua
  lua: .../gentoo-prefix-test/usr/share/lua/5.1/posix/init.lua:17: module 'bit32' not found:
        no field package.preload['bit32']
        no file './bit32.lua'
        no file '/tmp/gentoo-prefix-test/usr/share/lua/5.1/bit32.lua'
        no file '/tmp/gentoo-prefix-test/usr/share/lua/5.1/bit32/init.lua'
        no file '/tmp/gentoo-prefix-test/usr/lib64/lua/5.1/bit32.lua'
        no file '/tmp/gentoo-prefix-test/usr/lib64/lua/5.1/bit32/init.lua'
        no file '/usr/share/lua/5.1/bit32.lua'
        no file '/usr/share/lua/5.1/bit32/init.lua'
        no file './bit32.so'
        no file '/tmp/gentoo-prefix-test/usr/lib64/lua/5.1/bit32.so'
        no file '/usr/lib64/lua/5.1/bit32.so'
        no file '/tmp/gentoo-prefix-test/usr/lib64/lua/5.1/loadall.so'
stack traceback:
        [C]: in function 'require'
        .../gentoo-prefix-test/usr/share/lua/5.1/posix/init.lua:17: in main chunk
        [C]: in function 'require'
        test_luaposix.lua:1: in main chunk
        [C]: ?

I'm very interested in getting this fixed, is there something I can do to help?
Comment 2 Larry the Git Cow gentoo-dev 2020-08-24 14:39:02 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2513f4e45d12860e82dbe2d2022acc83d7842b82

commit 2513f4e45d12860e82dbe2d2022acc83d7842b82
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2020-08-06 17:03:35 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2020-08-24 14:38:44 +0000

    dev-lua/luaposix: new version 35.0
    
    New version, new maintainer, added dependency dev-lua/lua-bit32 (#603812),
    changed license to MIT.
    Closes: https://bugs.gentoo.org/603812
    Package-Manager: Portage-2.3.103, Repoman-2.3.23
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-lua/luaposix/Manifest             |  1 +
 dev-lua/luaposix/luaposix-35.0.ebuild | 35 +++++++++++++++++++++++++++++++++++
 dev-lua/luaposix/metadata.xml         | 15 +++++++++++----
 3 files changed, 47 insertions(+), 4 deletions(-)