Install modes

Started by Peter Eisentrautover 25 years ago2 messages
#1Peter Eisentraut
peter_e@gmx.net

There seems to be little practical reason why we couldn't go along with
the standard install modes of:

programs, shared libraries 0755 [*]
data (libraries, headers, *.sample) 0644

rather than our current

program 0555
static library 0644
shared library 0644 most of the time
"everything else" 0444

On the other hand, I'm sure somebody knows one. Comments?

[*] assuming that "HPUX wants shared libs to be mode 555" does not
preclude mode 755

--
Peter Eisentraut Sernanders v�g 10:115
peter_e@gmx.net 75262 Uppsala
http://yi.org/peter-e/ Sweden

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#1)
Re: Install modes

Peter Eisentraut <peter_e@gmx.net> writes:

There seems to be little practical reason why we couldn't go along with
the standard install modes of:

programs, shared libraries 0755 [*]
data (libraries, headers, *.sample) 0644

[*] assuming that "HPUX wants shared libs to be mode 555" does not
preclude mode 755

555 for shlibs on HPUX is not negotiable --- the performance cost of not
doing it that way is horrific. Shlibs are so wonderfully nonstandard
that there are likely other platforms with weird requirements for
shlibs. So I'd suggest 3 categories:

programs 0755
shared libraries platform-specific but usually 0755
data (libraries, headers, *.sample) 0644

Otherwise I agree --- no real need for 444 on data files.

regards, tom lane