public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] re: emerge --depclean [gentoo-sources]
@ 2013-09-21 10:27 Alexander Kapshuk
  2013-09-21 10:36 ` Neil Bothwick
  2013-09-21 11:02 ` Randolph Maaßen
  0 siblings, 2 replies; 10+ messages in thread
From: Alexander Kapshuk @ 2013-09-21 10:27 UTC (permalink / raw
  To: Gentoo mailing list

emerge --depclean wants to remove the gentoo-sources for my old kernel
[sys-kernel/gentoo-sources-3.8.13] which I want to hang on to for the
time being.

Is there a way to instruct emerge not to remove them?

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>.

If I understood the instruction above, 'emerge --noreplace
sys-kernel/gentoo-sources-3.8.13' should have added 'gentoo-sources' to
/var/lib/portage/world_sets, which it didn't seem to do.

box0 src # emerge --noreplace sys-kernel/gentoo-sources-3.8.13
!!! 'sys-kernel/gentoo-sources-3.8.13' is not a valid package atom.
!!! Please check ebuild(5) for full details.


box0=; ls -l `pwd`/world*
-rw-r--r-- 1 root portage 920 Sep 20 20:45 /var/lib/portage/world
-rw-r--r-- 1 root portage   0 Sep 20 20:45 /var/lib/portage/world_sets

Or is it a matter of defining something like this:
CONFIG_PROTECT_MASK="/usr/src/linux-3.8.13-gentoo"
in /etc/portage/make.conf?


Any pointers would be much appreciated.


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] re: emerge --depclean [gentoo-sources]
  2013-09-21 10:27 [gentoo-user] re: emerge --depclean [gentoo-sources] Alexander Kapshuk
@ 2013-09-21 10:36 ` Neil Bothwick
  2013-09-21 11:30   ` Hinnerk van Bruinehsen
  2013-09-21 11:45   ` Alexander Kapshuk
  2013-09-21 11:02 ` Randolph Maaßen
  1 sibling, 2 replies; 10+ messages in thread
From: Neil Bothwick @ 2013-09-21 10:36 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 591 bytes --]

On Sat, 21 Sep 2013 13:27:28 +0300, Alexander Kapshuk wrote:

> If I understood the instruction above, 'emerge --noreplace
> sys-kernel/gentoo-sources-3.8.13' should have added 'gentoo-sources' to
> /var/lib/portage/world_sets, which it didn't seem to do.
> 
> box0 src # emerge --noreplace sys-kernel/gentoo-sources-3.8.13
> !!! 'sys-kernel/gentoo-sources-3.8.13' is not a valid package atom.
> !!! Please check ebuild(5) for full details.

emerge --noreplace =sys-kernel/gentoo-sources-3.8.13


-- 
Neil Bothwick

Mr. bullfrog says: "time's fun when you're having flies."

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] re: emerge --depclean [gentoo-sources]
  2013-09-21 10:27 [gentoo-user] re: emerge --depclean [gentoo-sources] Alexander Kapshuk
  2013-09-21 10:36 ` Neil Bothwick
@ 2013-09-21 11:02 ` Randolph Maaßen
  2013-09-21 11:46   ` Alexander Kapshuk
  1 sibling, 1 reply; 10+ messages in thread
From: Randolph Maaßen @ 2013-09-21 11:02 UTC (permalink / raw
  To: gentoo-user

Hi,

2013/9/21 Alexander Kapshuk <alexander.kapshuk@gmail.com>:
> emerge --depclean wants to remove the gentoo-sources for my old kernel
> [sys-kernel/gentoo-sources-3.8.13] which I want to hang on to for the
> time being.
>
> Is there a way to instruct emerge not to remove them?
>
> 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>.
>
> If I understood the instruction above, 'emerge --noreplace
> sys-kernel/gentoo-sources-3.8.13' should have added 'gentoo-sources' to
> /var/lib/portage/world_sets, which it didn't seem to do.

No, this it the wrong file. the file /var/lib/portage/world is THE
world set, it contains all packages you emerged manually (and with
--noreplace).
The file /var/lib/portage/world_sets can contain the name of other
sets that should be included into the world.

>
> box0 src # emerge --noreplace sys-kernel/gentoo-sources-3.8.13
> !!! 'sys-kernel/gentoo-sources-3.8.13' is not a valid package atom.
> !!! Please check ebuild(5) for full details.
>
>
> box0=; ls -l `pwd`/world*
> -rw-r--r-- 1 root portage 920 Sep 20 20:45 /var/lib/portage/world
> -rw-r--r-- 1 root portage   0 Sep 20 20:45 /var/lib/portage/world_sets
>
> Or is it a matter of defining something like this:
> CONFIG_PROTECT_MASK="/usr/src/linux-3.8.13-gentoo"
> in /etc/portage/make.conf?
>
>
> Any pointers would be much appreciated.
>



-- 
Mit freundlichen Grüßen / Best regards

Randolph Maaßen


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] re: emerge --depclean [gentoo-sources]
  2013-09-21 10:36 ` Neil Bothwick
