Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
What to do when tar doesn't work? [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2123
Location: San Jose, CA

PostPosted: Wed Feb 04, 2015 4:54 am    Post subject: What to do when tar doesn't work? [solved] Reply with quote

Tar won't uncompress the kbd file...

Code:
server src # emerge kbd
Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) sys-apps/kbd-1.15.5-r1::gentoo
 * kbd-1.15.5.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                               [ ok ]
>>> Unpacking source...
>>> Unpacking kbd-1.15.5.tar.gz to /var/tmp/portage/sys-apps/kbd-1.15.5-r1/work
tar: Skipping to next header
tar: Exiting with failure status due to previous errors
 * ERROR: sys-apps/kbd-1.15.5-r1::gentoo failed (unpack phase):
 *   failure unpacking kbd-1.15.5.tar.gz


I know the file is good, I copied it from my laptop where it will 'tar xf' just fine.

But when I try to extract it by hand:

Code:
tar xf /usr/portage/distfiles/kbd-1.15.5.tar.gz
tar: Skipping to next header
tar: Exiting with failure status due to previous errors


But that same command works on my laptop.

Now the strange thing is: these problems are happening on my system that I'm trying to do an emerge -e @world on and kbd is installed just fine.

And if I emerge tar, tar can extract itself just fine.

Any ideas what's going on?

Update:

the tar executable on server doesn't work, but if I copy the tar from my laptop it does. The build is failing...
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2123
Location: San Jose, CA

PostPosted: Wed Feb 04, 2015 6:53 am    Post subject: Reply with quote

Apparently gcc version 4.8.3 has problems with the -O3 CFLAG. I turned it down to -O2 and it works now.

The code is 70KB smaller too.

Fixed!
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Wed Feb 04, 2015 6:33 pm    Post subject: Reply with quote

To answer the subject in general: You always have busybox installed, and can symlink that to /bin/tar (among other things) in an emergency.
Back to top
View user's profile Send private message
RayDude
Advocate
Advocate


Joined: 29 May 2004
Posts: 2123
Location: San Jose, CA

PostPosted: Thu Feb 05, 2015 5:10 am    Post subject: Reply with quote

Oh cool. I hadn't thought of that! Thanks.

Ant P. wrote:
To answer the subject in general: You always have busybox installed, and can symlink that to /bin/tar (among other things) in an emergency.

_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum