<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>11100</bug_id>
          
          <creation_ts>2017-02-23 13:39:00 +0000</creation_ts>
          <short_desc>Fix wayland-scanner lookup for good, submit patches to upstreams</short_desc>
          <delta_ts>2017-08-09 09:41:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>graphics</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Jussi Kukkonen">jku</reporter>
          <assigned_to name="Jussi Kukkonen">jku</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>70901</commentid>
    <comment_count>0</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-02-23 13:39:00 +0000</bug_when>
    <thetext>The configure-time wayland-scanner lookup is broken for yocto in just about every project where it is done. We have many versions of this patch:

-        WAYLAND_PREFIX=`$PKG_CONFIG --variable=prefix wayland-client`
-        AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner],,
-                     [${WAYLAND_PREFIX}/bin$PATH_SEPARATOR$PATH])
+        AC_PATH_PROG([WAYLAND_SCANNER], [wayland-scanner])

The upstream version is faulty because pkg-config will return target paths but we want to find a build-time wayland-scanner. On the other hand our version is not good for anyone else as it&apos;s very important to use the correct version of wayland-scanner and trusting PATH is _usually_ not a good way to achieve that.  

I don&apos;t think there is a way to get this to work automatically, so maybe the correct solution is to add &quot;--with-wayland-scanner&quot; option to every wayland-scanner using project. Should first agree about that with wayland folks, and then send a patch to all relevant projects.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>73872</commentid>
    <comment_count>1</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-06-08 11:32:13 +0000</bug_when>
    <thetext>Discussions on wayland and mesa mailing lists ongoing, so far no patches have been generally acceptable :(

Moving to M2 seems more realistic.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74993</commentid>
    <comment_count>2</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-07-13 07:21:59 +0000</bug_when>
    <thetext>Moving onwards once more. I&apos;ll have another look later this summer and see if there&apos;s a chance of finding a solution that everyone accepts: The discussion in May-June was definitely not a success.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75761</commentid>
    <comment_count>3</comment_count>
    <who name="Jussi Kukkonen">jku</who>
    <bug_when>2017-08-09 09:41:12 +0000</bug_when>
    <thetext>WONTFIXing: The attempt was worth it but ultimately did not succeed: Standardizing scanner lookups in weston/mesa/others will break some developers use case in at least one of the major projects and I wasn&apos;t able to sell the benefits of that so far. 

Spending more time on this now would not be a good use of time IMO: maybe trying again at a later point might work.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>