@ 2013-09-21 11:30   ` Hinnerk van Bruinehsen
  2013-09-21 11:45   ` Alexander Kapshuk
  1 sibling, 0 replies; 10+ messages in thread
From: Hinnerk van Bruinehsen @ 2013-09-21 11:30 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 835 bytes --]

On Sat, Sep 21, 2013 at 11:36:21AM +0100, Neil Bothwick wrote:
> On Sat, 21 Sep 2013 13:27:28 +0300, Alexander Kapshuk wrote:
>
> > If I understood the instruction above, 'emerge --noreplace
> > sys-kernel/gentoo-sources-3.8.13' should have added 'gentoo-sources' to
> > /var/lib/portage/world_sets, which it didn't seem to do.
> >
> > box0 src # emerge --noreplace sys-kernel/gentoo-sources-3.8.13
> > !!! 'sys-kernel/gentoo-sources-3.8.13' is not a valid package atom.
> > !!! Please check ebuild(5) for full details.
>
> emerge --noreplace =sys-kernel/gentoo-sources-3.8.13

You should also note, that you actually can depclean the sources. The unmerge
process leaves any temporary files from the compilation process intact (unless
you manually delete them).
If you later reemerge that version you'll start right of where you were.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 490 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] re: emerge --depclean [gentoo-sources]
  2013-09-21 10:36 ` Neil Bothwick
  2013-09-21 11:30   ` Hinnerk van Bruinehsen
@ 2013-09-21 11:45   ` Alexander Kapshuk
  2013-09-21 11:51     ` Randolph Maaßen
  2013-09-21 12:08     ` Neil Bothwick
  1 sibling, 2 replies; 10+ messages in thread
From: Alexander Kapshuk @ 2013-09-21 11:45 UTC (permalink / raw
  To: gentoo-user

On 09/21/2013 01:36 PM, Neil Bothwick wrote:
> On Sat, 21 Sep 2013 13:27:28 +0300, Alexander Kapshuk wrote:
>
>> If I understood the instruction above, 'emerge --noreplace
>> sys-kernel/gentoo-sources-3.8.13' should have added 'gentoo-sources' to
>> /var/lib/portage/world_sets, which it didn't seem to do.
>>
>> box0 src # emerge --noreplace sys-kernel/gentoo-sources-3.8.13
>> !!! 'sys-kernel/gentoo-sources-3.8.13' is not a valid package atom.
>> !!! Please check ebuild(5) for full details.
> emerge --noreplace =sys-kernel/gentoo-sources-3.8.13
>
>
Thanks. That did it.
box0=; grep sources /var/lib/portage/world
sys-kernel/gentoo-sources
sys-kernel/gentoo-sources:3.8.13

Once I decide I no longer need 'gentoo-sources-3.8.13', would it be
enough just to remove the corresponding line from
'/var/lib/portage/world', or is there a better way of doing it?

Thanks.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] re: emerge --depclean [gentoo-sources]
  2013-09-21 11:02 ` Randolph Maaßen
