<?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>405</bug_id>
          
          <creation_ts>2010-10-07 08:57:07 +0000</creation_ts>
          <short_desc>Add a mechanism to do pre-build sanity based on specific configurations</short_desc>
          <delta_ts>2026-07-02 15:27:32 +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>core</component>
          <version>0.9</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>ACCEPTED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>  </status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>6.99</target_milestone>
          
          <blocked>2407</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mark Hatle">mark.hatle</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>gzatko</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>mariano.lopez</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
    
    <cc>song.liu</cc>
    
    <cc>tim.orling</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10196</commentid>
    <comment_count>0</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2010-10-07 08:57:07 +0000</bug_when>
    <thetext>It would be nice if the recipes involved in a build had a way to specific additional system sanity checks.  This was a component using a unique host-system resource could add a sanity check that would only fail if that specific component were to be built.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16929</commentid>
    <comment_count>1</comment_count>
    <who name="Jessica">jessica.zhang</who>
    <bug_when>2011-10-19 18:41:26 +0000</bug_when>
    <thetext>*** Bug 1616 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19291</commentid>
    <comment_count>2</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-03-21 17:20:53 +0000</bug_when>
    <thetext>Fixed in poky master and OE-core:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=96dde9513c08430e12f4f1f6e6e54ca2a244bfcd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19294</commentid>
    <comment_count>3</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-03-21 17:32:49 +0000</bug_when>
    <thetext>Sorry, that last comment was intended for another bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>19296</commentid>
    <comment_count>4</comment_count>
    <who name="Scott Garman">scott.a.garman</who>
    <bug_when>2012-03-21 17:34:54 +0000</bug_when>
    <thetext>Mark, due to the age of this bug I&apos;ve lost track of what you had in mind when this feature was first being discussed. Can you provide more details and some specific examples of these types of checks?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>21194</commentid>
    <comment_count>5</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-05-08 15:46:43 +0000</bug_when>
    <thetext>What I would like is for specific recipes to implement sanity checks specific for those recipes.

The sanity checks would be run very early by the normal system sanity checking class, and not deferred until normal task/recipe execution.  (Note, I&apos;m really not sure if this is possible due to the system not necessarily knowing what tasks will be executed!)

If this is not possible, the next best alternative would be provide a standard sanity checking task, and a standard template to enable it, if provided by the recipe.

An example of the type of check requested would be QEMU checking for the NVIDIA libGL drivers.  If the user is not going to build or use QEMU, then there should be no reason to check for the libGL components and/or create a failure condition.

Proposed change:

* Add a do_sanity or similar task to recipes with unique host requirements

* Add a mechanism for the recipe to trigger the sanity check

As architecture work remains to determine the implementation, an estimate is unclear to me.  I will set it to a fairly large number due to this uncertainty.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75629</commentid>
    <comment_count>6</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2017-08-03 19:51:02 +0000</bug_when>
    <thetext>Current idea would be a standard method that would do a simply sanity check during the anonymous python processing time.  If it failed, would return an error which in turn would blacklist the package with a specific error message indicating why it won&apos;t work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87368</commentid>
    <comment_count>7</comment_count>
    <who name="Gregor Zatko">gzatko</who>
    <bug_when>2020-05-31 10:57:54 +0000</bug_when>
    <thetext>@Richard, does this one make sense to you? Please add your thoughts about implementation if yes.

If I understand the proposal we want to add a new standard task that would define some requirements on host machine necessary to build the recipe&apos;s packages.
But it&apos;s not quite clear to me who would define a dependency graph for each of them.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106080</commentid>
    <comment_count>8</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2026-07-02 15:27:32 +0000</bug_when>
    <thetext>Moving to 6.99.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>