[Home]

Summary:DAHLIN-00152: [patch] tar fails to chown in centos 4.3
Reporter:Tzafrir Cohen (tzafrir)Labels:
Date Opened:2009-10-13 11:02:37Date Closed:2011-01-20 23:30:06.000-0600
Priority:MinorRegression?No
Status:Closed/CompleteComponents:General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) tar_no_owner.diff
Description:System: Centos 4.

tar-1.14-12.RHEL4

Building as non-root.

tar: drivers/dahdi/vpmadt032_loader/vpmadt032_x86_64.o_shipped: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: drivers/dahdi/vpmadt032_loader/vpmadt032_x86_32.o_shipped: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: drivers/dahdi/vpmadt032_loader/vpmadt032_loader.h: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: drivers/dahdi/vpmadt032_loader: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: drivers/dahdi: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: drivers: Cannot change ownership to uid 0, gid 0: Operation not permitted
tar: Error exit delayed from previous errors
make[2]: *** [dahdi-fwload-vpmadt032-1.17.0.tar.gz] Error 2
make[2]: Leaving directory `/repo/debs_sarge/components/xpp-dahdi/linux/trunk/drivers/dahdi/firmware'
make[1]: *** [firmware-loaders] Error 2
make[1]: Leaving directory `/repo/debs_sarge/components/xpp-dahdi/linux/trunk'
make: *** [modules] Error 2

I have not encountered this error later, and thus suspect it was fixed later on (ignoring impossible application of -o) . This seems like a bug in that specific version of tar at first glance. I have not looked for updates yet.

Attached patch is a quick fix for this: removes the option '-o' from tar.
Comments:By: Shaun Ruffell (sruffell) 2010-03-17 10:27:07

There is something I'm not following here.  I believed that the -o option is need in order to prevent tar from setting the user and group to the one saved in the actual tarfile.  So you're thought is that tar-1.14-12.RHEL4 isn't honouring the -o flag appropriately?

So basically, this issue is just to make a note about a potential problem with that tar version and can be closed?

By: Digium Subversion (svnbot) 2010-10-20 07:22:44

Repository: dahdi
Revision: 9434

U   linux/trunk/drivers/dahdi/firmware/Makefile

------------------------------------------------------------------------
r9434 | sruffell | 2010-10-20 07:22:43 -0500 (Wed, 20 Oct 2010) | 11 lines

dahdi: '-o' -> '--no-same-owner' in drivers/dahdi/firmware/Makefile

It appears that in Centos 4, the version of tar doesn't like the -o
flag, but will honor the --no-same-owner flag.

(closes issue DAHLIN-152)
Reported by: tzafrir

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>
------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=9434

By: Digium Subversion (svnbot) 2011-01-20 23:30:05.000-0600

Repository: dahdi
Revision: 9673

U   linux/branches/2.4/drivers/dahdi/firmware/Makefile

------------------------------------------------------------------------
r9673 | sruffell | 2011-01-20 23:30:04 -0600 (Thu, 20 Jan 2011) | 13 lines

dahdi: '-o' -> '--no-same-owner' in drivers/dahdi/firmware/Makefile

It appears that in Centos 4, the version of tar doesn't like the -o
flag, but will honor the --no-same-owner flag.

(closes issue DAHLIN-152)
Reported by: tzafrir

Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Kinsey Moore <kmoore@digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>

Origin: http://svnview.digium.com/svn/dahdi?view=rev&rev=9434
------------------------------------------------------------------------

http://svn.digium.com/view/dahdi?view=rev&revision=9673