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 765354 - Autodetect the ninja-build binary
Autodetect the ninja-build binary
Status: RESOLVED OBSOLETE
Product: GStreamer
Classification: Platform
Component: cerbero
1.4.5
Other Linux
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-04-21 01:17 UTC by Jean-François Fortin Tam
Modified: 2018-01-28 19:29 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Jean-François Fortin Tam 2016-04-21 01:17:28 UTC
Building gst-transcoder
Votre branche est à jour avec 'origin/master'.
La branche courante master est à jour.
The Meson build system
Version: 0.29.0
Source dir: gst-transcoder
Build dir: gst-transcoder/build
Build type: native build
Build machine cpu family: x86_64
Build machine cpu: x86_64
Project name: gst-renderer
Native c compiler: cc (gcc 5.3.1)
Checking for function "getrusage": YES
Found pkg-config: /usr/bin/pkg-config (0.28)
Native dependency gobject-2.0 found: YES 2.46.2
Native dependency glib-2.0 found: YES 2.46.2
Native dependency gstreamer-1.0 found: YES 1.8.0
Native dependency gstreamer-pbutils-1.0 found: YES 1.8.0
Warning, glib compiled dependencies will not work until this upstream issue is fixed: https://bugzilla.gnome.org/show_bug.cgi?id=745754
Build targets in project: 5
cd build && ninja
/bin/sh: ninja : command not found
Makefile:2: recipe for target 'all' failed
make: *** [all] Error 127
Could not compile gst-transcoder ; result: 0


So, the problem is that the "ninja" binary is named differently in distros like Fedora (see https://github.com/ninja-build/ninja/issues/860) and the gst-transcoder build script doesn't handle that, resulting in a thing that won't compile even if you do have ninja installed on the system.

Could the presence of /usr/bin/ninja-build be detected and handled?
Comment 1 Tim-Philipp Müller 2018-01-28 17:42:29 UTC
I think Fedora has since renamed ninja-build to ninja.
Comment 2 Nicolas Dufresne (ndufresne) 2018-01-28 19:29:35 UTC
Yes.