RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 2022729 - Rebase Meson to >= 0.61.0
Summary: Rebase Meson to >= 0.61.0
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 9
Classification: Red Hat
Component: meson
Version: CentOS Stream
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: meson-maint
QA Contact: Tomas Pelka
URL:
Whiteboard:
: 2016904 2056698 2122911 (view as bug list)
Depends On: 1997067 2140107 2140108 2140540 2140541
Blocks: 2016901 2022694 2056721 2119180
TreeView+ depends on / blocked
 
Reported: 2021-11-12 13:10 UTC by Neal Gompa
Modified: 2023-05-09 10:44 UTC (History)
7 users (show)

Fixed In Version: meson-0.63.3-1.el9
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-05-09 08:26:55 UTC
Type: Component Upgrade
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 2022694 1 unspecified CLOSED Rebase to PipeWire 0.3.40 2023-06-08 08:26:59 UTC
Red Hat Issue Tracker RHELPLAN-102613 0 None None None 2021-11-12 13:10:30 UTC
Red Hat Product Errata RHBA-2023:2593 0 None None None 2023-05-09 08:27:01 UTC

Internal Links: 2022694

Description Neal Gompa 2021-11-12 13:10:03 UTC
Description of problem:
When working on bug 2022694, the package build fails with the following error:

DEBUG: pipewire-jack/src/meson.build:74:4: ERROR: Problem encountered: 
DEBUG:           Before version 0.59.0 Meson creates a wrong jack pkg-config file.
DEBUG:           For that reason this is now an error. Please update Meson,
DEBUG:           if you want to have JACK development files.

To fix this, Meson needs to be upgraded to at least 0.59. The current stable version is 0.60.1.

Version-Release number of selected component (if applicable):
0.58.2-1.el9

How reproducible:
Always

Comment 2 Tomas Popela 2022-02-22 08:04:52 UTC
*** Bug 2056698 has been marked as a duplicate of this bug. ***

Comment 3 Tomas Pelka 2022-02-22 08:07:26 UTC
Wim make and update so he was able to build pipewire-0.3.47, see rhbz#2055694

Comment 4 Tomas Pelka 2022-02-22 08:10:49 UTC
(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.

Comment 5 Mike Rochefort 2022-02-22 15:06:18 UTC
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.

Comment 6 Tomas Popela 2022-02-28 08:52:54 UTC
*** Bug 2016904 has been marked as a duplicate of this bug. ***

Comment 7 Tomas Popela 2022-08-31 09:50:40 UTC
*** Bug 2122911 has been marked as a duplicate of this bug. ***

Comment 8 Tomas Popela 2022-10-05 05:21:45 UTC
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

Comment 10 Tomas Popela 2022-11-04 12:46:24 UTC
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).

Comment 16 errata-xmlrpc 2023-05-09 08:26:55 UTC
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


Note You need to log in before you can comment on or make changes to this bug.