public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] portage insists in pulling in sys-apps/kmod
@ 2013-03-23 17:42 Dan Johansson
  2013-03-23 19:06 ` Mike Gilbert
  0 siblings, 1 reply; 6+ messages in thread
From: Dan Johansson @ 2013-03-23 17:42 UTC (permalink / raw
  To: gentoo-user

Hello,

Some of my servers are running with a kernel without module-support.
On these servers something has started to pull in sys-apps/kmod, which when compiled complains about missing modules-support in the kernel (as it should).
Doing an "equery d sys-apps/kmod" I can see that the following two packages depends on sy-apps/kmod:
sys-fs/udev-197-r8 (kmod ? >=sys-apps/kmod-12)
virtual/modutils-0 (sys-apps/kmod[tools])

sys-fs/udev has "-kmod" in its USE-flags, so that should not be an issue).
# emerge --verbose --pretend sys-fs/udev 
[ebuild   R    ] sys-fs/udev-197-r8  USE="acl openrc -doc -gudev -hwdb -introspection -keymap -kmod (-selinux) -static-libs" 0 kB                                                                                                                  

With virtual/modutils its an other thing, here we have a circular dependency between virtual/modutils and sys-apps/kmod if the tools USE-flag is set.

So trying to resolve this a unmreged  virtual/modutils and sys-apps/kmod and tried the following:

# USE="-tools" emerge --update --deep --verbose --reinstall changed-use --with-bdeps y world --pretend --tree

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

Calculating dependencies... done!
[ebuild  N     ] virtual/modutils-0  0 kB
[ebuild  N     ]  sys-apps/modutils-2.4.27-r1  230 kB

Total: 2 packages (2 new), Size of downloads: 230 kB


# equery d sys-apps/modutils
 * These packages depend on sys-apps/modutils:

# equery d virtual/modutils
 * These packages depend on virtual/modutils:


Can someone explain to me why these two are getting re-emerged (nothing seems to depend on them and I have previously unmerged them)?

Regards,
-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************


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

* Re: [gentoo-user] portage insists in pulling in sys-apps/kmod
  2013-03-23 17:42 [gentoo-user] portage insists in pulling in sys-apps/kmod Dan Johansson
@ 2013-03-23 19:06 ` Mike Gilbert
  2013-03-23 20:34   ` Felix Kuperjans
                     ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Mike Gilbert @ 2013-03-23 19:06 UTC (permalink / raw
  To: gentoo-user

On Sat, Mar 23, 2013 at 1:42 PM, Dan Johansson <Dan.Johansson@dmj.nu> wrote:
> Hello,
>
> Some of my servers are running with a kernel without module-support.
> On these servers something has started to pull in sys-apps/kmod, which when compiled complains about missing modules-support in the kernel (as it should).
> Doing an "equery d sys-apps/kmod" I can see that the following two packages depends on sy-apps/kmod:
> sys-fs/udev-197-r8 (kmod ? >=sys-apps/kmod-12)
> virtual/modutils-0 (sys-apps/kmod[tools])
>
> sys-fs/udev has "-kmod" in its USE-flags, so that should not be an issue).
> # emerge --verbose --pretend sys-fs/udev
> [ebuild   R    ] sys-fs/udev-197-r8  USE="acl openrc -doc -gudev -hwdb -introspection -keymap -kmod (-selinux) -static-libs" 0 kB
>
> With virtual/modutils its an other thing, here we have a circular dependency between virtual/modutils and sys-apps/kmod if the tools USE-flag is set.

That circular dep is interesting; sys-apps/kmod only depends on
virtual/modutils because it inherits linux-mod.eclass.

Could you file about about the circular dependency please?


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

* Re: [gentoo-user] portage insists in pulling in sys-apps/kmod
  2013-03-23 19:06 ` Mike Gilbert
@ 2013-03-23 20:34   ` Felix Kuperjans
  2013-03-24 16:39     ` Mike Gilbert
  2013-03-24  8:04   ` Walter Dnes
  2013-03-24 10:45   ` Dan Johansson
  2 siblings, 1 reply; 6+ messages in thread
