public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How can I prevent gentoo-sources being installed?
@ 2013-03-24 16:26 Jarry
  2013-03-24 16:46 ` Neil Bothwick
  0 siblings, 1 reply; 12+ messages in thread
From: Jarry @ 2013-03-24 16:26 UTC (permalink / raw
  To: gentoo-user

Hi Gentoo-users,
what an unpleasant surprise awaited me today when I tried to
update my systems: gentoo-sources want to be installed everywhere!
-------------------
  # emerge --pretend --update --deep --newuse --verbose world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] sys-devel/bc-1.06.95  USE="readline -libedit -static" 
284 kB
[ebuild     U  ] app-admin/eselect-python-20111108 [20100321] 64 kB
[ebuild  N     ] sys-kernel/gentoo-sources-3.7.10:3.7.10  USE="-build 
-deblob -symlink" 68,335 kB
[ebuild  N     ] virtual/linux-sources-0  0 kB
[ebuild   R    ] sys-apps/kmod-12-r1  USE="tools zlib -debug -doc -lzma 
-static-libs" KERNEL="(linux%*)" 0 kB

Total: 5 packages (1 upgrade, 3 new, 1 reinstall), Size of downloads: 
68,682 kB
-------------------

Why in the heavens name should be gentoo-sources pulled in as
dependency of whatever? I have 6 nearly identical machines, and
use only one for kernel compilation, so why should I now have
gentoo-sources on every system? Can I somehow prevent it?

Jarry

-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.


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

* Re: [gentoo-user] How can I prevent gentoo-sources being installed?
  2013-03-24 16:26 [gentoo-user] How can I prevent gentoo-sources being installed? Jarry
@ 2013-03-24 16:46 ` Neil Bothwick
  2013-03-24 17:14   ` Jarry
  0 siblings, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2013-03-24 16:46 UTC (permalink / raw
  To: gentoo-user

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

On Sun, 24 Mar 2013 17:26:03 +0100, Jarry wrote:

> [ebuild  N     ] sys-kernel/gentoo-sources-3.7.10:3.7.10  USE="-build 
> -deblob -symlink" 68,335 kB
> [ebuild  N     ] virtual/linux-sources-0  0 kB
> [ebuild   R    ] sys-apps/kmod-12-r1  USE="tools zlib -debug -doc -lzma 
> -static-libs" KERNEL="(linux%*)" 0 kB

> Why in the heavens name should be gentoo-sources pulled in as
> dependency of whatever?

As a dependency of virtual-sources, which is probably pulled in by kmod.
Adding --tree would have told you for sure.

> I have 6 nearly identical machines, and
> use only one for kernel compilation, so why should I now have
> gentoo-sources on every system? Can I somehow prevent it?

You may get away with adding gentoo-sources to package.provided.


-- 
Neil Bothwick

Bill Gates named his company after his penis.

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

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

* Re: [gentoo-user] How can I prevent gentoo-sources being installed?
  2013-03-24 16:46 ` Neil Bothwick
@ 2013-03-24 17:14   ` Jarry
  2013-03-24 17:38     ` Michael Hampicke
  2013-03-24 17:39     ` Canek Peláez Valdés
  0 siblings, 2 replies; 12+ messages in thread
From: Jarry @ 2013-03-24 17:14 UTC (permalink / raw
  To: gentoo-user

On 24-Mar-13 17:46, Neil Bothwick wrote:
> On Sun, 24 Mar 2013 17:26:03 +0100, Jarry wrote:
>
>> [ebuild  N     ] sys-kernel/gentoo-sources-3.7.10:3.7.10  USE="-build
>> -deblob -symlink" 68,335 kB
>> [ebuild  N     ] virtual/linux-sources-0  0 kB
>> [ebuild   R    ] sys-apps/kmod-12-r1  USE="tools zlib -debug -doc -lzma
>> -static-libs" KERNEL="(linux%*)" 0 kB
>
>> Why in the heavens name should be gentoo-sources pulled in as
>> dependency of whatever?
>
> As a dependency of virtual-sources, which is probably pulled in by kmod.
> Adding --tree would have told you for sure.
>
> You may get away with adding gentoo-sources to package.provided.

Thanks, this works (never heard of this file before). But there
is one small problem: no wildcards are allowed, so whenever new
sorces come I'll have to edit package.provided again, and again...

BTW why should kmod depend on kernel-sources? Or even better, why
should be kmod installed, if I have static (non-modular) kernel?

Jarry
-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.


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

* Re: [gentoo-user] How can I prevent gentoo-sources being installed?
  2013-03-24 17:14   ` Jarry
