Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 250301 - linux-mod.eclass: kernel sources accessed through /lib/modules/`uname -r`
Summary: linux-mod.eclass: kernel sources accessed through /lib/modules/`uname -r`
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
URL:
Whiteboard:
Keywords:
: 241960 250300 (view as bug list)
Depends on:
Blocks: modules-uname
  Show dependency tree
 
Reported: 2008-12-08 16:32 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2018-07-23 15:59 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log (sysprof-1.0.10:20081206-154633.log,10.10 KB, text/plain)
2008-12-08 16:33 UTC, Diego Elio Pettenò (RETIRED)
Details
workaround (sysprof-ebuild-kernel.patch,353 bytes, patch)
2010-02-25 17:22 UTC, Xake
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-08 16:32:42 UTC
This bug is being reported because this ebuild is currently trying to build against the kernel tree by accessing it through /lib/modules/`uname -r` instead than through /usr/src/linux like it should.

This is bad in many situations, like:

- livecd installs: the running kernel is the one from the livecd and is most
likely not the same the user is installing to;
- livecd chroot fixes: as above;
- generic chroot: running kernel comes from outside, as above;
- kernel updates: users most likely would want their system to have all the
modules ready _before_ restarting.

Please fix your ebuild to use /usr/src/linux.

Thanks,
Diego
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2008-12-08 16:33:24 UTC
Created attachment 174647 [details]
Build log
Comment 2 Rémi Cardona (RETIRED) gentoo-dev 2009-05-27 11:04:17 UTC
All this logic seems to be handled by the linux-mod and linux-info eclasses.

The ebuild doesn't actually do anything besides calling eclass functions.

Thanks
Comment 3 Xake 2010-02-25 17:22:20 UTC
Created attachment 221167 [details, diff]
workaround

This is a patch against the ebuild to show what is wrong.

Unless you have the param KDIR set the ${S}/module/Makefile then does by default the faulty behaviour that this bugreport is about.

This patch is wrong in so many ways, only a proof of concept. But I do not think KDIR is one of the "standard" variables, and thus it falls on the ebuild to set it.
Comment 4 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-02-03 14:03:25 UTC
>=sysprof-1.1 does not install a kernel module, so sysprof is no longer connected with this bug.

Diego, is this bug report is still relevant with the current state of the linux-info.eclass?
Comment 5 Alexandre Rostovtsev (RETIRED) gentoo-dev 2013-02-03 14:05:05 UTC
(In reply to comment #4)
> Diego, is this bug report is still relevant with the current state of the
> linux-info.eclass?

typo, meant linux-mod.eclass
Comment 6 Pacho Ramos gentoo-dev 2013-06-16 08:54:45 UTC
*** Bug 241960 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2016-01-26 06:40:15 UTC
*** Bug 250300 has been marked as a duplicate of this bug. ***
Comment 8 Alice Ferrazzi Gentoo Infrastructure gentoo-dev 2017-04-29 16:04:51 UTC
any news for this bug ?
Comment 9 Mike Pagano gentoo-dev 2018-07-23 15:59:32 UTC
I don't see any call to uname in linux-mod.eclass . If I'm missing anything here, please re-open.