From: Felix Kuperjans @ 2013-03-23 20:34 UTC (permalink / raw
  To: gentoo-user

Mike Gilbert:
> On Sat, Mar 23, 2013 at 1:42 PM, Dan Johansson <Dan.Johansson@dmj.nu> wrote:
>> Hello,
>>
>> Some of my servers are running with a kernel without module-support.
>> On these servers something has started to pull in sys-apps/kmod, which when compiled complains about missing modules-support in the kernel (as it should).
>> Doing an "equery d sys-apps/kmod" I can see that the following two packages depends on sy-apps/kmod:
>> sys-fs/udev-197-r8 (kmod ? >=sys-apps/kmod-12)
>> virtual/modutils-0 (sys-apps/kmod[tools])
>>
>> sys-fs/udev has "-kmod" in its USE-flags, so that should not be an issue).
>> # emerge --verbose --pretend sys-fs/udev
>> [ebuild   R    ] sys-fs/udev-197-r8  USE="acl openrc -doc -gudev -hwdb -introspection -keymap -kmod (-selinux) -static-libs" 0 kB
>>
>> With virtual/modutils its an other thing, here we have a circular dependency between virtual/modutils and sys-apps/kmod if the tools USE-flag is set.
> That circular dep is interesting; sys-apps/kmod only depends on
> virtual/modutils because it inherits linux-mod.eclass.
>
> Could you file about about the circular dependency please?
I recognized another issue possibly caused by inheriting linux-mod.eclass:
kmod is pulling in virtual/linux-sources as a dependency, which actually
is not necessary at all (and maybe even annoying, it's at least some
hundred megabytes).


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

* Re: [gentoo-user] portage insists in pulling in sys-apps/kmod
  2013-03-23 19:06 ` Mike Gilbert
  2013-03-23 20:34   ` Felix Kuperjans
@ 2013-03-24  8:04   ` Walter Dnes
  2013-03-24 10:45   ` Dan Johansson
  2 siblings, 0 replies; 6+ messages in thread
From: Walter Dnes @ 2013-03-24  8:04 UTC (permalink / raw
  To: gentoo-user

On Sat, Mar 23, 2013 at 03:06:05PM -0400, Mike Gilbert wrote
> On Sat, Mar 23, 2013 at 1:42 PM, Dan Johansson <Dan.Johansson@dmj.nu> wrote:
> > Hello,
> >
> > Some of my servers are running with a kernel without module-support.
> > On these servers something has started to pull in sys-apps/kmod, which when compiled complains about missing modules-support in the kernel (as it should).
> > Doing an "equery d sys-apps/kmod" I can see that the following two packages depends on sy-apps/kmod:
> > sys-fs/udev-197-r8 (kmod ? >=sys-apps/kmod-12)
> > virtual/modutils-0 (sys-apps/kmod[tools])
> >
> > sys-fs/udev has "-kmod" in its USE-flags, so that should not be an issue).
> > # emerge --verbose --pretend sys-fs/udev
> > [ebuild   R    ] sys-fs/udev-197-r8  USE="acl openrc -doc -gudev -hwdb -introspection -keymap -kmod (-selinux) -static-libs" 0 kB
> >
> > With virtual/modutils its an other thing, here we have a circular dependency between virtual/modutils and sys-apps/kmod if the tools USE-flag is set.
> 
> That circular dep is interesting; sys-apps/kmod only depends on
> virtual/modutils because it inherits linux-mod.eclass.
> 
> Could you file about about the circular dependency please?

  I hesitated to file a bug, because my desktop is running mdev instead
of udev (just fine thank, you), and it might not be supported.  I've
removed module-init-tools.  I have virtual/modutils-0 and
sys-apps/kmod-12-r1 installed.  Here's what happens...

[d531][waltdnes][~] emerge -pv1 virtual/modutils

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

Calculating dependencies... done!
[ebuild   R    ] virtual/modutils-0  0 kB

[d531][waltdnes][~] emerge -pv1 sys-apps/modutils

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

Calculating dependencies... done!
[ebuild  N     ] sys-apps/modutils-2.4.27-r1  0 kB
[uninstall     ] sys-apps/kmod-12-r1  USE="tools zlib -debug -doc -lzma -static-libs" 
[blocks b      ] sys-apps/modutils ("sys-apps/modutils" is blocking sys-apps/kmod-12-r1)
[blocks b      ] sys-apps/kmod ("sys-apps/kmod" is blocking sys-apps/modutils-2.4.27-r1)

-- 
Walter Dnes <waltdnes@waltdnes.org>
I don't run "desktop environments"; I run useful applications


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

* Re: [gentoo-user] portage insists in pulling in sys-apps/kmod
  2013-03-23 19:06 ` Mike Gilbert
  2013-03-23 20:34   ` Felix Kuperjans
  2013-03-24  8:04   ` Walter Dnes
@ 2013-03-24 10:45   ` Dan Johansson
  2 siblings, 0 replies; 6+ messages in thread
