Skip to content

Update GLib from 2.76.1 to 2.78.3, gobject-introspection from 1.76.1 to 1.78.1 and GTK from 3.24.38 to 3.24.39 #3056

Conversation

pmenzel
Copy link
Collaborator

@pmenzel pmenzel commented Jan 18, 2024

gobject-introspection needs to be rebuilt against the new system Python 3.11.7. The latest version 1.79.1 of gobject-introspection requires GLib 2.79.0, and that needs two rebuilds:

Move libgirepository into glib.git from gobject-introspection.git — but tools
like g-ir-scanner are currently still in gobject-introspection.git. For the
moment, glib.git needs to be built twice, once with -Dintrospection=false,
then build gobject-introspection.git, then re-build glib.git with
-Dintrospection=true. This process will evolve throughout the GLib 2.80
cycle. The API and ABI of libgirepository has changed, and accordingly its
version number has been bumped from 1.0 to 2.0 (note: the version number of
GIRepository-*.gir has been bumped from 2.0 to 3.0; see !3786). The GIR and
typelib file formats have not been changed, and are still at version 1.0.
(#3155), work by multiple people)

Update with bee update glib2-2.78.3-0 gobject-introspection-1.78.1-0 gtk3-3.24.39-0.

Tested on maleficent.

This also builds against Python 3.11.7, the current default in MarIuX, and
fixes the error below.

    $ g-ir-scanner
    Traceback (most recent call last):
      File "/usr/bin/g-ir-scanner", line 98, in <module>
        from giscanner.scannermain import scanner_main
      File "/usr/lib/gobject-introspection/giscanner/scannermain.py", line 35, in <module>
        from giscanner.ast import Include, Namespace
      File "/usr/lib/gobject-introspection/giscanner/ast.py", line 29, in <module>
        from .sourcescanner import CTYPE_TYPEDEF, CSYMBOL_TYPE_TYPEDEF
      File "/usr/lib/gobject-introspection/giscanner/sourcescanner.py", line 34, in <module>
        from giscanner._giscanner import SourceScanner as CSourceScanner
    ModuleNotFoundError: No module named 'giscanner._giscanner'

Do not use version 1.79.x, as that requires at least GLib 2.79.0:

    Dependency glib-2.0 found: NO found 2.76.1 but need: '>=2.79.0'
@pmenzel pmenzel merged commit 4b8a3de into master Jan 23, 2024
Sign in to join this conversation on GitHub.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant