• Bug#1066900: g-ir-compiler: generates incorrect typelib when cross-comp

    From Simon McVittie@21:1/5 to Simon McVittie on Fri Mar 15 11:00:01 2024
    Control: clone -1 -2
    Control: retitle -2 gi-compile-repository: generates incorrect typelib when cross-compiling with different type sizes
    Control: reassign -2 libglib2.0-dev 2.79.3-1
    Control: tags -2 = experimental

    On Fri, 15 Mar 2024 at 07:48:17 +0000, Simon McVittie wrote:
    When it converts GIR XML to binary typelib files, g-ir-compiler replaces abstract types such as int and gsize (size_t) with concrete types such as gint32 (int32_t) and guint64 (uint32_t). The way in which it does this depends on the type sizes discovered at configure time when compiling g-ir-compiler.

    gi-compile-repository in libglib2.0-dev/experimental has the same issue, cloning the bug for that.

    A workaround to enable cross-compiling between word sizes would be to use
    the host architecture g-ir-compiler, and run it via qemu-user.

    Actually it looks like this is going to be a shorter path to correctness
    than the other approaches I described, so I'll probably go with this one.

    smcv

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)