View previous topic :: View next topic |
Author |
Message |
RayDude Advocate


Joined: 29 May 2004 Posts: 2123 Location: San Jose, CA
|
Posted: Wed Feb 04, 2015 4:54 am Post subject: What to do when tar doesn't work? [solved] |
|
|
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 |
|
 |
RayDude Advocate


Joined: 29 May 2004 Posts: 2123 Location: San Jose, CA
|
Posted: Wed Feb 04, 2015 6:53 am Post subject: |
|
|
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 |
|
 |
Ant P. Watchman

Joined: 18 Apr 2009 Posts: 6920
|
Posted: Wed Feb 04, 2015 6:33 pm Post subject: |
|
|
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 |
|
 |
RayDude Advocate


Joined: 29 May 2004 Posts: 2123 Location: San Jose, CA
|
Posted: Thu Feb 05, 2015 5:10 am Post subject: |
|
|
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 |
|
 |
|