Debian Patches

Status for lua-lgi/0.9.2-3

Patch Description Author Forwarded Bugs Origin Last update
0001-hack-to-generate-an-empty-config.h.patch hack to generate an empty config.h Enrico Tassi <gareuselesinge@debian.org> not-needed 2014-10-15
tests_timing.patch [PATCH] Replace busy loop with usleep call
tests/glib.lua counts to one million in an attempt to spend some time so
that it can test that GLib's Timer correctly nootices that some
timepassed. The "count to one million"-loop needs about three
milliseconds here with Lua 5.2. LuaJIT is likely faster than this.

Instead of relying on this loop being slow enough, replace it with a
call to g_usleep to sleep for a millisecond.
Uli Schlachter <psychon@znc.in> no upstream, https://github.com/pavouk/lgi/commit/d695b42c7a4bf225ebe285c0635e21c2f1e6bea3
ftbfs_bigendian64.patch [PATCH] callable: Fix enum return from C functions
According to [1], return values smaller than sizeof(long) are returned
as ffi_arg or ffi_sarg. Thus, the code here needs to use ffi_sarg
instead of int to work correctly.

This fixes a test failure on s390x that boils down to
cairo_pattern_get_type() returning 2, but the C code here turns that
into a value of 0.

A big "thank" you to Debian and specifically to Mattia Rizzolo for
giving me access to a porterbox so that I could debug this myself.

[1]: https://linux.die.net/man/3/ffi_call
Uli Schlachter <psychon@znc.in> no debian upstream, https://github.com/pavouk/lgi/commit/a127f82af7b60fd4f76b694317eb77ff4c62bbf7
cppflags.patch Honour CPPFLAGS Reiner Herrmann <reiner@reiner-h.de> yes

All known versions for source package 'lua-lgi'

Links