Subject: Re: pkgtools/x11-links permissions
To: Ian D. Leroux <>
From: Todd Vierling <>
List: tech-pkg
Date: 01/31/2005 12:06:20
On Mon, 31 Jan 2005, Ian D. Leroux wrote:

> I just checked, and no it doesn't: pax still preserves the permissions
> on the contents of share/x11-links (though x11-links itself is
> installed with 755 permissions).  This presumably reflects the
> difference between "the file" and "the entire hierarchy rooted at that
> directory" (quotes from pax(1)).  I just checked cp(1) and it would have
> the same behaviour according to the man page ("Created directories have
> the same mode as the corresponding source directory, unmodified by the
> process' umask").  Unless someone can point out the proper way of
> replicating the link-farm without preserving permissions, I'm back to
> suggesting that the hierarchy be constructed with the proper permissions
> in the first place.

Be careful: directories should not be owned by root in the work directory at
"make clean" time.  I think graphics/netpbm addresses this issue by rm'ing
the staging tree in "work" immediately after copying to PREFIX, inside the
install phase.

-- Todd Vierling <> <>