Subject: x11-links permissions
To: None <netbsd-users@netbsd.org>
From: Ian D. Leroux <ian_leroux@fastmail.fm>
List: netbsd-users
Date: 01/29/2005 14:11:39
Greetings all,

I build packages under a non-root account using pkgsrc's great
just-in-time-su(do) functionality.  I recently discovered that the
x11-links package, built this way, had installed
/usr/pkg/share/x11-links
(and subdirectories) root-owned (good) with 077 permissions (bad).
This means that a non-root account can't build x11-dependent packages
because it doesn't have access to the x11 headers.

I assume that this problem arose because the non-root user I built
x11-links with had its umask set to 077 and the package used that
umask while assembling the directory tree.  Reinstalling the package
from a root login shell corrected the problem (the directories now
have 755 permissions, and other packages build fine).

I'd assumed that the x11-links package would be set up to install
with the correct permissions irrespective of the umask of the
building user.  I was wrong.  Is the actual behaviour:
- by design (could someone explain or point me to a reference?)
- an unknown bug (in which case I should dig a little deeper and file a
PR)
- a known bug (in which case I shall be patient)
- configurable (what settings should I be changing/where should I look
for
documentation?)
- the result of misusing the pkgsrc system (what's the correct usage?)
- OT for this list (what's the correct forum?)

Thanks,

Ian Leroux