* Re: [gentoo-user] --exclude gentoo-sources
2014-08-01 16:58 [gentoo-user] --exclude gentoo-sources James
@ 2014-08-01 17:11 ` Alan McKinnon
2014-08-01 17:56 ` [gentoo-user] " James
2014-08-01 17:12 ` [gentoo-user] " Alexander Kapshuk
` (3 subsequent siblings)
4 siblings, 1 reply; 12+ messages in thread
From: Alan McKinnon @ 2014-08-01 17:11 UTC (permalink / raw
To: gentoo-user
On 01/08/2014 18:58, James wrote:
> Howdy,
>
> I know I can use this option to protect kernel sources I
> want to keep around, from removal, via depclean.
>
>
> However, I use to just manually edit the world file and
> explicitly list the kernel sources versions I wanted to keep.
> This does not seem to work anymore?
>
> Other suggestions to keep the kernel sources around ?
put gentoo-sources in world, you then always get the latest.
test each one , decide which are worth keeping. Let's say for argument
that is 3.15.4, so:
emerge -n =gentoo-sources-3.15.4
All versions not listed thusly are subject to depcleaning
--
Alan McKinnon
alan.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: --exclude gentoo-sources
2014-08-01 17:11 ` Alan McKinnon
@ 2014-08-01 17:56 ` James
0 siblings, 0 replies; 12+ messages in thread
From: James @ 2014-08-01 17:56 UTC (permalink / raw
To: gentoo-user
Alan McKinnon <alan.mckinnon <at> gmail.com> writes:
> > I know I can use this option to protect kernel sources I
> > want to keep around, from removal, via depclean.
> put gentoo-sources in world, you then always get the latest.
> test each one , decide which are worth keeping. Let's say for argument
> that is 3.15.4, so:
> emerge -n =gentoo-sources-3.15.4
> All versions not listed thusly are subject to depcleaning
I found this make.conf idea, whilst googling:
# Keeps depclean from removing gentoo-sources
EMERGE_DEFAULT_OPTS="--exclude gentoo-sources"
Unfortunately, I had already manually fixed the problem
and ran depclean. So I'll just have to wait for a real test,
but for now it passed the 'emerge --depclean -p' test.....
Have a good weekend, one and all!
thx,
James
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] --exclude gentoo-sources
2014-08-01 16:58 [gentoo-user] --exclude gentoo-sources James
2014-08-01 17:11 ` Alan McKinnon
@ 2014-08-01 17:12 ` Alexander Kapshuk
2014-08-01 17:15 ` Fwd: " Alexander Kapshuk
2014-08-01 19:38 ` Neil Bothwick
` (2 subsequent siblings)
4 siblings, 1 reply; 12+ messages in thread
From: Alexander Kapshuk @ 2014-08-01 17:12 UTC (permalink / raw
To: gentoo-user
On 08/01/2014 07:58 PM, James wrote:
> Howdy,
>
> I know I can use this option to protect kernel sources I
> want to keep around, from removal, via depclean.
>
>
> However, I use to just manually edit the world file and
> explicitly list the kernel sources versions I wanted to keep.
> This does not seem to work anymore?
>
> Other suggestions to keep the kernel sources around ?
>
> James
>
>
emerge(1)
Packages that are part of the world set will always be kept. They can be
manually added to this set with emerge --noreplace <atom>.
E.g.
emerge --noreplace =sys-kernel/gentoo-sources-x.x.x
^ permalink raw reply [flat|nested] 12+ messages in thread
* Fwd: Re: [gentoo-user] --exclude gentoo-sources
2014-08-01 17:12 ` [gentoo-user] " Alexander Kapshuk
@ 2014-08-01 17:15 ` Alexander Kapshuk
2014-08-01 21:07 ` Mick
0 siblings, 1 reply; 12+ messages in thread
From: Alexander Kapshuk @ 2014-08-01 17:15 UTC (permalink / raw
To: Gentoo mailing list
[-- Attachment #1: Type: text/plain, Size: 1021 bytes --]
-------- Original Message --------
Subject: Re: [gentoo-user] --exclude gentoo-sources
Date: Fri, 01 Aug 2014 20:12:06 +0300
From: Alexander Kapshuk <alexander.kapshuk@gmail.com>
To: gentoo-user@lists.gentoo.org
On 08/01/2014 07:58 PM, James wrote:
> Howdy,
>
> I know I can use this option to protect kernel sources I
> want to keep around, from removal, via depclean.
>
>
> However, I use to just manually edit the world file and
> explicitly list the kernel sources versions I wanted to keep.
> This does not seem to work anymore?
>
> Other suggestions to keep the kernel sources around ?
>
> James
>
>
emerge(1)
Packages that are part of the world set will always be kept. They can be
manually added to this set with emerge --noreplace <atom>.
E.g.
emerge --noreplace =sys-kernel/gentoo-sources-x.x.x
To remove the kernel sources pkg use:
emerge --deselect sys-kernel/gentoo-sources:x.x.x
>>> Removing sys-kernel/gentoo-sources:x.x.x from "world" favorites file...
Followed by 'emerge -a --depclean'
[-- Attachment #2: Type: text/html, Size: 2220 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: Fwd: Re: [gentoo-user] --exclude gentoo-sources
2014-08-01 17:15 ` Fwd: " Alexander Kapshuk
@ 2014-08-01 21:07 ` Mick
0 siblings, 0 replies; 12+ messages in thread
From: Mick @ 2014-08-01 21:07 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: Text/Plain, Size: 1344 bytes --]
On Friday 01 Aug 2014 18:15:12 Alexander Kapshuk wrote:
> -------- Original Message --------
> Subject: Re: [gentoo-user] --exclude gentoo-sources
> Date: Fri, 01 Aug 2014 20:12:06 +0300
> From: Alexander Kapshuk <alexander.kapshuk@gmail.com>
> To: gentoo-user@lists.gentoo.org
>
> On 08/01/2014 07:58 PM, James wrote:
> > Howdy,
> >
> > I know I can use this option to protect kernel sources I
> > want to keep around, from removal, via depclean.
> >
> >
> > However, I use to just manually edit the world file and
> > explicitly list the kernel sources versions I wanted to keep.
> > This does not seem to work anymore?
> >
> > Other suggestions to keep the kernel sources around ?
> >
> > James
>
> emerge(1)
> Packages that are part of the world set will always be kept. They can be
> manually added to this set with emerge --noreplace <atom>.
> E.g.
> emerge --noreplace =sys-kernel/gentoo-sources-x.x.x
>
> To remove the kernel sources pkg use:
> emerge --deselect sys-kernel/gentoo-sources:x.x.x
>
> >>> Removing sys-kernel/gentoo-sources:x.x.x from "world" favorites file...
>
> Followed by 'emerge -a --depclean'
Or if you're asking how to keep them forever, irrespective of what portage
contains, you can copy the particular sources in your local overlay.
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] --exclude gentoo-sources
2014-08-01 16:58 [gentoo-user] --exclude gentoo-sources James
2014-08-01 17:11 ` Alan McKinnon
2014-08-01 17:12 ` [gentoo-user] " Alexander Kapshuk
@ 2014-08-01 19:38 ` Neil Bothwick
2014-08-01 20:19 ` behrouz khosravi
2014-08-02 13:29 ` Stroller
4 siblings, 0 replies; 12+ messages in thread
From: Neil Bothwick @ 2014-08-01 19:38 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 328 bytes --]
On Fri, 1 Aug 2014 16:58:33 +0000 (UTC), James wrote:
> Other suggestions to keep the kernel sources around ?
Put this is /etc/portage/sets.conf
[kernels]
class = portage.sets.dbapi.OwnerSet
world-candidate = False
files = /usr/src
--
Neil Bothwick
Things which must be shipped together as a set, aren't.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 181 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] --exclude gentoo-sources
2014-08-01 16:58 [gentoo-user] --exclude gentoo-sources James
` (2 preceding siblings ...)
2014-08-01 19:38 ` Neil Bothwick
@ 2014-08-01 20:19 ` behrouz khosravi
2014-08-01 23:35 ` Daniel Frey
2014-08-02 9:17 ` Alan McKinnon
2014-08-02 13:29 ` Stroller
4 siblings, 2 replies; 12+ messages in thread
From: behrouz khosravi @ 2014-08-01 20:19 UTC (permalink / raw
To: gentoo-user
On Fri, Aug 1, 2014 at 12:58 PM, James <wireless@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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] --exclude gentoo-sources
2014-08-01 20:19 ` behrouz khosravi
@ 2014-08-01 23:35 ` Daniel Frey
2014-08-02 9:17 ` Alan McKinnon
1 sibling, 0 replies; 12+ messages in thread
From: Daniel Frey @ 2014-08-01 23:35 UTC (permalink / raw
To: gentoo-user
On 08/01/2014 01:19 PM, behrouz khosravi wrote:
> On Fri, Aug 1, 2014 at 12:58 PM, James <wireless@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.
>
If you want to clean the distfiles directory, use eclean-dist. It scans
what you have installed and removes sources that you don't need. Use
`eclean-dist --help` for more info.
Dan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] --exclude gentoo-sources
2014-08-01 20:19 ` behrouz khosravi
2014-08-01 23:35 ` Daniel Frey
@ 2014-08-02 9:17 ` Alan McKinnon
2014-08-02 9:29 ` behrouz khosravi
1 sibling, 1 reply; 12+ messages in thread
From: Alan McKinnon @ 2014-08-02 9:17 UTC (permalink / raw
To: gentoo-user
On 01/08/2014 22:19, behrouz khosravi wrote:
> On Fri, Aug 1, 2014 at 12:58 PM, James <wireless@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.mckinnon@gmail.com
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] --exclude gentoo-sources
2014-08-02 9:17 ` Alan McKinnon
@ 2014-08-02 9:29 ` behrouz khosravi
0 siblings, 0 replies; 12+ messages in thread
From: behrouz khosravi @ 2014-08-02 9:29 UTC (permalink / raw
To: gentoo-user
On Sat, Aug 2, 2014 at 1:47 PM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
> You are confusing the distfile with the installed ...
Well actually I was thinking that if somebody need the old kernel
source he/she can unpack the distfile and perform what he/she wants.
Maybe updating the linux symlink will be needed though.
However I forget the patches, and in that case it does not seem very practical !
However thanks for your time.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] --exclude gentoo-sources
2014-08-01 16:58 [gentoo-user] --exclude gentoo-sources James
` (3 preceding siblings ...)
2014-08-01 20:19 ` behrouz khosravi
@ 2014-08-02 13:29 ` Stroller
4 siblings, 0 replies; 12+ messages in thread
From: Stroller @ 2014-08-02 13:29 UTC (permalink / raw
To: gentoo-user
On Fri, 1 August 2014, at 5:58 pm, James <wireless@tampabay.rr.com> wrote:
> ...
> I know I can use this option to protect kernel sources I
> want to keep around, from removal, via depclean.
>
> Other suggestions to keep the kernel sources around ?
Just copy the ebuild to your local portage tree and then `emerge =sys-kernel/gentoo-sources-3.14.1` (or whatever version).
With some packages it's important to include some contents of /usr/portage/category/package-name/files but not for gentoo-sources.
There's no need to update your kernel more often than every few months.
Stroller.
^ permalink raw reply [flat|nested] 12+ messages in thread