Skip to content

glib fails to build on master (ERROR: Tried to override dependency 'gio-2.0' which has already been resolved or overridden ...) #14728

Closed

Description

@thesamesam

Since 852a580, I see this when building glib-2.84.3:

/tmp/glib/glib-2.84.3 $ ~/git/meson/meson.py setup --wrap-mode nodownload -Db_pch=false -Dwerror=false -Dbuildtype=plain -Ddefault_library=both -Druntime_dir=/run -Dglib_debug=disabled -Dselinux=disabled -Dxattr=true -Dlibmount=enabled -Dman-pages=enabled -Ddtrace=disabled -Dsystemtap=disabled -Dsysprof=disabled -Ddocumentation=false -Dtests=true -Dinstalled_tests=false -Dnls=enabled -Doss_fuzz=disabled -Dlibelf=disabled -Dmultiarch=false -Dintrospection=disabled -Db_colorout=always build
[...]
Checking for type "struct ip_mreqn" : YES
Checking if "ioctl with request SIOCGIFADDR" compiles: YES
Configuring gnetworking.h using configuration
Configuring gdbus-codegen using configuration
Program gdbus-codegen found: YES (/tmp/glib/glib-2.84.3/build/gio/gdbus-2.0/codegen/gdbus-codegen)
Configuring config.py using configuration
Found CMake: /usr/bin/cmake (4.0.3)
Run-time dependency libinotify found: NO (tried pkgconfig and cmake)

gio/meson.build:932:6: ERROR: Tried to override dependency 'gio-2.0' which has already been resolved or overridden at /tmp/glib/glib-2.84.3/subprojects/gvdb/gvdb/tests/meson.build:7:

A full log can be found at /tmp/glib/glib-2.84.3/build/meson-logs/meson-log.txt

cc @bonzini

Activity

  1. thesamesam commented on Jun 20, 2025

    @thesamesam
    MemberAuthor

    Console output: log.txt
    meson-log.txt: meson-log.txt

  2. bonzini commented on Jun 20, 2025

    @bonzini
    Contributor

    Uff, at least this one is easy

    diff --git a/mesonbuild/options.py b/mesonbuild/options.py
    index 4f51c38b7..2bea6037a 100644
    --- a/mesonbuild/options.py
    +++ b/mesonbuild/options.py
    @@ -1378,8 +1378,9 @@ class OptionStore:
                 options[key] = valstr
     
             # then global settings from machine file and command line
    +        # **but not if they are toplevel project options**
             for key, valstr in itertools.chain(machine_file_options.items(), cmd_line_options.items()):
    -            if key.subproject is None:
    +            if key.subproject is None and not self.is_project_option(key.as_root()):
                     subp_key = key.evolve(subproject=subproject)
                     self.pending_options.pop(subp_key, None)
                     options.pop(subp_key, None)
    
  3. modified the milestones: 1.8.3, 1.9 on Jun 20, 2025
  4. added 2 commits that reference this issue on Jun 20, 2025
    6ccd73f
    cb2b144
  5. added a commit that references this issue on Jul 5, 2025
    8239e68
  6. added a commit that references this issue on Jul 7, 2025
    a7280b9
  7. added 4 commits that reference this issue on Jul 26, 2025
    920da7d
    a536c32
    6528493
    debbf32
  8. added a commit that references this issue on Aug 10, 2025
    d5ec3de
  9. added a commit that references this issue on Jan 11, 2026
    d189418
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions