GNOME Bugzilla – Bug 105739
Can't open tar.gz files on Solaris
Last modified: 2005-08-15 01:27:25 UTC
If I try to open any .tar.gz file on Solaris 8, I get an error dialog saying "An error occurred while loading the archive". If I press "Command Line Output", it tells me: tar: directory checksum error If I try to open a .tar file, it works. Is file-roller not recognizing that the .tar.gz file is gzipped? Nautilus recognizes it, and gives it a tgz icon. The faulty behavior is the same whether I open the file by right-clicking a Nautilus file icon and selecting "open with file-roller", or whether I start file-roller and use a file-open dialog to open the same file. If I rename the file to a .tgz, the error still occurs.
With file-roller 2.3.4, if I try to open a .tar.gz file, I get an error window saying: "An error occurred while loading the archive". If I press the button for "Command Line Output", I get: tar: a: unknown option Usage: tar {txruc}[vfbFXhiBEelmopwnq[0-7]] [-k size] [tapefile] [blocksize] [exclude-file] [-I include-file] files ...
Bug still there and unchanged in 2.4.0.1. Solaris tar still doesn't have the "a" option, and file-roller still expects it to. Changing version to "2.3.x", since no "2.4.x" is available.
Created attachment 22462 [details] Solaris 8 man page for tar
Changing version to 2.5.x, and just attached the Solaris man page for tar.
File Roller doesn't expect any 'a' option, there must be some other issue. Perhaps a filename in the archive starts with -a and tar gets confused.
No, it's so simple that file-roller expects tar to be GNU tar. Why isn't it possible to configure what programs to use for what kind of archives? I would like to be able to tell file-roller that a tar.gz-file should use gtar, not tar, when extracting ..... I've never been able to use file-roller (without modification) on *tar.gz-files ..... Solaris tar isn't like GNU tar.
I can confirm definitely that it is, in fact, the difference between Solaris tar and gnu tar. If I have Solaris tar in my path, I get the problem as described in my comment on 8/14/2003. If I put Gnu tar in my path, file-roller works as expected. File-roller needs to either: 1. Be able to use Solaris tar. 2. Be configurable to specifiy which tar to use, so that Solaris users can point to a local copy of Gnu tar.
Adding the portability keyword.
I commmitted a patch to use gtar instead of tar, this should fix the problem, though I don't know if gtar is always present on a solaris system.
gtar happens to be on my Solaris system, but I don't think it is a default part of Solaris.
This patch breaks FreeBSD support out of the box. Perhaps some more intelligence needs to be added to use gtar if it exists, else use tar.
This also breaks on my Gentoo linux boxen...
Was this ever fixed?
Ok, I just tried file-roller-2.8.3, and it works as expected, on sparc Solaris 8.
fixed according to the submitter, I'm closing the bug. Feel free to reopen if you still get the issue.