<?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>3495</bug_id>
          
          <creation_ts>2012-11-27 11:21:57 +0000</creation_ts>
          <short_desc>[romley] xf86-video-mga fails to configure</short_desc>
          <delta_ts>2012-12-06 19:48:39 +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>BSPs</product>
          <component>bsps-meta-intel</component>
          <version>1.4</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>(autobuilder)</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.4 M2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ross Burton">ross.burton</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>kishore.k.bodke</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27720</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-11-27 11:21:57 +0000</bug_when>
    <thetext>Autobuilder log at http://autobuilder.yoctoproject.org:8010/builders/romley/builds/201/steps/shell_32/logs/stdio

do_configure results in:
| configure:18074: checking for /usr/include/xorg/dri.h
| configure:18080: error: cannot check for file existence when cross compiling

The configure.ac does:

if test &quot;x$DRI&quot; != xno; then
        AC_CHECK_FILE([${sdkdir}/dri.h],
                      [have_dri_h=&quot;yes&quot;], [have_dri_h=&quot;no&quot;])
        AC_CHECK_FILE([${sdkdir}/sarea.h],
                      [have_sarea_h=&quot;yes&quot;], [have_sarea_h=&quot;no&quot;])
        AC_CHECK_FILE([${sdkdir}/dristruct.h],
                      [have_dristruct_h=&quot;yes&quot;], [have_dristruct_h=&quot;no&quot;])
fi

Which is Wrong.  Previously we were replacing AC_CHECK_FILE with stubs that always returned true, but that&apos;s obviously not The Right Thing To Do so I removed that - almost every driver doesn&apos;t use those anymore.

Filed upstream at https://bugs.freedesktop.org/show_bug.cgi?id=57606.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27812</commentid>
    <comment_count>1</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-11-28 21:41:01 +0000</bug_when>
    <thetext>This is still breaking the build, so do we need to assign it to the romley maintainer?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27820</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-11-29 11:24:05 +0000</bug_when>
    <thetext>As I did an identical fix on the omap driver, I just fixed the -mga driver.  Patch sent to meta-intel@.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27842</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-11-30 01:49:24 +0000</bug_when>
    <thetext>Fixed in meta-intel/master: ba2cac6f5b1866a788457d4b9b1ab6fb229b547c</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27852</commentid>
    <comment_count>4</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-11-30 14:17:50 +0000</bug_when>
    <thetext>Reopening since according to Ross there may be additional work to do on this.

Basically, Ross&apos;s fix still produced the below do_rootfs dependency error for
xserver-xorg-module-xaa:

ERROR: Function failed: do_rootfs (see /usr/local/dev/yocto/isg-test/build/tmp/work/romley-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.5104 for further information)
ERROR: Logfile of failure stored in: /usr/local/dev/yocto/isg-test/build/tmp/work/romley-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.5104
Log data follows:
| DEBUG: Executing shell function do_rootfs
| Generating solve db for /usr/local/dev/yocto/isg-test/build/tmp/deploy/rpm/romley...
| Generating solve db for /usr/local/dev/yocto/isg-test/build/tmp/deploy/rpm/x86_64...
| Generating solve db for /usr/local/dev/yocto/isg-test/build/tmp/deploy/rpm/all...
|    total:               1      0.000000 MB     32.028527 secs
|    fingerprint:     15279      0.200384 MB      0.915764 secs
|    install:          5093      0.000000 MB     10.695525 secs
|    digest:          10186     45.574370 MB      0.190004 secs
|    signature:       10186      0.000000 MB     15.824291 secs
|    dbadd:            5093      0.000000 MB     10.565355 secs
|    dbget:           74636      0.000000 MB      0.141470 secs
|    dbput:            5093     27.957180 MB      7.158784 secs
|    readhdr:         50931     55.678978 MB      0.102926 secs
|    hdrload:         26383     87.481686 MB      0.149103 secs
|    hdrget:         955873      0.000000 MB      0.829142 secs
| Generating solve db for /usr/local/dev/yocto/isg-test/build/tmp/deploy/rpm/all...
| Processing locale-base-en-us...
| Processing locale-base-en-gb...
| Processing packagegroup-core-ssh-dropbear...
| Processing packagegroup-core-x11-sato-games...
| Processing packagegroup-core-x11-base...
| Processing zypper...
| Processing psplash...
| Processing packagegroup-core-boot...
| Processing packagegroup-base-extended...
| Processing rpm...
| Processing packagegroup-core-x11-sato...
| error: Failed dependencies:
|       xserver-xorg-module-xaa is needed by packagegroup-core-x11-xserver-1.0-r39.romley
| ERROR: Function failed: do_rootfs (see /usr/local/dev/yocto/isg-test/build/tmp/work/romley-poky-linux/core-image-sato/1.0-r0/temp/log.do_rootfs.5104 for further information)
ERROR: Task 7 (/usr/local/dev/yocto/isg-test/meta/recipes-sato/images/core-image-sato.bb, do_rootfs) failed with exit code &apos;1&apos;
NOTE: Tasks Summary: Attempted 5361 tasks of which 401 didn&apos;t need to be rerun and 1 failed.
No currently running tasks (5361 of 5363)

Summary: 1 task failed:
  /usr/local/dev/yocto/isg-test/meta/recipes-sato/images/core-image-sato.bb, do_rootfs
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

To fix that I added the following commit:

commit b7337857ca740266d2b067e8c89f82e130825a4b
Author: Tom Zanussi &lt;tom.zanussi@intel.com&gt;
Date:   Thu Nov 29 17:21:16 2012 -0600

    meta-intel.inc: remove xaa from matrox XSERVER variable
    
    XAA has been dropped, so we need to drop the xaa module.
    
    Signed-off-by: Tom Zanussi &lt;tom.zanussi@intel.com&gt;

Which fixed that problem and subsequently made things build without error.

But according to Ross: &quot;The driver AFAICS is using the EXA module now, so you&apos;ll want to add a dependency on that.&quot;

So if that&apos;s the case, it should be added, if not, confirm that it&apos;s not and this can be closed officially.  Assigning it to the romley maintainer.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28044</commentid>
    <comment_count>5</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-12-06 12:45:11 +0000</bug_when>
    <thetext>Once I&apos;d verified the package name it was a simple patch.  Sent to the BSP list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28070</commentid>
    <comment_count>6</comment_count>
    <who name="kishore">kishore.k.bodke</who>
    <bug_when>2012-12-06 19:48:39 +0000</bug_when>
    <thetext>Built fine and booted with sato desktop.
So changing the status to Resolved.

Thanks
Kishore.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>