[Bug 297414] devel/lua-lgi: fails with glib 2.88.3

[email protected]
Newsgroups gmane.os.freebsd.devel.ports.bugs
Message-ID <[email protected]/bugzilla/>
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=297414

            Bug ID: 297414
           Summary: devel/lua-lgi: fails with glib 2.88.3
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
             Flags: maintainer-feedback?([email protected])
                CC: [email protected]

After upgrading glib from 2.86.4,2 to 2.88.3,2, lua-lgi fails while starting
awesome.

Installed versions:

lua-lgi: 0.9.2_3
glib: 2.88.3,2

The relevant error is:

error while running function!
stack traceback:
        [C]: in field 'fromarray'
        /usr/local/share/lua/5.3/lgi/ffi.lua:87: in function
'lgi.ffi.load_enum'
        /usr/local/share/lua/5.3/lgi/override/cairo.lua:55: in main chunk
        [C]: in function 'require'
        /usr/local/share/lua/5.3/lgi/namespace.lua:183: in function
'lgi.require'
        (...tail calls...)
        /usr/local/share/awesome/lib/gears/color.lua:54: in main chunk
        [C]: in function 'require'
        /usr/local/share/awesome/lib/gears/init.lua:10: in main chunk
        [C]: in function 'require'

error: /usr/local/share/lua/5.3/lgi/ffi.lua:87:
bad argument #1 to 'fromarray' (lgi.record expected, got table)


Downgrading both glib and glib-bootstrap from 2.88.3,2 to 2.86.4,2 makes
awesome work again.
This appears to be the same lua-lgi incompatibility with GLib >= 2.87 reported
by Debian:

https://bugs.debian.org/1127302

The Debian report also lists awesome as an affected package. The issue was
fixed there in lua-lgi 0.9.2-7.
The upstream fix referenced by the Debian report is:

https://github.com/lgi-devs/lgi/pull/352

-- 
You are receiving this mail because:
You are the assignee for the bug.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.