Adriaan de Groot wrote:
> I just ran into a problem on dillon where fontconfig was expecting different 
> permissions and owners on some directories than dillon had. I conclude this 
> means that the packages installed before then were *not* setting explicitly 
> the owner and group and permissions on /opt/foss ($PREFIX) and other 
> directories.
> 
> Some packaging systems have a "hier" package (for hierarchy) that creates a 
> bunch of directories with "known good" permissions in order to prevent 
> surprises like this one. Does that seem like a good idea here? It would 
> basically just contain a bunch of mkdir and chowns / chgrps in install.sh and 
> nothing else.

It depends.

If we are talking about dirs/files which are referred to by auto*stuff as 
${localstatedir}, then the auto*stuff defaults are not allowed in Solaris, 
because:

${localstatedir} by default is defined by autoconf as ${prefix}/var. This is 
not 
allowed in Solaris as per PSARC rules, so it must be changed to /var -- you 
can't have /opt/foss/var or /usr/var. So, for example, if fontconfig needs 
${localstatedir}/fontconfig/cache, that directory should be 
/var/fontconfig/cache, and it should be created by the package install with the 
right permissions, and fontconfig's ./configure should be told to do 
--localstatedir=/var.

--Stefan

--
Stefan Teleman
Sun Microsystems, Inc.
Stefan.Teleman at Sun.COM


Reply via email to