<?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>12096</bug_id>
          
          <creation_ts>2017-09-17 22:31:30 +0000</creation_ts>
          <short_desc>Tinfoil doesn&apos;t behave well if environment not initialised</short_desc>
          <delta_ts>2021-02-16 12:22: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>BitBake</product>
          <component>bitbake</component>
          <version>2.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></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>4.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>dorindabassey</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tim.orling</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>76915</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2017-09-17 22:31:30 +0000</bug_when>
    <thetext>If you run a tinfoil-using script without running oe-init-build-env (or similar) then it hangs for 30s and then gives a traceback:

----------------- snip -----------------
$ scripts/oe-pkgdata-util list-pkgs
ERROR: Unable to connect to bitbake server, or start one
Traceback (most recent call last):
  File &quot;scripts/oe-pkgdata-util&quot;, line 598, in &lt;module&gt;
    main()
  File &quot;scripts/oe-pkgdata-util&quot;, line 578, in main
    tinfoil = tinfoil_init()
  File &quot;scripts/oe-pkgdata-util&quot;, line 44, in tinfoil_init
    tinfoil.prepare(True)
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/tinfoil.py&quot;, line 397, in prepare
    extrafeatures)
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/main.py&quot;, line 473, in setup_bitbake
    bb.fatal(&quot;Unable to connect to bitbake server, or start one&quot;)
  File &quot;/home/paul/poky/poky/bitbake/lib/bb/__init__.py&quot;, line 104, in fatal
    raise BBHandledException()
bb.BBHandledException
ERROR: Unable to connect to bitbake server, or start one
ERROR: Unable to connect to bitbake server, or start one
----------------- snip -----------------

Scripts such as devtool have their own checks for this that error out immediately, but it seems to me that tinfoil ought to handle this properly itself rather than every script having to have boilerplate checking code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>89270</commentid>
    <comment_count>1</comment_count>
    <who name="Dorinda">dorindabassey</who>
    <bug_when>2021-02-16 12:22:05 +0000</bug_when>
    <thetext>Hi All, submitted patch at https://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9294bc4bb4bb5b62c8895dfa0f44219b6146f981</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>