<?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>555</bug_id>
          
          <creation_ts>2010-11-30 19:19:01 +0000</creation_ts>
          <short_desc>After untar sdk tarball to /opt/poky, My root folder&apos;s user info is changed!</short_desc>
          <delta_ts>2011-02-16 21:28:40 +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.0</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</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.0 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="liping Ke">liping.ke</reporter>
          <assigned_to name="Dexuan Cui">dexuan.cui</assigned_to>
          <cc>dongxiao.xu</cc>
    
    <cc>jessica.zhang</cc>
    
    <cc>ke.yu</cc>
    
    <cc>kevin.tian</cc>
    
    <cc>lianhao.lu</cc>
    
    <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>qing.he</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          <cf_verified>Program Management</cf_verified>
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10965</commentid>
    <comment_count>0</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2010-11-30 19:19:01 +0000</bug_when>
    <thetext>Hi, 
Today when seeking help about some privilege problems, we suddenly found that after untar our sdk tarball, the user/group information of /opt/poky is strange. Since it is untar to /, I need to sudo. But after untar, from my / folder to all subdirectories in /opt/poky/xxx, it is all 1003/users. And under /, there is ./ and ../ which should not be there.
It is very strange. According to Qing and dongxiao&apos;s test, even if we use fake root to tar, when untar, the group/user attribute should be the same as the untar user instead of changing the owner to 1003. 
Qing said that when tar, &quot;./&quot; should not be included into the directory. I am not very sure about details. So cc Qing.

Thanks&amp; Regards,
criping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10966</commentid>
    <comment_count>1</comment_count>
    <who name="Qing He">qing.he</who>
    <bug_when>2010-11-30 19:31:34 +0000</bug_when>
    <thetext>(In reply to comment #0)
&gt; Hi, 
&gt; Today when seeking help about some privilege problems, we suddenly found that
&gt; after untar our sdk tarball, the user/group information of /opt/poky is
&gt; strange. Since it is untar to /, I need to sudo. But after untar, from my /
&gt; folder to all subdirectories in /opt/poky/xxx, it is all 1003/users. And under
&gt; /, there is ./ and ../ which should not be there.
&gt; It is very strange. According to Qing and dongxiao&apos;s test, even if we use fake
&gt; root to tar, when untar, the group/user attribute should be the same as the
&gt; untar user instead of changing the owner to 1003. 
&gt; Qing said that when tar, &quot;./&quot; should not be included into the directory. I am
&gt; not very sure about details. So cc Qing.

The tarball looks like:
$ tar -jvtf ***.tar.bz2
drw-rw-rw- pokybuild/user 0 2010-11-30 00:00 ./
drw-rw-rw- pokybuild/user 0 2010-11-30 00:00 ./opt/poky
...

so there are possibly two issues:
1. the owner should be root/root? When ${FAKEROOT} is fakeroot, this is fine, but when ${FAKEROOT} is pseudo, it needs to take state into consideration.
2. &quot;./&quot; will override the ownership of $PWD when untar as root, this is most of the time undesirable.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11770</commentid>
    <comment_count>2</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2011-02-15 00:19:35 +0000</bug_when>
    <thetext>I verified this bug has been fixed before the 1.0 release. The changeset is commit: 92a9d59fccdfb, Mark Hatle, Feb 9</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11778</commentid>
    <comment_count>3</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-02-15 02:22:35 +0000</bug_when>
    <thetext>(In reply to comment #2)
&gt; I verified this bug has been fixed before the 1.0 release. The changeset is
&gt; commit: 92a9d59fccdfb, Mark Hatle, Feb 9

I think the following commits fixed the bug:

commit 87a258fe5cbfa2f678a1a569f703d6a4aeb21dd8
Author: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Date:   Wed Jan 26 10:03:27 2011 +0000

    meta-toolchain: Use --owner and --group options instead of using pseudo&apos;s overhead for a simple task

    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;



commit 8ae1f88214acf8f44073f2e499bef59e9433fdfd
Author: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;
Date:   Wed Jan 26 12:23:10 2011 +0000

    meta-toolchain: Fix tar command

    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;


Liping, since you&apos;re the report, can you please VERIFY the bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11782</commentid>
    <comment_count>4</comment_count>
    <who name="liping Ke">liping.ke</who>
    <bug_when>2011-02-15 06:12:17 +0000</bug_when>
    <thetext>Hi, Dexuan

Please see my comments above you. Actually I have verified but I did not change the status to verified. So I will change the status to verified now.

Thanks a lot!
criping</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>11791</commentid>
    <comment_count>5</comment_count>
    <who name="Dexuan Cui">dexuan.cui</who>
    <bug_when>2011-02-15 17:16:11 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; Hi, Dexuan
&gt; Please see my comments above you. Actually I have verified but I did not change
&gt; the status to verified. So I will change the status to verified now.
&gt; Thanks a lot!
&gt; criping

OK, let&apos;s mark the bug VERIFIED.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>