<?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>13350</bug_id>
          
          <creation_ts>2019-05-14 09:59:13 +0000</creation_ts>
          <short_desc>Setting imx PACKAGECONFIG in mesa results in configure error</short_desc>
          <delta_ts>2019-05-17 14:47:06 +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>2.7</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kai Ruhnau">kai.ruhnau</reporter>
          <assigned_to name="Alexander Kanavin">alex.kanavin</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</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>83804</commentid>
    <comment_count>0</comment_count>
    <who name="Kai Ruhnau">kai.ruhnau</who>
    <bug_when>2019-05-14 09:59:13 +0000</bug_when>
    <thetext>In https://cgit.freedesktop.org/mesa/mesa/commit/?id=41a0acd6a149ec9f47ea527ad08a2b29bf1ee6b2, mesa removed the imx gallium driver in favor of kmsro. When PACKAGECONFIG contains &quot;imx&quot;, the configure script fails with
configure: error: Unknown Gallium driver: imx</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83812</commentid>
    <comment_count>1</comment_count>
    <who name="Kai Ruhnau">kai.ruhnau</who>
    <bug_when>2019-05-15 11:05:35 +0000</bug_when>
    <thetext>I have made the 19.0.1 backwards compatible by
GALLIUMDRIVERS_append = &quot;,kmsro,vc4&quot;
(vc4 is a prerequisite for kmsro)
and applying the attached patch which looks like an oversight in the above commit.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83813</commentid>
    <comment_count>2</comment_count>
      <attachid>4517</attachid>
    <who name="Kai Ruhnau">kai.ruhnau</who>
    <bug_when>2019-05-15 11:06:50 +0000</bug_when>
    <thetext>Created attachment 4517
mesa commit oversight</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83828</commentid>
    <comment_count>3</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2019-05-16 14:49:53 +0000</bug_when>
    <thetext>Alex, can you work on this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83831</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2019-05-16 15:07:06 +0000</bug_when>
    <thetext>I have sent the PACKAGECONFIG fix:
http://lists.openembedded.org/pipermail/openembedded-core/2019-May/282373.html

As mesa has just been switched from autotools to meson, please verify if any additional fixing in mesa code is required.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83832</commentid>
    <comment_count>5</comment_count>
    <who name="Kai Ruhnau">kai.ruhnau</who>
    <bug_when>2019-05-16 15:19:38 +0000</bug_when>
    <thetext>I&apos;d guess the patch on the mailing list won&apos;t work. When I tried just adding kmsro to the drivers, I got a configure error that vc4 also needs to be added as a prerequisite. As-is, 19.0.* mesa won&apos;t build the &quot;imx-drm_dri.so&quot; on non-Android platforms. Hence the small mesa patch I attached.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83833</commentid>
    <comment_count>6</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2019-05-16 15:23:10 +0000</bug_when>
    <thetext>That was with autotools. These issues may have been resolved with meson, so please take the latest master, apply the patch I sent, try building what you need and report back.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83834</commentid>
    <comment_count>7</comment_count>
    <who name="Kai Ruhnau">kai.ruhnau</who>
    <bug_when>2019-05-16 15:26:13 +0000</bug_when>
    <thetext>Oh, right. I have my &quot;warrior&quot;-color glasses on :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>83847</commentid>
    <comment_count>8</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2019-05-17 14:47:06 +0000</bug_when>
    <thetext>The patch is now in master. Reopen if additional fixing is needed.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>4517</attachid>
            <date>2019-05-15 11:06:50 +0000</date>
            <delta_ts>2019-05-15 11:06:50 +0000</delta_ts>
            <desc>mesa commit oversight</desc>
            <filename>0001-Fix-the-imx-driver-so-name.patch</filename>
            <type>application/octet-stream</type>
            <size>758</size>
            <attacher name="Kai Ruhnau">kai.ruhnau</attacher>
            
              <data encoding="base64">RnJvbSAyZTQ3ODU1NTIwODAwMjg3OWI2OTllZmVjNGY4ZWViN2I4YmUzODliIE1vbiBTZXAgMTcg
MDA6MDA6MDAgMjAwMQpGcm9tOiBLYWkgUnVobmF1IDxrYWkucnVobmF1QHRhcmdldC1zZy5jb20+
CkRhdGU6IFR1ZSwgMTQgTWF5IDIwMTkgMTg6MTk6MTAgKzAyMDAKU3ViamVjdDogW1BBVENIXSBG
aXggdGhlIGlteCBkcml2ZXIgc28gbmFtZQoKLS0tCiBzcmMvZ2FsbGl1bS9kcml2ZXJzL2ttc3Jv
L0F1dG9tYWtlLmluYyB8IDEgKwogMSBmaWxlIGNoYW5nZWQsIDEgaW5zZXJ0aW9uKCspCgpkaWZm
IC0tZ2l0IGEvc3JjL2dhbGxpdW0vZHJpdmVycy9rbXNyby9BdXRvbWFrZS5pbmMgYi9zcmMvZ2Fs
bGl1bS9kcml2ZXJzL2ttc3JvL0F1dG9tYWtlLmluYwppbmRleCBkNTk2MWM5MDc2NS4uODNkMDEx
YjQzY2IgMTAwNjQ0Ci0tLSBhL3NyYy9nYWxsaXVtL2RyaXZlcnMva21zcm8vQXV0b21ha2UuaW5j
CisrKyBiL3NyYy9nYWxsaXVtL2RyaXZlcnMva21zcm8vQXV0b21ha2UuaW5jCkBAIC0yLDYgKzIs
NyBAQCBpZiBIQVZFX0dBTExJVU1fS01TUk8KIAogVEFSR0VUX0RSSVZFUlMgKz0gcGwxMTEKIFRB
UkdFVF9EUklWRVJTICs9IGh4ODM1N2QKK1RBUkdFVF9EUklWRVJTICs9IGlteC1kcm0KIFRBUkdF
VF9DUFBGTEFHUyArPSAtREdBTExJVU1fS01TUk8KIFRBUkdFVF9MSUJfREVQUyArPSBcCiAgICAg
JCh0b3BfYnVpbGRkaXIpL3NyYy9nYWxsaXVtL3dpbnN5cy9rbXNyby9kcm0vbGlia21zcm9kcm0u
bGEgXAotLSAKMi4yMS4wCgo=
</data>

          </attachment>
      

    </bug>

</bugzilla>