Simone Piccardi wrote:
> On Wed, Apr 01, 2009 at 10:42:23PM +0200, Alan McKinnon wrote:
>> Good idea. Seeing as your source tree can be anywhere you feel like putting
>> it. Kernel documentation last time I looked explicitly recommends you put it
>> in your home directory.
>>
>> /usr/src is more a matter of convention than anything else
>>
> It's also matter of security avoiding the use of root account when
> possible.
>
> Compiling things by root in my opinion is not so security wise, and to
> compile things in /usr/src you must be root.
>
Firstly, You need not be root for compiling sw in /usr/src, it depends
on the permissions on /usr/src, mine are normally something like
drwxrwsr-x 21 root src 8192 2009-02-17 10:18 src/
which makes it perfectly safe for anyone belonging to the group src to
compile stuff in /usr/src. No need being root there.
Secondly, looking at
http://www.pathname.com/fhs/pub/fhs-2.3.html#USRSRCSOURCECODE
it is stated there, that it is the place where to put source code -
for reference purposes only - see also footnote
[35] http://www.pathname.com/fhs/pub/fhs-2.3.html#FTN.AEN2042
This is a paradoxon per se, because, if a directory for keeping sources
for reference purposes exists, what good is the source code if the
configuration that has been used for compiling does not.
You normally only get a valid configuration if a configure or 'make
config' is executed in a source tree and that, imho, is a necessary step
when compiling SW.
So if I want to keep a reference for the future, according to FHS, You
should keep e.g. the kernel sources in /usr/src, but this then also
includes configuring and compiling (that is what the "generally" in
footnote 35 is for), for an unconfigured kernel is practically useless.
kernel.org is a much better storage place for unconfigured kernel
sources (and costs me much less).
As long as there is no distro independent location for finding the
kernel configuration I will always compile kernels in /usr/src and this
is also the place where I WANT to find custom kernel on productive
systems that I need to take care of, not in some users
/home/foobar/stuff/my_kernel directory.
just mho,
Christian
--
Firma: Siemens Aktiengesellschaft Österreich
Rechtsform: Aktiengesellschaft
Firmensitz: Wien, Firmenbuchnummer: FN 60562 m
Firmenbuchgericht: Handelsgericht Wien, DVR: 0001708
_______________________________________________
lpi-examdev mailing list
[email protected]
http://list.lpi.org/cgi-bin/mailman/listinfo/lpi-examdev