Bug 1244167

Summary: lua-bitop not available in Fedora 22
Product: [Fedora] Fedora Reporter: Jonas Eriksson <fedora>
Component: lua-bitopAssignee: Orion Poplawski <orion>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 22CC: orion
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-07-17 15:06:37 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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.