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 752688 - wayland: improve check for wayland-scanner
wayland: improve check for wayland-scanner
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal enhancement
: 1.7.2
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2015-07-21 21:50 UTC by Thiago Sousa Santos
Modified: 2016-02-16 15:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
configure: improve check for wayland-scanner binary (1.94 KB, patch)
2015-07-21 21:50 UTC, Thiago Sousa Santos
reviewed Details | Review
configure: improve check for wayland-scanner binary (1.84 KB, patch)
2016-02-11 18:58 UTC, Thiago Sousa Santos
committed Details | Review

Description Thiago Sousa Santos 2015-07-21 21:50:29 UTC
See attached patch
Comment 1 Thiago Sousa Santos 2015-07-21 21:50:51 UTC
Created attachment 307869 [details] [review]
configure: improve check for wayland-scanner binary

The plugin doesn't need the wayland-scanner package to be built
or run, it only needs the wayland-scanner program during compile time.

When cross-compiling, build systems might not have the wayland-scanner
package for the target system as it is a developer's tool, while it should
still be possible to use wayland-scanner from the host system.

This patch fixes it by not requiring the wayland-scanner package but
just the binary itself.

Note that the check is done outside of the PKG_CHECK_MODULES
as it doesn't work inside of it.
Comment 2 Tim-Philipp Müller 2016-01-21 18:01:16 UTC
Comment on attachment 307869 [details] [review]
configure: improve check for wayland-scanner binary

Why do we check once with AC_CHECK_PROG and once with AC_PATH_PROG? The latter should probably also only be done if HAVE_WAYLAND is yes, no?
Comment 3 Thiago Sousa Santos 2016-02-11 18:58:23 UTC
Created attachment 320905 [details] [review]
configure: improve check for wayland-scanner binary

Updated to only check for wayland-scanner once. Works in my desktop
and my cross-compiling scenario.
Comment 4 Thiago Sousa Santos 2016-02-16 15:42:04 UTC
commit b5a4de197a24016e6893b5428e893887b9443454
Author: Thiago Santos <thiagoss@osg.samsung.com>
Date:   Tue Jul 21 18:02:38 2015 -0300

    configure: improve check for wayland-scanner binary
    
    The plugin doesn't need the wayland-scanner package to be built
    or run, it only needs the wayland-scanner program during compile time.
    
    When cross-compiling, build systems might not have the wayland-scanner
    package for the target system as it is a developer's tool, while it should
    still be possible to use wayland-scanner from the host system.
    
    This patch fixes it by not requiring the wayland-scanner package but
    just the binary itself.
    
    Note that the check is done outside of the PKG_CHECK_MODULES
    as it doesn't work inside of it.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=752688