After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 790904 - Failed to locate meson executable for build pipeline
Failed to locate meson executable for build pipeline
Status: RESOLVED OBSOLETE
Product: gnome-builder
Classification: Other
Component: general
Flatpak Nightly Channel
Other Linux
: Normal normal
: ---
Assigned To: GNOME Builder Maintainers
GNOME Builder Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-11-27 15:20 UTC by Daniel Espinosa
Modified: 2018-01-11 10:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
meson: allow specifying $MESON in build configuration (1.69 KB, patch)
2017-11-28 06:32 UTC, Christian Hergert
committed Details | Review

Description Daniel Espinosa 2017-11-27 15:20:43 UTC
I'm using Debian 9, so I installed Meson using pip3. It install Meson in .local, but gnome-builder's terminal, using local operating system as build environment, just not found meson command.
Comment 1 André Klapper 2017-11-27 16:29:00 UTC
What is the output of the terminal command "which meson"?
Comment 2 Christian Hergert 2017-11-28 06:27:39 UTC
First off, it looks like you're using our Flatpak Nightly, that has some implications on how we can launch processes.

Secondly, if you're installing meson on your host, I'm guessing that you aren't trying to build inside a target Flatpak runtime, but instead on the host?

In this configuration, the problem is that we don't get to inherit $PATH from your shell or any of that. We have to explicitly set $PATH when running on the host system. For that reason, we default to a $PATH of "/usr/bin:/bin".

That means when the build system tries to locate the path of Meson, it does not find it.

What I think we can do (and have done in some other cases), is allow you to inform the build configuration of the location with a "MESON" environment variable. I'd rather do that than add ~/.local/bin to $PATH (which isn't even guaranteed to be the correct XDG dir, and I don't want to have to sniff that).
Comment 3 Christian Hergert 2017-11-28 06:32:57 UTC
Created attachment 364542 [details] [review]
meson: allow specifying $MESON in build configuration

If meson is located in a non-standard system $PATH, we might have trouble
locating it. This patch teaches the Meson build pipeline integration to
use the path specified in $MESON before using the default value of "meson".
Comment 4 Christian Hergert 2017-11-28 07:39:46 UTC
Attachment 364542 [details] pushed as bdd774d - meson: allow specifying $MESON in build configuration
Comment 5 Daniel Espinosa 2017-11-28 20:59:29 UTC
Running 'which meson' in my box, found meson at /usr/local/bin.

As for your comment:

" we default to a $PATH of "/usr/bin:/bin" "

Is it correct to add "/usr/local/bin"?
Comment 6 Christian Hergert 2017-11-28 23:49:32 UTC
(In reply to Daniel Espinosa from comment #5)
> Is it correct to add "/usr/local/bin"?

I don't think so, but you can try to convince me otherwise.

I don't consider the "Host" runtime to be a haphazard conglomerate of random paths, but the actual host operating system.
Comment 7 GNOME Infrastructure Team 2018-01-11 10:46:35 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-builder/issues/312.