Bug 2022729
| Summary: | Rebase Meson to >= 0.61.0 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Neal Gompa <ngompa13> |
| Component: | meson | Assignee: | meson-maint |
| Status: | CLOSED ERRATA | QA Contact: | Tomas Pelka <tpelka> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | CentOS Stream | CC: | bstinson, jwboyer, pbonzini, rhughes, tpelka, tpopela, wtaymans |
| Target Milestone: | rc | Keywords: | Rebase, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | meson-0.63.3-1.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-05-09 08:26:55 UTC | Type: | Component Upgrade |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | 1997067, 2140107, 2140108, 2140540, 2140541 | ||
| Bug Blocks: | 2016901, 2022694, 2056721, 2119180 | ||
|
Description
Neal Gompa
2021-11-12 13:10:03 UTC
*** Bug 2056698 has been marked as a duplicate of this bug. *** Wim make and update so he was able to build pipewire-0.3.47, see rhbz#2055694 (In reply to Tomas Pelka from comment #3) > Wim make and update so he was able to build pipewire-0.3.47, see rhbz#2055694 So I guess this is dup of 2055694. Gave building GNOME Shell 40.8 a try with Meson 0.61.2 (per my MR), seems the subprojects are using positional arguments which is no longer supported past 0.60 if I'm understanding things correctly. https://github.com/mesonbuild/meson/issues/9441 subprojects/extensions-tool/src/templates/meson.build:7:2: ERROR: Function does not take positional arguments. This is still present in GNOME 42, so modifying the build config would be required. Switching back to 0.60.3 notes the error, but succeeds on building: DEPRECATION: i18n.merge_file does not take any positional arguments. This will become a hard error in the next Meson release. *** Bug 2016904 has been marked as a duplicate of this bug. *** *** Bug 2122911 has been marked as a duplicate of this bug. *** I've used https://developers.redhat.com/articles/2022/09/26/find-errors-packages-through-mass-builds to check how many packages in RHEL 9 would fail to build after rebasing the meson to 0.62.2 and 41 components will fail to build from source: $ zgrep "meson.build" */*/build.log.gz | grep "ERROR" accountsservice/00091267-accountsservice/build.log.gz:data/meson.build:32:5: ERROR: Function does not take positional arguments. babl/00091180-babl/build.log.gz:meson.build:55:5: ERROR: configuration_data.set10 got unknown keyword arguments "Description" cheese/00091273-cheese/build.log.gz:data/meson.build:25:5: ERROR: Function does not take positional arguments. dconf-editor/00091277-dconf-editor/build.log.gz:editor/meson.build:3:5: ERROR: Function does not take positional arguments. devhelp/00091354-devhelp/build.log.gz:data/meson.build:19:5: ERROR: Function does not take positional arguments. eog/00091278-eog/build.log.gz:data/meson.build:25:5: ERROR: Function does not take positional arguments. evince/00091279-evince/build.log.gz:backend/meson.build:55:7: ERROR: Function does not take positional arguments. fprintd/00091281-fprintd/build.log.gz:src/meson.build:18:0: ERROR: gnome.gdbus_codegen keyword argument 'sources' was of type array[CustomTarget] but should have been array[str | File] gcr/00091283-gcr/build.log.gz:gck/meson.build:130:2: ERROR: gnome.generate_gir got unknown keyword arguments "packages" gedit-plugins/00091287-gedit-plugins/build.log.gz:plugins/bookmarks/meson.build:43:0: ERROR: Function does not take positional arguments. gedit/00091286-gedit/build.log.gz:data/meson.build:6:0: ERROR: Function does not take positional arguments. glade/00091291-glade/build.log.gz:data/meson.build:4:5: ERROR: Function does not take positional arguments. gnome-bluetooth/00091295-gnome-bluetooth/build.log.gz:sendto/meson.build:24:5: ERROR: Function does not take positional arguments. gnome-characters/00091357-gnome-characters/build.log.gz:data/meson.build:49:5: ERROR: Function does not take positional arguments. gnome-control-center/00091297-gnome-control-center/build.log.gz:panels/applications/meson.build:10:5: ERROR: Function does not take positional arguments. gnome-disk-utility/00091193-gnome-disk-utility/build.log.gz:data/meson.build:13:7: ERROR: Function does not take positional arguments. gnome-extensions-app/00091359-gnome-extensions-app/build.log.gz:data/meson.build:17:5: ERROR: Function does not take positional arguments. gnome-extensions-app/00091359-gnome-extensions-app/build.log.gz:subprojects/extensions-app/data/meson.build:17:5: ERROR: Function does not take positional arguments. gnome-font-viewer/00091194-gnome-font-viewer/build.log.gz:src/meson.build:42:5: ERROR: Function does not take positional arguments. gnome-initial-setup/00091299-gnome-initial-setup/build.log.gz:data/meson.build:33:9: ERROR: Function does not take positional arguments. gnome-kiosk/00091300-gnome-kiosk/build.log.gz:meson.build:145:5: ERROR: Function does not take positional arguments. gnome-photos/00091302-gnome-photos/build.log.gz:data/meson.build:5:5: ERROR: Function does not take positional arguments. gnome-screenshot/00091195-gnome-screenshot/build.log.gz:data/meson.build:3:0: ERROR: Function does not take positional arguments. gnome-session/00091196-gnome-session/build.log.gz:data/meson.build:61:2: ERROR: Function does not take positional arguments. gnome-settings-daemon/00091197-gnome-settings-daemon/build.log.gz:meson.build:87:3: ERROR: The `==` operator of str does not accept objects of type bool (True) gnome-shell-extensions/00091199-gnome-shell-extensions/build.log.gz:data/meson.build:23:9: ERROR: Function does not take positional arguments. gnome-shell/00091360-gnome-shell/build.log.gz:subprojects/extensions-tool/src/templates/meson.build:7:2: ERROR: Function does not take positional arguments. gnome-tweaks/00091361-gnome-tweaks/build.log.gz:data/meson.build:2:5: ERROR: Function does not take positional arguments. gobject-introspection/00091306-gobject-introspection/build.log.gz:giscanner/meson.build:51:0: ERROR: File doctemplates does not exist. grilo-plugins/00091202-grilo-plugins/build.log.gz:meson.build:8:0: ERROR: Unknown options: "enable-static" gstreamer1-plugins-bad-free/00091205-gstreamer1-plugins-bad-free/build.log.gz:meson.build:1:0: ERROR: Unknown options: "real, vdpau" gstreamer1-plugins-base/00091206-gstreamer1-plugins-base/build.log.gz:meson.build:1:0: ERROR: Unknown options: "gtk_doc" gstreamer1-plugins-good/00091207-gstreamer1-plugins-good/build.log.gz:meson.build:1:0: ERROR: Unknown options: "gtk_doc" libfprint/00091318-libfprint/build.log.gz:meson.build:1:0: ERROR: Unknown options: "x11-examples" libnma/00091328-libnma/build.log.gz:meson.build:1:0: ERROR: Unknown options: "disable-static" nautilus/00091338-nautilus/build.log.gz:data/meson.build:32:0: ERROR: Function does not take positional arguments. network-manager-applet/00091339-network-manager-applet/build.log.gz:meson.build:1:0: ERROR: Unknown options: "disable-static, gcr" shared-mime-info/00091245-shared-mime-info/build.log.gz:meson.build:2:0: ERROR: Unknown options: "xdg-mime-path" totem/00091348-totem/build.log.gz:data/appdata/meson.build:3:0: ERROR: Function does not take positional arguments. virt-viewer/00091254-virt-viewer/build.log.gz:data/meson.build:4:7: ERROR: Function does not take positional arguments. xmlrpc-c/00091262-xmlrpc-c/build.log.gz:lib/libutil/meson.build:35:5: ERROR: Got unknown keyword arguments "install" Also PackageKit and gvfs failed to build, but the failure might not be related to newer meson package. I would say that I learned two things in the recent days: a) mass-prebuild is an awesome tool (there are pending changes to be able to build against the internal COPR instance that will be upstreamed in the following weeks) b) the meson rebase should be done as a last resort thing and the team that will do it should reserve plenty of time for it To ease the pain of doing the rebase, Paolo came up with a specially crafted version of Meson (currently 0.63.3) to be more compatible with the current packages that we have in RHEL 9. I've done a rebuilt of all the packages that require Meson and we got to the following set of failures:
gobject-introspection:giscanner/meson.build:51:0: ERROR: File doctemplates does not exist.
- needs https://gitlab.gnome.org/GNOME/gobject-introspection/-/commit/827494d6415b696a98fa195cbd883b50cc893bfc and https://gitlab.gnome.org/GNOME/gobject-introspection/-/commit/effb1e09dee263cdac4ec593e8caf316e6f01fe2 backported
shared-mime-info: Error: cannot open mo file /builddir/build/BUILD/shared-mime-info-2.1/redhat-linux-build/po/*.gmo
- needs https://gitlab.freedesktop.org/xdg/shared-mime-info/-/commit/5a406b06792e26a83c7346b3c2443c0bd8d4cdb2 backported
gegl04:gegl/meson.build:94:0: ERROR: declare_dependency keyword argument 'link_with' was of type array[File] but should have been array[BothLibraries | SharedLibrary | StaticLibrary | CustomTarget | CustomTargetIndex | Jar | Executable | Dependency]
- needs https://gitlab.gnome.org/GNOME/gegl/-/commit/54f760de6a0e14487ccfb033e270aa6a80ee66e2 backported
gstreamer1-plugins-bad-free:gst-libs/gst/wayland/meson.build:4:0: ERROR: Dependency "wayland-protocols" not found, tried pkgconfig
- needs wayland-protocols-devel to be added to the BuildRequires
I will take care of backporting the changes and once they're done we will be unblocked for the Meson rebase itself (whenever it will come).
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (meson bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2593 |