[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: orphan link linux-kbuild-N.N.N in /usr/local/src



Hello List:

On 12/08/11 08:08, Sven Joachim wrote:
On 2011-08-11 21:10 +0200, Jerome BENOIT wrote:

On my Debian (Wheezy) boxes, the /usr/src is a link to /usr/local/src ,
/usr and /usr/local being mounted on different partitions.
I guess it is a common practice.

It might be common, but it is not a good practice since /usr/src is
distribution territory.  I.e. Debian packages will overwrite any local
files without warning.

My understand is the /usr/src is an exception: and /usr/src is meant to
to build kernel images.
Second, my set up forced the distribution territory:
on my box: /usr is mounted read only, whereras /usr/local is not.


Whatever, I have noticed that in my /usr/src (->  /usr/local/src)
an orphaned link was created linux-kbuild-3.0.0 ->  ../lib/linux-kbuild-3.0.0 :
the /usr/lib/linux-kbuild-3.0.0 does exist, but not /usr/local/lib/linux-kbuild-3.0.0

I could create a link /usr/local/lib , but because of the version suffix,
this approach is not an appropriate one.
Of course, I can unorphan the link by hand, but I am looking for a permanent solution.

Any idea ?

My advice would be to delete the symlink and move any files belonging to
Debian packages to /usr/src.  Use "dpkg -S usr/src" to find out which
files belong to packages.

If you don't want to do that, use a bind mount rather than a symlink for
/usr/src.  Then the /usr/src/linux-kbuild-3.0.0 symlink will work (but
/usr/local/src/linux-kbuild-3.0.0 will not).

This sound better: I will try soon.


Sven




Reply to: