<?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>77</bug_id>
          
          <creation_ts>2009-11-10 09:23:28 +0000</creation_ts>
          <short_desc>ROOTFS_POSTPROCESS_COMMAND bug</short_desc>
          <delta_ts>2010-12-21 06:07:16 +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>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>x86</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>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Readon Shaw">xydarcher</reporter>
          <assigned_to name="Richard Purdie">richard.purdie</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</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>7458</commentid>
    <comment_count>0</comment_count>
    <who name="Readon Shaw">xydarcher</who>
    <bug_when>2009-11-10 09:23:28 +0000</bug_when>
    <thetext>when i add ROOTFS_POSTPROCESS_COMMAND += &quot;remove_packaging_data_files&quot; in the image bb file.
it generate &quot;rootfs_update_timestamp remove_packaging_data_files&quot; in run.do_rootfs file,
where &quot;rootfs_update_timestamp&quot; and &quot;remove_packaging_data_files&quot; functions would not be executed.

i tried to fix that.
here is the patch.

diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass
index 50df68c..caf6abd 100644
--- a/meta/classes/rootfs_ipk.bbclass
+++ b/meta/classes/rootfs_ipk.bbclass
@@ -53,7 +53,10 @@ fakeroot rootfs_ipk_do_rootfs () {
        install -d ${IMAGE_ROOTFS}/${sysconfdir}
        echo ${BUILDNAME} &gt; ${IMAGE_ROOTFS}/${sysconfdir}/version
 
-       ${ROOTFS_POSTPROCESS_COMMAND}
+       for i in ${ROOTFS_POSTPROCESS_COMMAND}
+       do
+               ${i}
+       done
        
        log_check rootfs        
 }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7459</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2009-11-10 09:42:11 +0000</bug_when>
    <thetext>This variable is intended to be used as:

 ROOTFS_POSTPROCESS_COMMAND += &quot;remove_packaging_data_files;&quot;

and it should then work without your patch. If there is a &quot;;&quot; missing somewhere else we need to fix that too.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7460</commentid>
    <comment_count>2</comment_count>
    <who name="Readon Shaw">xydarcher</who>
    <bug_when>2009-11-10 10:22:57 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; This variable is intended to be used as:
&gt; 
&gt;  ROOTFS_POSTPROCESS_COMMAND += &quot;remove_packaging_data_files;&quot;
&gt; 
&gt; and it should then work without your patch. If there is a &quot;;&quot; missing somewhere
&gt; else we need to fix that too.
&gt; 

I follow the instruction you said.
but no magic appears.
it shows &quot;rootfs_update_timestamp remove_packaging_data_files;&quot; in run.do_rootfs file.
but in log.do_rootfs file,it has no effects.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7464</commentid>
    <comment_count>3</comment_count>
    <who name="Readon Shaw">xydarcher</who>
    <bug_when>2009-11-10 16:34:41 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; This variable is intended to be used as:
&gt; 
&gt;  ROOTFS_POSTPROCESS_COMMAND += &quot;remove_packaging_data_files;&quot;
&gt; 
&gt; and it should then work without your patch. If there is a &quot;;&quot; missing somewhere
&gt; else we need to fix that too.
&gt; 

another patch is needed.

diff --git a/meta/classes/poky-image.bbclass b/meta/classes/poky-image.bbclass
index 82f11b7..071da0a 100644
--- a/meta/classes/poky-image.bbclass
+++ b/meta/classes/poky-image.bbclass
@@ -81,4 +81,4 @@ SATO_IMAGE_FEATURES = &quot;${X11_IMAGE_FEATURES} apps-x11-sato apps-x11-games apps-x
 inherit image
 
 # Create /etc/timestamp during image construction to give a reasonably sane default time setting
-ROOTFS_POSTPROCESS_COMMAND += &quot;rootfs_update_timestamp&quot;
+ROOTFS_POSTPROCESS_COMMAND += &quot;rootfs_update_timestamp;&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7496</commentid>
    <comment_count>4</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2009-11-12 16:53:28 +0000</bug_when>
    <thetext>This fix has already been made in the master branch. Which branch are you using, pinky?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7499</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2009-11-12 18:36:45 +0000</bug_when>
    <thetext>I pushed this fix in the pinky branch and it was included with the release.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>7503</commentid>
    <comment_count>6</comment_count>
    <who name="Readon Shaw">xydarcher</who>
    <bug_when>2009-11-13 01:26:49 +0000</bug_when>
    <thetext>(In reply to comment #5)
&gt; I pushed this fix in the pinky branch and it was included with the release.
&gt; 

ok, i am using release 3.1.1</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>