<?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>3507</bug_id>
          
          <creation_ts>2012-11-28 16:37:26 +0000</creation_ts>
          <short_desc>core-image-lsb doesn&apos;t build</short_desc>
          <delta_ts>2013-02-08 09:21:05 +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>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>(autobuilder) patch review</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="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>andrei.adrianx.dinu</cc>
    
    <cc>corneliux.stoicescu</cc>
    
    <cc>dvhart</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>27800</commentid>
    <comment_count>0</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2012-11-28 16:37:26 +0000</bug_when>
    <thetext>The core-image-lsb builds on the autobuilder are failing:

| error: Failed dependencies:
| 	xorg-abi-video-8 is needed by emgd-driver-1.14-r4.core2

(http://autobuilder.yoctoproject.org:8010/builders/fri2/builds/255/steps/shell_58/logs/stdio)

The LSB targets don&apos;t have X, which is why the dependency on xserver-xorg (which provides the -abi- name) isn&apos;t satisfied.  The better question is why emgd-driver is being installed on an image without graphics.

Chasing dependencies leads to:

 packagegroup-base -&gt; va-intel -&gt; libva -&gt; mesa-dri -&gt; emgd-driver-bin


And packagegroup-base depending on va-intel is the result of:

 MACHINE_EXTRA_RRECOMMENDS += &quot;${VA_FEATURES}&quot;

I&apos;m not convinced that we want to be adding the VAAPI elements at this level.

Also, as the dependency is on libva-&gt;mesa-dri-&gt;emgd, it&apos;s clearly after some GL libraries, so splitting up emgd-driver-bin into libegl-emgd, libgles1-emgd and xf86-video-emgd will mean that the image will just pull in the GL packages and not the X driver.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27809</commentid>
    <comment_count>1</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-11-28 21:02:44 +0000</bug_when>
    <thetext>I tried building core-image-lsb for crownbay bsp here with current master branches, and I am getting different error.

| error: Failed dependencies:
| 	pkgconfig is needed by libz-dev-1.2.7-r0.core2</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27810</commentid>
    <comment_count>2</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-11-28 21:03:55 +0000</bug_when>
    <thetext>his seems to be related to Bug 3373 - meta-intel: VA_FEATURES unnecessarily causes X11 dependency via libva:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=3373

i.e. we should be able to bring in libva and not not have the dependency on X but currently we can&apos;t do that as explained in 3373.

We should also be able to turn off video acceleration and therefore not bring in libva via emgd-driver-bin, but can&apos;t do that either as explained in Bug 2551 - EMGD requires video acceleration:

https://bugzilla.yoctoproject.org/show_bug.cgi?id=2551

So separating the video components out of emgd-driver-bin into a separate package was how we planned on fixing that.
 
Until now we haven&apos;t had build problems with this - obviously something in master has changed, and so this either needs to be fixed in master or fixed according to the above bugs or in some other completely different way as the above comment suggests...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27872</commentid>
    <comment_count>3</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-12-02 23:35:22 +0000</bug_when>
    <thetext>Reverting the commit &quot;emgd-driver-bin: add xorg-abi-video- dependency&quot;
commit fa655a783bc1e41109f408ff49b785d664f64106 gets rid of this build
error in core-image-lsb (though the pkgconfig error still remains), which
doesn&apos;t seem correct in the first place - if anything, shouldn&apos;t it be xorg-video-abi rather xorg-abi-video?

I don&apos;t see why this should be a problem in the first place, since we already pin the emgd-using machines to xserver-xorg 1.9.3 and that should still be the same - nothing related to the upgrade to the new xorg-xserver should change this and I&apos;d guess that the problem lies in the packaging changes made to the xserver include.

We do need changes to separate the video components mentioned previously and in the already-existing bugs for that, but that shouldn&apos;t be causing problems for the existing BSPs and emgd support tied to 1.9.3.

The commit message for a patch to revert sent to the mailing list is below.

The above commit is causing build problems that this revert fixes
e.g.:

| error: Failed dependencies:
|        xorg-abi-video-8 is needed by emgd-driver-1.14-r4.core2

Fixes [YOCTO #3507].

There&apos;s no explanation of what the actual problem was that this commit
fixes - likely it was in response to the packaging problems causing
YOCTO #3501 and YOCTO #3502.  In any case, nothing should cause a
regression like this since xserver-xorg is pinned at 1.9.3 and its
contents shouldn&apos;t change to cause something like &apos;xorg-abi-video&apos; to
disappear.

Also there doesn&apos;t appear to any xorg-abi-video-8, so it&apos;s doubtful
that this commit actually fixed the problem it was trying to fix -</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27877</commentid>
    <comment_count>4</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-12-03 04:44:53 +0000</bug_when>
    <thetext>OK, so Ross&apos;s oe-core patch:

[PATCH] xserver-xorg: restore packaging for the DRI/DRI2/DBE extensions

does work if Nitin&apos;s patch:

[PATCH 1/4] meta-intel.inc: fix xorg packaging issue for emgd BSPs

is added to meta-intel.  That fixes this bug (3502) and also should fix Bug 3501 and 3502.

I&apos;ve also submitted another patch to meta-intel

[PATCH 1/1] Revert &quot;emgd-driver-bin: add xorg-abi-video- dependency&quot;

that reverts Ross&apos;s fa655a783bc1e41109f408ff49b785d664f64106 xorg-abi-video-8 patch and thereby gets rid of the core-image-lsb build error and fixes bug 3507.

So if we can get Ross&apos;s oe-core patch pulled in, I can pull in the other two and we&apos;ll be able to move forward.

Otherwise, someone please suggest something better to get us out of this mess.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27879</commentid>
    <comment_count>5</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-12-03 04:47:56 +0000</bug_when>
    <thetext>BTW, I did test video playback with dictator.mp4 after building with all those fixes and it worked fine
.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>27908</commentid>
    <comment_count>6</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-12-03 16:20:36 +0000</bug_when>
    <thetext>My mistake - xorg-abi-video does exist and some explanation behind the reason for the xorg-abi-video commit in meta-intel can be found on the oe-core list and further explanation from the meta-intel mailing list from Ross is copied below:


ross@melchett /data/poky-master/tmp/work/core2-poky-linux/xserver-xorg/1_1.9.3-r2/deploy-ipks/core2
$ dpkg -I xserver-xorg_1.9.3-r2_core2.ipk
...
 Provides: xorg-abi-video-8, xorg-abi-input-11


There was a thread on oe-core and the relevant oe-core commits had
plenty of explanation:

commit bc41dfb9cd2d3b90d97fa051c90d2f53bacde059
Author: Ross Burton &lt;ross.burton@intel.com&gt;
Date:   Mon Oct 22 10:37:24 2012 +0100

    xserver-xorg: add runtime provides for the driver ABI version

    The xserver driver ABIs can and do change in a way that is unrelated to the
    version of xserver, so it&apos;s entirely possible to build an image that has a
    mismatch between the server ABI version and the version that the
drivers were
    built against.  xserver detects this and refuses to load the modules.

    By adding RPROVIDEs to the xserver package that describe the ABI
versions it has
    (such as xorg-abi-video-13, xorg-abi-input-11), drivers can RDEPEND on the
    version that they were built against.  This means that when the ABIs change,
    there will be package dependency errors at image time instead of images that
    build fine but don&apos;t work.

    (From OE-Core rev: 8ef5f205aec04140198d5ba0f5c405ae6e977dbe)

You may have pinned xserver-xorg in the bitbake to 1.9.3 but:

1) it&apos;s entirely possible for the package feed to get 1.13 from
another MACHINE, because they&apos;ll both be in the &quot;core2&quot; arch feed
2) it&apos;s enforcing the ABI relationship which can&apos;t be expressed in any other way</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28250</commentid>
    <comment_count>7</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-12-13 16:29:24 +0000</bug_when>
    <thetext>Where are we with this? Are we going to make M2?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28253</commentid>
    <comment_count>8</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-12-13 16:46:22 +0000</bug_when>
    <thetext>I told Nitin I&apos;d look into it, but haven&apos;t gotten time yet - I will be looking into it soon however.  It should definitely make M2 (Jan 11).

