Subject: pax vs. Solaris [was: Re: CVS commit: pkgsrc]
To: Ty Sarna <tsarna@netbsd.org>
From: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
List: tech-pkg
Date: 01/02/2000 23:48:17
On Sat, 1 Jan 2000, Ty Sarna wrote:
> Modified Files:
> 	pkgsrc/lang/py-html-docs: Makefile
> 
> Log Message:
> Use ${FIND} and ${PAX}

BTW, were we every bitten by Solaris pax's braindeath WRT symlinks?

delphi% cd /tmp
delphi% touch somefile
delphi% mkdir source dest
delphi% ln -s ../somefile source/link
delphi% cd source/
delphi% ls -la
total 48
drwxr-xr-x   2 feyrer   bedienst     106 Jan  2 23:42 .
drwxrwxrwt  11 sys      sys          808 Jan  2 23:42 ..
lrwxrwxrwx   1 feyrer   bedienst      11 Jan  2 23:42 link -> ../somefile
delphi% ls -lL link 
-rw-r--r--   1 feyrer   bedienst       0 Jan  2 23:42 link
delphi% pax -rw -pe -v . ../dest
../dest/.
../dest/./link
delphi% cd ../dest/
delphi% ls -la
total 48
drwxr-xr-x   2 feyrer   bedienst     106 Jan  2 23:43 .
drwxrwxrwt  11 sys      sys          808 Jan  2 23:42 ..
lrwxrwxrwx   1 feyrer   bedienst      11 Jan  2 23:43 link -> ../somefile
delphi% ls -lL link 
-rwxrwxrwx   1 feyrer   bedienst       0 Jan  2 23:42 link
 ^^^^^^^^^
delphi% uname -a
SunOS delphi 5.6 Generic_105181-03 sun4u sparc SUNW,Ultra-5_10

I've also just tried this on Solaris 7/x86, same result.

So, better beware...


 - Hubert

-- 
NetBSD - Better for your uptime than Viagra