@ 2013-03-24 17:38     ` Michael Hampicke
  2013-03-24 17:39     ` Canek Peláez Valdés
  1 sibling, 0 replies; 12+ messages in thread
From: Michael Hampicke @ 2013-03-24 17:38 UTC (permalink / raw
  To: gentoo-user

Am 24.03.2013 18:14, schrieb Jarry:
> On 24-Mar-13 17:46, Neil Bothwick wrote:
>> On Sun, 24 Mar 2013 17:26:03 +0100, Jarry wrote:
>>
>>> [ebuild  N     ] sys-kernel/gentoo-sources-3.7.10:3.7.10  USE="-build
>>> -deblob -symlink" 68,335 kB
>>> [ebuild  N     ] virtual/linux-sources-0  0 kB
>>> [ebuild   R    ] sys-apps/kmod-12-r1  USE="tools zlib -debug -doc -lzma
>>> -static-libs" KERNEL="(linux%*)" 0 kB
>>
>>> Why in the heavens name should be gentoo-sources pulled in as
>>> dependency of whatever?
>>
>> As a dependency of virtual-sources, which is probably pulled in by kmod.
>> Adding --tree would have told you for sure.
>>
>> You may get away with adding gentoo-sources to package.provided.
> 
> Thanks, this works (never heard of this file before). But there
> is one small problem: no wildcards are allowed, so whenever new
> sorces come I'll have to edit package.provided again, and again

No, that's not true. Here's the quote from the man page:

   Portage will not attempt to update a package that is listed here
unless another package explicitly requires a version that is newer than
what has been listed. Dependencies that are satisfied by
package.provided entries may cause installed packages satisfying
equivalent dependencies to be removed by emerge(1) --depclean actions
(see the ACTIONS section of the emerge(1) man page for more information).



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

* Re: [gentoo-user] How can I prevent gentoo-sources being installed?
  2013-03-24 17:14   ` Jarry
  2013-03-24 17:38     ` Michael Hampicke
@ 2013-03-24 17:39     ` Canek Peláez Valdés
  2013-03-24 18:41       ` Felix Kuperjans
  2013-03-24 18:57       ` Jarry
  1 sibling, 2 replies; 12+ messages in thread
From: Canek Peláez Valdés @ 2013-03-24 17:39 UTC (permalink / raw
  To: gentoo-user

On Sun, Mar 24, 2013 at 11:14 AM, Jarry <mr.jarry@gmail.com> wrote:
> On 24-Mar-13 17:46, Neil Bothwick wrote:
>>
>> On Sun, 24 Mar 2013 17:26:03 +0100, Jarry wrote:
>>
>>> [ebuild  N     ] sys-kernel/gentoo-sources-3.7.10:3.7.10  USE="-build
>>> -deblob -symlink" 68,335 kB
>>> [ebuild  N     ] virtual/linux-sources-0  0 kB
>>> [ebuild   R    ] sys-apps/kmod-12-r1  USE="tools zlib -debug -doc -lzma
>>> -static-libs" KERNEL="(linux%*)" 0 kB
>>
>>
>>> Why in the heavens name should be gentoo-sources pulled in as
>>> dependency of whatever?
>>
>>
>> As a dependency of virtual-sources, which is probably pulled in by kmod.
>> Adding --tree would have told you for sure.
>>
>> You may get away with adding gentoo-sources to package.provided.
>
>
> Thanks, this works (never heard of this file before). But there
> is one small problem: no wildcards are allowed, so whenever new
> sorces come I'll have to edit package.provided again, and again...
>
> BTW why should kmod depend on kernel-sources? Or even better, why
> should be kmod installed, if I have static (non-modular) kernel?

Because your use case is not standard. The normal situation for users
with kmod installed (and you have already kmod installed, since in
your --pretend run appears as to be reinstalled) is for them to use
kernel modules. The developers cannot handle every possible
combination of configurations, so defaults are set for the least weird
cases, or the common case even.

Your setup is not the norm; therefore, it depends on you to keep it as
you like it.

Regards.
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


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

* Re: [gentoo-user] How can I prevent gentoo-sources being installed?
  2013-03-24 17:39     ` Canek Peláez Valdés
@ 2013-03-24 18:41       ` Felix Kuperjans
  2013-03-24 18:56         ` Neil Bothwick
  2013-03-24 18:58         ` Canek Peláez Valdés
  2013-03-24 18:57       ` Jarry
  1 sibling, 2 replies; 12+ messages in thread
From: Felix Kuperjans @ 2013-03-24 18:41 UTC (permalink / raw
  To: gentoo-user

On Sun, Mar 24, 2013 at 18:39, Canek Peláez Valdés wrote:
> On Sun, Mar 24, 2013 at 11:14 AM, Jarry <mr.jarry@gmail.com> wrote:
>> Thanks, this works (never heard of this file before). But there is
>> one small problem: no wildcards are allowed, so whenever new sorces
>> come I'll have to edit package.provided again, and again... BTW why
>> should kmod depend on kernel-sources? Or even better, why should be
>> kmod installed, if I have static (non-modular) kernel? 
> Because your use case is not standard. The normal situation for users
> with kmod installed (and you have already kmod installed, since in
> your --pretend run appears as to be reinstalled) is for them to use
> kernel modules. The developers cannot handle every possible
> combination of configurations, so defaults are set for the least weird
> cases, or the common case even.
>
> Your setup is not the norm; therefore, it depends on you to keep it as
> you like it.
>
> Regards.
The case is actually quite common; Linux *sources* are only needed for
building kernels on the local machine (and - if used - additional
modules like nvidia-drivers).
Anyone who does not build the kernel on the local machine, e.g. taking
stock kernels from Debian/Fedora/..., kernel provided by
netboot/openvz/Xen domUs or build them remotely will almost never need
linux-sources installed.

BTW this will also add full kernel sources to all stage3 archives,
increasing their size quite significantly.

Regards,
Felix


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

* Re: [gentoo-user] How can I prevent gentoo-sources being installed?
  2013-03-24 18:41       ` Felix Kuperjans
@ 2013-03-24 18:56         ` Neil Bothwick
  2013-03-24 19:27           ` Felix Kuperjans
  2013-03-24 18:58         ` Canek Peláez Valdés
  1 sibling, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2013-03-24 18:56 UTC (permalink / raw
  To: gentoo-user

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

On Sun, 24 Mar 2013 19:41:18 +0100, Felix Kuperjans wrote:

> BTW this will also add full kernel sources to all stage3 archives,
> increasing their size quite significantly.

Stage 3 archives only contains necessary packages for which there is no
choice. They don't include a cron daemon or a system logger for that
reason, so they won't include kernel sources.


-- 
Neil Bothwick

"There's more to life than sex, beer and computers.
Not a lot more admittedly..."

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

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

* Re: [gentoo-user] How can I prevent gentoo-sources being installed?
  2013-03-24 17:39     ` Canek Peláez Valdés
  2013-03-24 18:41       ` Felix Kuperjans
@ 2013-03-24 18:57       ` Jarry
  2013-03-24 19:12         ` Mike Gilbert
  1 sibling, 1 reply; 12+ messages in thread
From: Jarry @ 2013-03-24 18:57 UTC (permalink / raw
  To: gentoo-user

On 24-Mar-13 18:39, Canek Peláez Valdés wrote:

>> BTW why should kmod depend on kernel-sources? Or even better, why
>> should be kmod installed, if I have static (non-modular) kernel?
>
> Because your use case is not standard. The normal situation for users
> with kmod installed (and you have already kmod installed, since in
> your --pretend run appears as to be reinstalled) is for them to use
> kernel modules. The developers cannot handle every possible
> combination of configurations, so defaults are set for the least weird
> cases, or the common case even.

But what are kernel-sources good for after kernel has been compiled?
They take some disk-space (~700MB in my case!), so I think it is
quite logical to compile kernel, install & test it, and after that
get rid of kernel-sources.

And I still do not know what does kmod need from kernel-sources.
Some part of kernel source-code? Strange is, up to now kmod was
satisfied even without kernel-sources...

I know some other packages look for kernel-sources, but issue
only warning if can not found any (i.e. udev). But why does
kmod need kernel-sources so badly it pulls them as dependency?

Jarry
-- 
_______________________________________________________________
This mailbox accepts e-mails only from selected mailing-lists!
Everything else is considered to be spam and therefore deleted.


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

* Re: [gentoo-user] How can I prevent gentoo-sources being installed?
  2013-03-24 18:41       ` Felix Kuperjans
  2013-03-24 18:56         ` Neil Bothwick
@ 2013-03-24 18:58         ` Canek Peláez Valdés
  1 sibling, 0 replies; 12+ messages in thread
From: Canek Peláez Valdés @ 2013-03-24 18:58 UTC (permalink / raw
  To: gentoo-user

On Sun, Mar 24, 2013 at 12:41 PM, Felix Kuperjans
<felix@desaster-games.com> wrote:
> On Sun, Mar 24, 2013 at 18:39, Canek Peláez Valdés wrote:
>> On Sun, Mar 24, 2013 at 11:14 AM, Jarry <mr.jarry@gmail.com> wrote:
>>> Thanks, this works (never heard of this file before). But there is
>>> one small problem: no wildcards are allowed, so whenever new sorces
>>> come I'll have to edit package.provided again, and again... BTW why
>>> should kmod depend on kernel-sources? Or even better, why should be
>>> kmod installed, if I have static (non-modular) kernel?
>> Because your use case is not standard. The normal situation for users
>> with kmod installed (and you have already kmod installed, since in
>> your --pretend run appears as to be reinstalled) is for them to use
>> kernel modules. The developers cannot handle every possible
>> combination of configurations, so defaults are set for the least weird
>> cases, or the common case even.
>>
>> Your setup is not the norm; therefore, it depends on you to keep it as
>> you like it.
>>
>> Regards.
> The case is actually quite common; Linux *sources* are only needed for

Even if it is "quite common" (which I doubt) is not the norm. The
Gentoo Handbook[1] and Gentoo Linux Kernel Guide[2] only discusses one
method to get  kernel which you can boot: installing one of the
several sources packages available under sys-kernel/*-sources, and
configuring it manually or via genkernel.

> building kernels on the local machine (and - if used - additional
> modules like nvidia-drivers).
> Anyone who does not build the kernel on the local machine, e.g. taking
> stock kernels from Debian/Fedora/..., kernel provided by
> netboot/openvz/Xen domUs or build them remotely will almost never need
> linux-sources installed.

Yeah, and you can install the kernel that your cousin Billy compiled
for you. Neither of those methods are the norm, as covered by the
Gentoo documentation, and therefore if you use those methods, you are
on your own.

> BTW this will also add full kernel sources to all stage3 archives,
> increasing their size quite significantly.

Which has nothing to do with the topic at hand.

Regards.

[1] http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?full=1#book_part1_chap7
[2] http://www.gentoo.org/doc/en/gentoo-kernel.xml
-- 
Canek Peláez Valdés
Posgrado en Ciencia e Ingeniería de la Computación
Universidad Nacional Autónoma de México


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

* Re: [gentoo-user] How can I prevent gentoo-sources being installed?
  2013-03-24 18:57       ` Jarry
@ 2013-03-24 19:12         ` Mike Gilbert
  0 siblings, 0 replies; 12+ messages in thread
From: Mike Gilbert @ 2013-03-24 19:12 UTC (permalink / raw
  To: gentoo-user

On Sun, Mar 24, 2013 at 2:57 PM, Jarry <mr.jarry@gmail.com> wrote:
> On 24-Mar-13 18:39, Canek Peláez Valdés wrote:
>
>>> BTW why should kmod depend on kernel-sources? Or even better, why
>>> should be kmod installed, if I have static (non-modular) kernel?
>>
>>
>> Because your use case is not standard. The normal situation for users
>> with kmod installed (and you have already kmod installed, since in
>> your --pretend run appears as to be reinstalled) is for them to use
>> kernel modules. The developers cannot handle every possible
>> combination of configurations, so defaults are set for the least weird
>> cases, or the common case even.
>
>
> But what are kernel-sources good for after kernel has been compiled?
> They take some disk-space (~700MB in my case!), so I think it is
> quite logical to compile kernel, install & test it, and after that
> get rid of kernel-sources.
>
> And I still do not know what does kmod need from kernel-sources.
> Some part of kernel source-code? Strange is, up to now kmod was
> satisfied even without kernel-sources...
>
> I know some other packages look for kernel-sources, but issue
> only warning if can not found any (i.e. udev). But why does
> kmod need kernel-sources so badly it pulls them as dependency?
>

It doesn't; this is just a side effect of inheriting linux-mod.eclass.
The developer involved is trying to come up with a better solution
right now.


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

* Re: [gentoo-user] How can I prevent gentoo-sources being installed?
  2013-03-24 18:56         ` Neil Bothwick
@ 2013-03-24 19:27           ` Felix Kuperjans
  2013-03-24 20:05             ` Neil Bothwick
  0 siblings, 1 reply; 12+ messages in thread
From: Felix Kuperjans @ 2013-03-24 19:27 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick wrote:
> On Sun, 24 Mar 2013 19:41:18 +0100, Felix Kuperjans wrote:
>
>> BTW this will also add full kernel sources to all stage3 archives,
>> increasing their size quite significantly.
> Stage 3 archives only contains necessary packages for which there is no
> choice. They don't include a cron daemon or a system logger for that
> reason, so they won't include kernel sources.
>
>
AFAICT stage3 archives include everything of @system.

virtual/dev-manager usually pulls in udev, which might pull in kmod
(depending on USE flags) and virtual/modutils is part of system, which
by default uses kmod.
So kmod is part of system and it then requires virtual/linux-sources as
a dependency, so they are now part of system as well.

That wasn't the case some days ago, and IMHO linux-sources should not be
part of @system in the future.

Regards,
Felix


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

* Re: [gentoo-user] How can I prevent gentoo-sources being installed?
  2013-03-24 19:27           ` Felix Kuperjans
@ 2013-03-24 20:05             ` Neil Bothwick
  0 siblings, 0 replies; 12+ messages in thread
From: Neil Bothwick @ 2013-03-24 20:05 UTC (permalink / raw
  To: gentoo-user

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

On Sun, 24 Mar 2013 20:27:00 +0100, Felix Kuperjans wrote:

> > Stage 3 archives only contains necessary packages for which there is
> > no choice. They don't include a cron daemon or a system logger for
> > that reason, so they won't include kernel sources.
> >
> >  
> AFAICT stage3 archives include everything of @system.

They don't. That's why you have to satisfy some virtuals manually at
install time.

> virtual/dev-manager usually pulls in udev, which might pull in kmod
> (depending on USE flags) and virtual/modutils is part of system, which
> by default uses kmod.
> So kmod is part of system and it then requires virtual/linux-sources as
> a dependency, so they are now part of system as well.

As has already been explained, this is an unintended side effect which is
being fixed, it shouldn't affect the stage 3 tarballs.


-- 
Neil Bothwick

Top Oxymorons Number 15: Extinct Life

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

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

end of thread, other threads:[~2013-03-24 20:05 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-24 16:26 [gentoo-user] How can I prevent gentoo-sources being installed? Jarry
2013-03-24 16:46 ` Neil Bothwick
2013-03-24 17:14   ` Jarry
2013-03-24 17:38     ` Michael Hampicke
2013-03-24 17:39     ` Canek Peláez Valdés
2013-03-24 18:41       ` Felix Kuperjans
2013-03-24 18:56         ` Neil Bothwick
2013-03-24 19:27           ` Felix Kuperjans
2013-03-24 20:05             ` Neil Bothwick
2013-03-24 18:58         ` Canek Peláez Valdés
2013-03-24 18:57       ` Jarry
2013-03-24 19:12         ` Mike Gilbert

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