Package: lua-lgi
Version: 0.7.1-1
Justification: Policy 3.5
Severity: serious
Tags: patch
Hello,
After installing lua-lgi, the following command fails (same error with
lua5.2):
$ lua5.1 -e 'require("lgi")'
lua5.1: /usr/share/lua/5.1/lgi/ffi.lua:34: attempt to index local 'gobject' (a
boolean value)
stack traceback:
/usr/share/lua/5.1/lgi/ffi.lua:34: in main chunk
[C]: in function 'require'
/usr/share/lua/5.1/lgi/class.lua:21: in main chunk
[C]: in function 'require'
/usr/share/lua/5.1/lgi/namespace.lua:18: in main chunk
[C]: in function 'require'
/usr/share/lua/5.1/lgi/init.lua:42: in main chunk
[C]: in function 'require'
/usr/share/lua/5.1/lgi.lua:19: in main chunk
[C]: in function 'require'
(command line):1: in main chunk
[C]: ?
That's because gi.require('GObject') and gi.require('GLib') from
lgi/ffi.lua both return false and thus fails later on when trying to
access object within these modules.
After investigating a bit, it appears that gi_require() (lgi/gi.c) calls
g_irepository_require() which searches for ".typelib" files, but GLib
and GObject .typelib files are not available because gir1.2-glib-2.0 is
not installed on my system (and thus missing in the Depends, but it
seems that only GObject and GLib .typelib are required according to the
source code). So, could you please add this package to Depends?
Perhaps, there are other missing Depends which could be checked by
running tests within a chroot without Build-Depends?
BTW, is there any reason why lua-lgi does not Depends upon any lua
interpreter package? Is it actually useable without it?
Cheers,
--
Arnaud Fontaine
-- System Information:
Debian Release: jessie/sid
APT prefers experimental
APT policy: (600, 'experimental'), (500, 'unstable'), (500, 'testing'), (500,
'oldstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 3.8-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages lua-lgi depends on:
ii libc6 2.17-3
ii libffi6 3.0.13-4
ii libgirepository-1.0-1 1.36.0-2+b1
ii libglib2.0-0 2.36.1-2build1
ii multiarch-support 2.17-3
lua-lgi recommends no packages.
lua-lgi suggests no packages.
-- no debconf information
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]