GNOME Bugzilla – Bug 785248
tracker meson build issue with bash_completion
Last modified: 2017-07-24 08:35:08 UTC
tracker 1.99.1 meson 0.41.2 Build log excerpt ----------------- Determining dependency 'bash-completion' with pkg-config executable '/usr/bin/pkg-config' Native dependency bash-completion found: YES 2.1 Meson encountered an error in file meson.build, line 325, column 4: Unknown method "get_variable" in object. More info --------- meson.build has this code snippet: if bash_completion_package.found() bash_completion_dir = bash_completion_package.get_variable('completionsdir') but 'completionsdir' isn't defined.
In fedora there is... $ grep completionsdir /usr/share/pkgconfig/bash-completion.pc completionsdir=${prefix}/share/bash-completion/completions And also upstream (or at least fedora's): https://github.com/scop/bash-completion/blob/master/bash-completion.pc.in#L3 This is just the same the autotools build has been doing for the last couple of years to figure out the path to install the completion script, and I've seen no other complains. How can we find this out on ubuntu? just hope the path above is right?
Ah I see. It's the get_variable() method itself what fails.
Created attachment 356162 [details] [review] meson: Fix bash completion dir guessing Use the right method to fetch a pkg-config variable.
Attachment 356162 [details] pushed as ee6444e - meson: Fix bash completion dir guessing