On 01/08/2014 22:19, behrouz khosravi wrote:
> On Fri, Aug 1, 2014 at 12:58 PM, James <wirel...@tampabay.rr.com> wrote:
>> Howdy,
>>
>> I know I can use this option to protect kernel sources I
>> want to keep around, from  removal, via depclean.
>>
> 
> Well I not a proficient user, but I think that depclean wont remove
> packages from distfiles.
> At least what happened to me was that depclean removed the sources
> from /usr/src/ folder but the linux.xxx remained in the disfiles
> folder.

You are confusing the distfile with the installed files.

A distfile is usually a tar.gz - it is the package downloaded from
upstream. The installed files are whatever the ebuild puts onto the live
system.

In the case of a binary package like say bash:
the distfile is bash-4.2.tar.gz
the installed file is /bin/bash

In the case of kernel sources, exactly the same rules apply but the
details differ:
the distfile is linux-3.15.tar.xz (plus patches)
the installed files are /usr/src/<whatever the version is>

kernel sources are a special case - portage does no compiling with them.
Kernel sources install is defined as "unpack the tarball and patches to
/usr/src"
Regular ebuilds define install as "whatever happens after ./configure &&
make && make install"



Here's a tip:
Go back and read the gentoo docs from beginning to end, all of them. Twice.

You are getting confused with gentoo basics and starting to jump the gun
because you haven't fully absorbed all the basics. Now there's nothing
wrong with your keenness and enthusiasm (that's great) but it needs to
be backed up with knowledge. You get that by reading the docs


-- 
Alan McKinnon
alan.mckin...@gmail.com


Reply via email to