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 776801 - uninstalled target broken
uninstalled target broken
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-build
git master
Other Linux
: Normal normal
: 1.11.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-01-03 10:20 UTC by Guillaume Desmottes
Modified: 2017-01-03 17:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
gst-uninstalled: fix mesonintrospect invocation (1.39 KB, patch)
2017-01-03 10:20 UTC, Guillaume Desmottes
committed Details | Review

Description Guillaume Desmottes 2017-01-03 10:20:21 UTC
https://cgit.freedesktop.org/gstreamer/gst-build/commit/?id=9a64b727bf6ad42d66f1e5f0404baca46f57167c broke the "uninstalled" target:

$ ninja-build -C build/ uninstalled
ninja: Entering directory `build/'
[0/1] 'Running external command uninstalled.'
/usr/bin/python3: can't open file 'mesonintrospect': [Errno 2] No such file or directory
FAILED: uninstalled 
'/usr/bin/python3' '/usr/bin/meson' '--internal' 'commandrunner' '/home/cassidy/dev/gst/master/gst-build' '/home/cassidy/dev/gst/master/gst-build/build' '' '/home/cassidy/dev/gst/master/gst-build/gst-uninstalled.py' '--builddir=/home/cassidy/dev/gst/master/gst-build/build' '--gst-version=master'
ninja: build stopped: subcommand failed.
Comment 1 Guillaume Desmottes 2017-01-03 10:20:36 UTC
Created attachment 342754 [details] [review]
gst-uninstalled: fix mesonintrospect invocation

The mesonintrospect variable now contains the name of the executable
installed on the system and no longer its full path.
(9a64b727bf6ad42d66f1e5f0404baca46f57167c)
So passing it as argument to the python interpreter is no longer working
as it won't find the file.

Fix this by calling the executable directly which is fine as it was
returned by shutil.which().
It's also cleaner as there is no reason to assume that mesonintrospect
is a python file.
Comment 2 Thibault Saunier 2017-01-03 11:30:09 UTC
Review of attachment 342754 [details] [review]:

This is not going to work on windows in the case we use a local checkout of meson (which is the default in a msys2 environment), I think we should revert the part from 9a64b727bf6ad42d66f1e5f0404baca46f57167c where we stop returning full path as we do not know anymore if we will get a full path or not out of get_meson().