@ 2013-09-21 11:46   ` Alexander Kapshuk
  0 siblings, 0 replies; 10+ messages in thread
From: Alexander Kapshuk @ 2013-09-21 11:46 UTC (permalink / raw
  To: gentoo-user

On 09/21/2013 02:02 PM, Randolph Maaßen wrote:
> Hi,
>
> 2013/9/21 Alexander Kapshuk <alexander.kapshuk@gmail.com>:
>> emerge --depclean wants to remove the gentoo-sources for my old kernel
>> [sys-kernel/gentoo-sources-3.8.13] which I want to hang on to for the
>> time being.
>>
>> Is there a way to instruct emerge not to remove them?
>>
>> 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>.
>>
>> If I understood the instruction above, 'emerge --noreplace
>> sys-kernel/gentoo-sources-3.8.13' should have added 'gentoo-sources' to
>> /var/lib/portage/world_sets, which it didn't seem to do.
> No, this it the wrong file. the file /var/lib/portage/world is THE
> world set, it contains all packages you emerged manually (and with
> --noreplace).
> The file /var/lib/portage/world_sets can contain the name of other
> sets that should be included into the world.
>
>> box0 src # emerge --noreplace sys-kernel/gentoo-sources-3.8.13
>> !!! 'sys-kernel/gentoo-sources-3.8.13' is not a valid package atom.
>> !!! Please check ebuild(5) for full details.
>>
>>
>> box0=; ls -l `pwd`/world*
>> -rw-r--r-- 1 root portage 920 Sep 20 20:45 /var/lib/portage/world
>> -rw-r--r-- 1 root portage   0 Sep 20 20:45 /var/lib/portage/world_sets
>>
>> Or is it a matter of defining something like this:
>> CONFIG_PROTECT_MASK="/usr/src/linux-3.8.13-gentoo"
>> in /etc/portage/make.conf?
>>
>>
>> Any pointers would be much appreciated.
>>
>
>
Understood.

Thanks.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] re: emerge --depclean [gentoo-sources]
  2013-09-21 11:45   ` Alexander Kapshuk
@ 2013-09-21 11:51     ` Randolph Maaßen
  2013-09-21 11:54       ` Alexander Kapshuk
  2013-09-21 12:08     ` Neil Bothwick
  1 sibling, 1 reply; 10+ messages in thread
From: Randolph Maaßen @ 2013-09-21 11:51 UTC (permalink / raw
  To: gentoo-user

2013/9/21 Alexander Kapshuk <alexander.kapshuk@gmail.com>:
> On 09/21/2013 01:36 PM, Neil Bothwick wrote:
>> On Sat, 21 Sep 2013 13:27:28 +0300, Alexander Kapshuk wrote:
>>
>>> If I understood the instruction above, 'emerge --noreplace
>>> sys-kernel/gentoo-sources-3.8.13' should have added 'gentoo-sources' to
>>> /var/lib/portage/world_sets, which it didn't seem to do.
>>>
>>> box0 src # emerge --noreplace sys-kernel/gentoo-sources-3.8.13
>>> !!! 'sys-kernel/gentoo-sources-3.8.13' is not a valid package atom.
>>> !!! Please check ebuild(5) for full details.
>> emerge --noreplace =sys-kernel/gentoo-sources-3.8.13
>>
>>
> Thanks. That did it.
> box0=; grep sources /var/lib/portage/world
> sys-kernel/gentoo-sources
> sys-kernel/gentoo-sources:3.8.13
>
> Once I decide I no longer need 'gentoo-sources-3.8.13', would it be
> enough just to remove the corresponding line from
> '/var/lib/portage/world', or is there a better way of doing it?
>
> Thanks.
>
>

emerge --deselect <atom>
and
emerge --depclean --ask
should be more elegant

-- 
Mit freundlichen Grüßen / Best regards

Randolph Maaßen


^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] re: emerge --depclean [gentoo-sources]
  2013-09-21 11:51     ` Randolph Maaßen
