<?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>8621</bug_id>
          
          <creation_ts>2015-10-31 21:56:08 +0000</creation_ts>
          <short_desc>EXPORT_FUNCTIONS on fakeroot task function doesn&apos;t actually end up as a fakeroot task</short_desc>
          <delta_ts>2022-04-14 11:48:57 +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.0</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>Low</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Paul Eggleton">bluelightning</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>56065</commentid>
    <comment_count>0</comment_count>
    <who name="Paul Eggleton">bluelightning</who>
    <bug_when>2015-10-31 21:56:08 +0000</bug_when>
    <thetext>If you export a task function in a class with EXPORT_FUNCTIONS which is marked fakeroot, the task doesn&apos;t end up executing as a fakeroot task.

It turns out we never do this in the OE-Core metadata; all of our functions exported with EXPORT_FUNCTIONS that should be fakeroot have that varflag set manually in anonymous python, so that explains why we (apparently) hadn&apos;t noticed this.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86101</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-01-23 16:16:19 +0000</bug_when>
    <thetext>Trevor to talk with Richard about this since Richard knows where the fix belongs.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92018</commentid>
    <comment_count>2</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2021-11-16 17:47:43 +0000</bug_when>
    <thetext>*** Bug 14631 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92019</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2021-11-16 17:59:41 +0000</bug_when>
    <thetext>diff --git a/bitbake/lib/bb/parse/ast.py b/bitbake/lib/bb/parse/ast.py
index 31bcc8e7ac..ec0305cd37 100644
--- a/bitbake/lib/bb/parse/ast.py
+++ b/bitbake/lib/bb/parse/ast.py
@@ -223,7 +223,7 @@ class ExportFuncsNode(AstNode):
             for flag in [ &quot;func&quot;, &quot;python&quot; ]:
                 if data.getVarFlag(calledfunc, flag, False):
                     data.setVarFlag(func, flag, data.getVarFlag(calledfunc, flag, False))
-            for flag in [ &quot;dirs&quot; ]:
+            for flag in [&quot;dirs&quot;, &quot;cleandirs&quot;, &quot;fakeroot&quot;]:
                 if data.getVarFlag(func, flag, False):
                     data.setVarFlag(calledfunc, flag, data.getVarFlag(func, flag, False))
             data.setVarFlag(func, &quot;filename&quot;, &quot;autogenerated&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>92986</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-04-11 20:42:30 +0000</bug_when>
    <thetext>https://autobuilder.yoctoproject.org/typhoon/#/builders/87/builds/3432/steps/14/logs/stdio shows a run with this fix applied on the autobuilder. There is some issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93016</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-04-12 21:29:39 +0000</bug_when>
    <thetext>Issue addressed and patch in review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93049</commentid>
    <comment_count>6</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2022-04-14 11:48:57 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/poky/commit/?id=73fa855f6af5ef9c3a78656aa56f09d213601be2</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>