This is affecting Ubuntu 16 also.

Here is a proof of failure:
#!/usr/bin/perl -w --

use strict;
use warnings;
use Inline;

# Sample LUA-code
my $lua = <<END_OF_CODE
require('bit')
require('math')

function lua_bitop_tester()
  test_vars = {}
  test_vars['bitmap'] = 1

  print(bit.band(test_vars['bitmap'], bit.lshift(1, 0)))
  print(tonumber((bit.band(test_vars['bitmap'], bit.lshift(1, 0))) or 0) > 0)
end
END_OF_CODE
;

# Introduce the lua_bitop_tester() function into Perl-world
Inline->bind( Lua => $lua );

# Call LUA-code
lua_bitop_tester();

# Should output
#1
#true
# ... if working correctly
# Will output:
# error: error loading module 'bit' from file 
'/usr/lib/x86_64-linux-gnu/lua/5.1/bit.so':
# ... when using Ubuntu package


That piece of Perl-code will fail with default package and run
successfully when rebuilt with proper dynamic dependencies.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1454294

Title:
  liblua dependency missing, causing Perl Inline to fail

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lua-bitop/+bug/1454294/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to