<?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>6382</bug_id>
          
          <creation_ts>2014-05-29 13:04:44 +0000</creation_ts>
          <short_desc>qemu requires libsdl dev</short_desc>
          <delta_ts>2014-06-06 10:35:41 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>1.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>1.7</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexandru Damian">alexandru.damian</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>lists.volker</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>43644</commentid>
    <comment_count>0</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-05-29 13:04:44 +0000</bug_when>
    <thetext>in order to build qemu-native, libsdl-dev is required on the host system
this check is not done / message error is not explicit

i propose that for all native build tasks, the host dependencies are checked before starting actual build tasks</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43649</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-05-29 14:42:18 +0000</bug_when>
    <thetext>libsdl-dev is not required. If its present and you enable it in local.conf it can be used but it should build without it too.

We do check for most things that are required.

Are you saying that you enabled libsdl without installing it and then the build failed?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43654</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2014-05-29 14:58:00 +0000</bug_when>
    <thetext>local.conf.sample says this:

# By default qemu will build with a builtin VNC server where graphical output can be
# seen. The two lines below enable the SDL backend too. This assumes there is a
# libsdl library available on your build system.
PACKAGECONFIG_pn-qemu-native = &quot;sdl&quot;
ASSUME_PROVIDED += &quot;libsdl-native&quot;

(http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta-yocto/conf/local.conf.sample#n239)

So by default, qemu wants libsdl-dev to be present.  In the past this host build dependency was automatically detected but it was moved to be explicit in 1.6.

The libsdl-dev requirement should be documented, along with how to change it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43693</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-05-30 16:00:28 +0000</bug_when>
    <thetext>Would a change something along the lines of this resolve this?:

diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 989bdcd..4b42b17 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -550,6 +550,10 @@ def check_sanity_version_change(status, d):
         if not check_app_exists(&quot;qemu-arm&quot;, d):
             status.addresult(&quot;qemu-native was in ASSUME_PROVIDED but the QEMU binaries (qemu-arm) can&apos;t be found in PATH&quot;)
 
+    if &quot;libsdl-native&quot; in assume_provided:
+        if not check_app_exists(&quot;sdl-config&quot;, d):
+            status.addresult(&quot;libsdl-native is set to be ASSUME_PROVIDED but sdl-config can&apos;t be found in PATH. Please either instal
+
     (result, message) = check_gcc_march(d)
     if result and message:
         status.addresult(&quot;Your gcc version is older than 4.5, please add the following param to local.conf\n \</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43694</commentid>
    <comment_count>4</comment_count>
    <who name="Alexandru Damian">alexandru.damian</who>
    <bug_when>2014-05-30 16:54:54 +0000</bug_when>
    <thetext>maybe we can make this a generic test for all ASSUME_PROVIDED packages ?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43730</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-06-03 11:03:10 +0000</bug_when>
    <thetext>Alex: We already have a number of tests for the other things in ASSUME_PROVIDED, its not possible to do exact mappings. Changing to patch in review, patch posted on the OE-Core list.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43748</commentid>
    <comment_count>6</comment_count>
    <who name="Volker">lists.volker</who>
    <bug_when>2014-06-03 22:58:18 +0000</bug_when>
    <thetext>I ran into the same problem with 1.6

I do not remember seeing this issue with 1.5.1 and also do not see the sdl packages on our 1.5.1 build system.

I see two options:

1) libsdl1.2-dev should be added to the &quot;Essentials&quot; requirements in the documentation (http://www.yoctoproject.org/docs/1.6/ref-manual/ref-manual.html#required-packages-for-the-host-development-system) -- even when build on a headless system (like a build server). At the moment these packages are listed under Graphical and Eclipse Plug-In Extras

2) The changes that caused it between 1.5.1 and 1.6 need to be adjusted to get around this problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>43804</commentid>
    <comment_count>7</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-06-06 10:35:41 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=5f45b006046b3685a1141f9dd4f576fd2af6395b</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>