Menu

#19 pax causes merge to fail when symlinks are present

mGAR v2
open
5
2009-10-20
2009-10-17
wahwah
No

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.

Discussion

  • wahwah

    wahwah - 2009-10-17
    • labels: --> mGAR Build System
    • milestone: --> mGAR v2
     
  • Dagobert Michelsen

    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.

     
  • Dagobert Michelsen

    • assigned_to: nobody --> dmichelsen
     
  • wahwah

    wahwah - 2009-10-20

    How about not adding the "-p e" flag in the case of symlinks, but keeping it for all other files?

     
  • Dagobert Michelsen

    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.