FS#30658 - [luaposix] Missing dependency for bit operations

Attached to Project: Community Packages
Opened by Harley Laue (losinggeneration) - Thursday, 12 July 2012, 19:24 GMT
Last edited by Andrea Scarpino (BaSh) - Tuesday, 24 July 2012, 15:20 GMT
Task Type Bug Report
Category Upstream Bugs
Status Closed
Assigned To Sébastien Luttringer (seblu)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

in posix.lua there's this line:
if _VERSION == "Lua 5.1" then bit = require "bit" else bit = require "bit32" end

Thus, for lua 5.1, the package requires a 'bit' operations. aur/luabitop seems to work.

To test the issue create a lua file with:
require('posix')
This task depends upon

Closed by  Andrea Scarpino (BaSh)
Tuesday, 24 July 2012, 15:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  luaposix 5.1.20-2
Comment by Alexander F. Rødseth (xyproto) - Sunday, 15 July 2012, 13:41 GMT
Please report this upstream. Here are a few links for reporting bugs for Lua: http://www.lua.org/faq.html#2.3
Comment by Harley Laue (losinggeneration) - Tuesday, 24 July 2012, 15:15 GMT
  • Field changed: Percent Complete (100% → 0%)
This is NOT an upstream bug (especially not one to Lua itself.) This gets down to the fact that Lua 5.1 doesn't have bit operations built in and 5.2 does. luaposix depends on them. To that fact, it checks for the existence of bit32 (for Lua 5.2) and falls back to a community package "bit". So in all, luaposix requires either luabitop from AUR or Lua 5.2. Thus, luabitop either needs to be promoted to community, or luaposix should be pushed to AUR so it can be properly depend on luabitop.

Loading...