@ 2013-09-21 11:54       ` Alexander Kapshuk
  0 siblings, 0 replies; 10+ messages in thread
From: Alexander Kapshuk @ 2013-09-21 11:54 UTC (permalink / raw
  To: gentoo-user

On 09/21/2013 02:51 PM, Randolph Maaßen wrote:
> 2013/9/21 Alexander Kapshuk <alexander.kapshuk@gmail.com>:
>> On 09/21/2013 01:36 PM, Neil Bothwick wrote:
>>> On Sat, 21 Sep 2013 13:27:28 +0300, Alexander Kapshuk wrote:
>>>
>>>> If I understood the instruction above, 'emerge --noreplace
>>>> sys-kernel/gentoo-sources-3.8.13' should have added 'gentoo-sources' to
>>>> /var/lib/portage/world_sets, which it didn't seem to do.
>>>>
>>>> box0 src # emerge --noreplace sys-kernel/gentoo-sources-3.8.13
>>>> !!! 'sys-kernel/gentoo-sources-3.8.13' is not a valid package atom.
>>>> !!! Please check ebuild(5) for full details.
>>> emerge --noreplace =sys-kernel/gentoo-sources-3.8.13
>>>
>>>
>> Thanks. That did it.
>> box0=; grep sources /var/lib/portage/world
>> sys-kernel/gentoo-sources
>> sys-kernel/gentoo-sources:3.8.13
>>
>> Once I decide I no longer need 'gentoo-sources-3.8.13', would it be
>> enough just to remove the corresponding line from
>> '/var/lib/portage/world', or is there a better way of doing it?
>>
>> Thanks.
>>
>>
> emerge --deselect <atom>
> and
> emerge --depclean --ask
> should be more elegant
>
Thanks.



^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] re: emerge --depclean [gentoo-sources]
  2013-09-21 11:45   ` Alexander Kapshuk
  2013-09-21 11:51     ` Randolph Maaßen
@ 2013-09-21 12:08     ` Neil Bothwick
  2013-09-21 12:13       ` Alexander Kapshuk
  1 sibling, 1 reply; 10+ messages in thread
From: Neil Bothwick @ 2013-09-21 12:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 505 bytes --]

On Sat, 21 Sep 2013 14:45:59 +0300, Alexander Kapshuk wrote:

> box0=; grep sources /var/lib/portage/world
> sys-kernel/gentoo-sources
> sys-kernel/gentoo-sources:3.8.13
> 
> Once I decide I no longer need 'gentoo-sources-3.8.13', would it be
> enough just to remove the corresponding line from
> '/var/lib/portage/world', or is there a better way of doing it?

emerge -Ca sys-kernel/gentoo-sources:3.8.13


-- 
Neil Bothwick

Bagpipe for free: Stuff cat under arm. Pull legs, chew tail.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [gentoo-user] re: emerge --depclean [gentoo-sources]
  2013-09-21 12:08     ` Neil Bothwick
@ 2013-09-21 12:13       ` Alexander Kapshuk
  0 siblings, 0 replies; 10+ messages in thread
From: Alexander Kapshuk @ 2013-09-21 12:13 UTC (permalink / raw
  To: gentoo-user

On 09/21/2013 03:08 PM, Neil Bothwick wrote:
> On Sat, 21 Sep 2013 14:45:59 +0300, Alexander Kapshuk wrote:
>
>> box0=; grep sources /var/lib/portage/world
>> sys-kernel/gentoo-sources
>> sys-kernel/gentoo-sources:3.8.13
>>
>> Once I decide I no longer need 'gentoo-sources-3.8.13', would it be
>> enough just to remove the corresponding line from
>> '/var/lib/portage/world', or is there a better way of doing it?
> emerge -Ca sys-kernel/gentoo-sources:3.8.13
>
>
Thanks.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2013-09-21 12:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-21 10:27 [gentoo-user] re: emerge --depclean [gentoo-sources] Alexander Kapshuk
2013-09-21 10:36 ` Neil Bothwick
2013-09-21 11:30   ` Hinnerk van Bruinehsen
2013-09-21 11:45   ` Alexander Kapshuk
2013-09-21 11:51     ` Randolph Maaßen
2013-09-21 11:54       ` Alexander Kapshuk
2013-09-21 12:08     ` Neil Bothwick
2013-09-21 12:13       ` Alexander Kapshuk
2013-09-21 11:02 ` Randolph Maaßen
2013-09-21 11:46   ` Alexander Kapshuk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox