Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'fink's gnutar' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
fink's gnutar
Authored by: englabenny on Jun 23, '05 03:56:01PM

Fink installs tar and gzip in version inferior to the Apple-supplied ones, and refuses to uninstall those. The fink tar won't preserve those resource forks.

What can one do to make /usr/bin/tar and /usr/bin/gzip the preferred commands? I'd like a clean solution that applies to all interactive and non-interactive shells and processes, but fink doesn't seem to cooperate.



[ Reply to This | # ]
fink's gnutar
Authored by: jtratcliff on Jun 23, '05 04:14:20PM

Either us the full path or just make sure that /usr/bin comes before /sw/bin in your PATH environment variable... which means changing /sw/bin/init.csh to use "append_path" instead of "prepend_path"... I don't know if the change will stick after your next "fink selfupdate" though.

Note: I have not tried this...



[ Reply to This | # ]
fink's gnutar
Authored by: metafeather on Jun 24, '05 02:00:13PM

I'm not sure is this is still the case as the versions on my system (clean install of 10.4.1 are the same):


$ fink --version
Package manager version: 0.23.10
Distribution version: 0.8.0
Copyright (c) 2001 Christoph Pfisterer
Copyright (c) 2001-2005 The Fink Package Manager Team

$ which tar
/sw/bin/tar

$ls -l /sw/bin/tar 
lrwxr-xr-x   1 root  admin  4 Jun 14 17:40 /sw/bin/tar -> gtar

$ /sw/bin/gtar --version
tar (GNU tar) 1.14
Copyright (C) 2004 Free Software Foundation, Inc.

$ ls -l /usr/bin/tar 
-rwxr-xr-x   2 root  wheel  186024 Mar 21 22:53 /usr/bin/tar

$ /usr/bin/tar --version
tar (GNU tar) 1.14
Copyright (C) 2004 Free Software Foundation, Inc.


[ Reply to This | # ]
fink's gnutar
Authored by: metafeather on Jun 24, '05 02:04:41PM

Oops gzip *is* different:


$ /sw/bin/gzip --version
gzip 1.2.4 (18 Aug 93)
$/usr/bin/gzip --version
gzip 1.3.5
(2002-09-30)


[ Reply to This | # ]
fink's gnutar
Authored by: ash7 on Jul 06, '05 02:20:37AM
You left out some critical information....
$ /usr/bin/tar --version
tar (GNU tar) 1.14
Copyright (C) 2004 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by John Gilmore and Jay Fenlason.
Modified to support extended attributes.

$ /sw/bin/gtar --version
tar (GNU tar) 1.14
Copyright (C) 2004 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute it under the terms of the GNU General Public License;
see the file named COPYING for details.
Written by John Gilmore and Jay Fenlason.
They are very different...

[ Reply to This | # ]
fink's gnutar
Authored by: stcanard on Jun 24, '05 03:56:15PM

Boy you scared me there, I just did a "which tar" and realized that it is pointing at /sw/usr/bin/tar

So I went to check my backup script to see if I have been losing the resource forks all along, and discovered that I had explicitly used '/usr/bin/tar'

I guess good scripting habits do pay off :)



[ Reply to This | # ]