There&apos;s also a fallback if we want to get the lsb build temporarily building again, which is to temporarily revert Ross&apos;s xorg-abi-video- dependency and temporarily ignore the package feed issue mentioned by Ross.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28255</commentid>
    <comment_count>9</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-12-13 16:53:53 +0000</bug_when>
    <thetext>I have not spent much time on this yet. I will sync up with Tom on this. and I too think that we should be able to close it in M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28275</commentid>
    <comment_count>10</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-12-14 02:55:12 +0000</bug_when>
    <thetext>So, looking at the actual build directories on the autobuilder, we see the following error saying it can&apos;t find the git directory in the workdir:

tomz@yocto-iab09:/srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/temp&gt; less log.do_make_scripts

/srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/temp/run.do_make_scripts.27949: line 113: cd: /srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/git: No such file or directory


But listing it shows it&apos;s in fact there:

tomz@yocto-iab09:/srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/temp&gt; ls -al /srv/home/pokybuild/yocto-autobuilder/yocto-slave/cedartrail/build/build/tmp/work/cedartrail-poky-linux/lttng-modules/2.0.5-r0/git
total 352
drwxr-xr-x 9 pokybuild users  4096 Dec 13 06:58 .
drwxrwxrwx 6 pokybuild users  4096 Dec 13 06:58 ..
-rw-rw-rw- 1 pokybuild users  7042 Dec 13 06:58 ChangeLog
drwxrwxrwx 8 pokybuild users  4096 Dec 13 06:58 .git
-rw-rw-rw- 1 pokybuild users   936 Dec 13 06:58 .gitignore
-rw-rw-rw- 1 pokybuild users 17987 Dec 13 06:58 gpl-2.0.txt
drwxrwxrwx 4 pokybuild users  4096 Dec 13 06:58 instrumentation
-rw-rw-rw- 1 pokybuild users 26434 Dec 13 06:58 lgpl-2.1.txt
drwxrwxrwx 4 pokybuild users  4096 Dec 13 06:58 lib
-rw-rw-rw- 1 pokybuild users   689 Dec 13 06:58 LICENSE
-rw-rw-rw- 1 pokybuild users 20571 Dec 13 06:58 lttng-abi.c
-rw-rw-rw- 1 pokybuild users  4851 Dec 13 06:58 lttng-abi.h
-rw-rw-rw- 1 pokybuild users  1178 Dec 13 06:58 lttng-calibrate.c
-rw-rw-rw- 1 pokybuild users  2924 Dec 13 06:58 lttng-context.c