From: Dan Johansson @ 2013-03-24 10:45 UTC (permalink / raw
  To: gentoo-user


On Saturday 23 March 2013 15.06:05 Mike Gilbert wrote:
> On Sat, Mar 23, 2013 at 1:42 PM, Dan Johansson <Dan.Johansson@dmj.nu> wrote:
> > Hello,
> >
> > Some of my servers are running with a kernel without module-support.
> > On these servers something has started to pull in sys-apps/kmod, which when compiled complains about missing modules-support in the kernel (as it should).
> > Doing an "equery d sys-apps/kmod" I can see that the following two packages depends on sy-apps/kmod:
> > sys-fs/udev-197-r8 (kmod ? >=sys-apps/kmod-12)
> > virtual/modutils-0 (sys-apps/kmod[tools])
> >
> > sys-fs/udev has "-kmod" in its USE-flags, so that should not be an issue).
> > # emerge --verbose --pretend sys-fs/udev
> > [ebuild   R    ] sys-fs/udev-197-r8  USE="acl openrc -doc -gudev -hwdb -introspection -keymap -kmod (-selinux) -static-libs" 0 kB
> >
> > With virtual/modutils its an other thing, here we have a circular dependency between virtual/modutils and sys-apps/kmod if the tools USE-flag is set.
> 
> That circular dep is interesting; sys-apps/kmod only depends on
> virtual/modutils because it inherits linux-mod.eclass.
> 
> Could you file about about the circular dependency please?
Bug 462926 (https://bugs.gentoo.org/show_bug.cgi?id=462926) is opened for the circular dependency.

My more immediate  question is "Why is virtual/modutils & sys-apps/kmod pulled in at all?" and "How can I prevent it?"

Here the output of my "emerge update"

# emerge --update --deep --verbose --reinstall changed-use --with-bdeps y world --pretend --tree

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

Calculating dependencies... done!


[nomerge       ] virtual/modutils-0 
[ebuild  N     ]  sys-apps/kmod-12-r1  USE="tools zlib -debug -doc -lzma -static-libs" 0 kB
[ebuild  N     ]   virtual/modutils-0  0 kB

Regards,
-- 
Dan Johansson, <http://www.dmj.nu>
***************************************************
This message is printed on 100% recycled electrons!
***************************************************


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

* Re: [gentoo-user] portage insists in pulling in sys-apps/kmod
  2013-03-23 20:34   ` Felix Kuperjans
@ 2013-03-24 16:39     ` Mike Gilbert
  0 siblings, 0 replies; 6+ messages in thread
From: Mike Gilbert @ 2013-03-24 16:39 UTC (permalink / raw
  To: gentoo-user

On Sat, Mar 23, 2013 at 4:34 PM, Felix Kuperjans
<felix@desaster-games.com> wrote:
> Mike Gilbert:
>> On Sat, Mar 23, 2013 at 1:42 PM, Dan Johansson <Dan.Johansson@dmj.nu> wrote:
>>> Hello,
>>>
>>> Some of my servers are running with a kernel without module-support.
>>> On these servers something has started to pull in sys-apps/kmod, which when compiled complains about missing modules-support in the kernel (as it should).
>>> Doing an "equery d sys-apps/kmod" I can see that the following two packages depends on sy-apps/kmod:
>>> sys-fs/udev-197-r8 (kmod ? >=sys-apps/kmod-12)
>>> virtual/modutils-0 (sys-apps/kmod[tools])
>>>
>>> sys-fs/udev has "-kmod" in its USE-flags, so that should not be an issue).
>>> # emerge --verbose --pretend sys-fs/udev
>>> [ebuild   R    ] sys-fs/udev-197-r8  USE="acl openrc -doc -gudev -hwdb -introspection -keymap -kmod (-selinux) -static-libs" 0 kB
>>>
>>> With virtual/modutils its an other thing, here we have a circular dependency between virtual/modutils and sys-apps/kmod if the tools USE-flag is set.
>> That circular dep is interesting; sys-apps/kmod only depends on
>> virtual/modutils because it inherits linux-mod.eclass.
>>
>> Could you file about about the circular dependency please?
> I recognized another issue possibly caused by inheriting linux-mod.eclass:
> kmod is pulling in virtual/linux-sources as a dependency, which actually
> is not necessary at all (and maybe even annoying, it's at least some
> hundred megabytes).
>

You could also file a bug for that.

I have the following in /etc/portage/profile/package.provided to work around it.

sys-kernel/vanilla-sources-2.6


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

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

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-23 17:42 [gentoo-user] portage insists in pulling in sys-apps/kmod Dan Johansson
2013-03-23 19:06 ` Mike Gilbert
2013-03-23 20:34   ` Felix Kuperjans
2013-03-24 16:39     ` Mike Gilbert
2013-03-24  8:04   ` Walter Dnes
2013-03-24 10:45   ` Dan Johansson

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