After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 105739 - Can't open tar.gz files on Solaris
Can't open tar.gz files on Solaris
Status: RESOLVED FIXED
Product: file-roller
Classification: Applications
Component: general
2.5.x
Other Solaris
: Normal normal
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2003-02-10 19:48 UTC by Peter O'Shea
Modified: 2005-08-15 01:27 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Solaris 8 man page for tar (28.31 KB, text/plain)
2003-12-15 16:55 UTC, Peter O'Shea
Details

Description Peter O'Shea 2003-02-10 19:48:02 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.
Comment 1 Peter O'Shea 2003-08-15 00:20:13 UTC
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 ...
Comment 2 Peter O'Shea 2003-10-17 23:01:49 UTC
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.
Comment 3 Peter O'Shea 2003-12-15 16:55:02 UTC
Created attachment 22462 [details]
Solaris 8 man page for tar
Comment 4 Peter O'Shea 2003-12-15 16:55:55 UTC
Changing version to 2.5.x, and just attached the Solaris man page for tar.

Comment 5 Paolo Bacchilega 2003-12-15 17:33:55 UTC
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.
Comment 6 Jonas Jonsson 2004-01-28 23:08:31 UTC
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.
Comment 7 Peter O'Shea 2004-01-29 17:03:36 UTC
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.


Comment 8 alexander.winston 2004-01-29 17:55:18 UTC
Adding the portability keyword.
Comment 9 Paolo Bacchilega 2004-02-04 11:12:31 UTC
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.
Comment 10 Peter O'Shea 2004-02-05 14:23:37 UTC
gtar happens to be on my Solaris system, but I don't think it is a
default part of Solaris.
Comment 11 Joe Marcus Clarke 2004-02-18 22:32:59 UTC
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.
Comment 12 Matthew Schick 2004-02-19 02:56:39 UTC
This also breaks on my Gentoo linux boxen...
Comment 13 Kjartan Maraas 2005-01-05 00:03:00 UTC
Was this ever fixed?
Comment 14 Peter O'Shea 2005-01-05 17:13:11 UTC
Ok, I just tried file-roller-2.8.3, and it works as expected, on sparc Solaris 8.
Comment 15 Sebastien Bacher 2005-01-13 13:16:27 UTC
fixed according to the submitter, I'm closing the bug. Feel free to reopen if
you still get the issue.