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 647201 - ftpadmin does not work with Solaris tar
ftpadmin does not work with Solaris tar
Status: RESOLVED FIXED
Product: sysadmin
Classification: Infrastructure
Component: Other
unspecified
Other Solaris
: Normal normal
: ---
Assigned To: GNOME Sysadmins
GNOME Sysadmins
Depends on:
Blocks:
 
 
Reported: 2011-04-08 18:40 UTC by Brian Cameron
Modified: 2011-04-08 20:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix the bug (1.27 KB, patch)
2011-04-08 19:32 UTC, Jeff Schroeder
none Details | Review

Description Brian Cameron 2011-04-08 18:40:18 UTC
I built a tarball on Solaris for gdm-2.30.6, logged into master and ran this script:

$ ftpadmin install gdm-2.30.6.tar.bz2 

It failed with this error:

ERROR: Files should all be in one directory (gdm-2.30.6/)

I untarred the tarball and re-tarred it with GNU tar, and it worked.  

Looking at the ftpadmin code, I think this is because the code assumes that the first entry of the tarball is the directory, which doesn't seem to be the case for Solaris-built tarballs.

Note that Solaris does ship GNU tar, so Solaris users can use GNU tar if it is a requirement.  But to do so, users need to set their PATH properly.

If GNU tar is a requirement, it would be nice if the instructions highlighted that you need to use GNU tar.  It would also be nice if the instructions highlighted that Solaris users may experience this problem if they do not use GNU tar.

I'm attaching the failed GDM 2.30.6 tarball so you can look at it.
Comment 1 Brian Cameron 2011-04-08 19:14:55 UTC
You can get the problematic tarball here:

http://sheepfiends.com/gdm-2.30.6.tar.bz2
Comment 2 Jeff Schroeder 2011-04-08 19:32:06 UTC
Created attachment 185547 [details] [review]
Fix the bug

Olav,

I'm not 100% sure what the original test is for, but something along these lines should fix it.
Comment 3 Olav Vitters 2011-04-08 20:06:46 UTC
Brian: Thanks. Just a bug, GNU tar is not a requirement.