Bug 1244167 - lua-bitop not available in Fedora 22
Summary: lua-bitop not available in Fedora 22
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: lua-bitop
Version: 22
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Orion Poplawski
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-07-17 11:02 UTC by Jonas Eriksson
Modified: 2015-07-17 22:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-07-17 15:06:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1113712 0 medium CLOSED Review Request: lua-bitop - C extension module for Lua which adds bitwise operations on numbers 2021-02-22 00:41:40 UTC

Description Jonas Eriksson 2015-07-17 11:02:17 UTC
Description of problem:
According to #1113712 which was closed almost a year ago, lua-bitop should be included in the latest Fedora release. However, it is not possible to install the package. It is in state "Approved" according to https://admin.fedoraproject.org/pkgdb/package/lua-bitop/ , which I assume means that it should be included.

It's currently not possible to install the package using luarocks as a workaround, as the compilation fails.

Version-Release number of selected component (if applicable):
The version pointed out in #1113712 is lua-bitop-1.0.2-2.el7.

How reproducible:
$ sudo dnf install lua-bitop
Last metadata expiration check performed 1:25:31 ago on Fri Jul 17 11:27:52 2015.
No package lua-bitop available.
Error: no package matched: lua-bitop
$

Steps to Reproduce:
See above

Actual results:
Package does not exist

Expected results:
Package should exist

Additional info:

Comment 1 Orion Poplawski 2015-07-17 15:06:37 UTC
lua 5.2 includes bit operators in the "bit32" package.  lua-bitop is only needed for lua 5.1 (EPEL7).  You can do something like:

 local bit
 if _VERSION == "Lua 5.1" then bit = require "bit" else bit = require "bit32" end

to handle the different versions.

Comment 2 Jonas Eriksson 2015-07-17 22:10:37 UTC
Oh, my bad. Many thanks for the clarification.


Note You need to log in before you can comment on or make changes to this bug.