So it is actually there, but apparently it wasn&apos;t when that task (run_do_make_scripts) was run, which means we probably have a race.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28276</commentid>
    <comment_count>11</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2012-12-14 02:56:09 +0000</bug_when>
    <thetext>oops, ignore the previous comment, wrong bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28382</commentid>
    <comment_count>12</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-12-19 20:58:46 +0000</bug_when>
    <thetext>a patch sent to meta-intel ML which will fix this bug. - Nitin</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28592</commentid>
    <comment_count>13</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-01-07 20:16:38 +0000</bug_when>
    <thetext>Fixed by meta-intel commit: 3d00ac1da6c2a1013a7cfc03d7ea94274bf6731a</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>28594</commentid>
    <comment_count>14</comment_count>
    <who name="Tom Zanussi">tom.zanussi</who>
    <bug_when>2013-01-07 20:17:16 +0000</bug_when>
    <thetext>*** Bug 3631 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>29667</commentid>
    <comment_count>15</comment_count>
    <who name="Stoicescu Cornel">corneliux.stoicescu</who>
    <bug_when>2013-02-08 09:21:05 +0000</bug_when>
    <thetext>Autobuilder shell for a core-image-lsb nightly-x86-64-lsb:

Build Configuration:
BB_VERSION        = &quot;1.17.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;SUSE-LINUX-11.4&quot;
TARGET_SYS        = &quot;x86_64-poky-linux&quot;
MACHINE           = &quot;qemux86-64&quot;
DISTRO            = &quot;poky-lsb&quot;
DISTRO_VERSION    = &quot;1.3+snapshot-20130207&quot;
TUNE_FEATURES     = &quot;m64&quot;
TARGET_FPU        = &quot;&quot;
meta              
meta-yocto        = &quot;master:8c263420eda2c2ab0e6f8bff64f965cb4cc5698b&quot;
meta-qt3          = &quot;master:06e2fe600de962cdba53c23de1207501439a9c9f&quot;
meta-yocto-bsp    = &quot;master:8c263420eda2c2ab0e6f8bff64f965cb4cc5698b&quot;


Summary: There were 2 WARNING messages shown.
program finished with exit code 0</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>