pax causes merge to fail when symlinks are present
Brought to you by:
dmichelsen,
wahwah
When creating a package with symlinks (e.g. CSWutils):
pax: /home/maciej/src/opencsw/pkg/cswutils/trunk/work/solaris8-sparc/pkgroot/opt/csw/bin/submitpkg : unable to preserve owner/group
To reproduce, try building CSWutils using the latest version from the repository.
Hi Maciej,
the error was introduced when I tried to fix the umask-issue by adding '-p e' as additional pax arg. At the moment I don't have a smart idea on how to fix this apart from removing '-p e' again and throw an error on wrong umask.
How about not adding the "-p e" flag in the case of symlinks, but keeping it for all other files?
pax is used to copy over the whole directory tree. Excluding symlinks and redoing them later would IMHO introduce "wrong" complexity. I guess I'll need some more investigation here. For now just take the extra flags out.