Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 370023 - net-misc/batman-adv kernel sources accessed through /lib/modules/`uname -r`
Summary: net-misc/batman-adv kernel sources accessed through /lib/modules/`uname -r`
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High QA (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-04 12:11 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2011-06-05 08:30 UTC (History)
0 users

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


Attachments
Build log (batman-adv-2011.1.0:20110604-022605.log,2.75 KB, text/plain)
2011-06-04 12:11 UTC, Diego Elio Pettenò (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2011-06-04 12:11:23 UTC
Created attachment 275781 [details]
Build log

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 w
Comment 1 Michael Weber (RETIRED) gentoo-dev 2011-06-05 08:30:38 UTC
+  05 Jun 2011; Michael Weber <xmw@gentoo.org> batman-adv-2011.1.0.ebuild:
+  Use from linux-mod as kernel source instead of uname -r (bug 370023)
+

Index: batman-adv-2011.1.0.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/batman-adv/batman-adv-2011.1.0.ebuild,v
retrieving revision 1.2
diff -u -B -r1.2 batman-adv-2011.1.0.ebuild
--- batman-adv-2011.1.0.ebuild  20 May 2011 22:30:54 -0000      1.2
+++ batman-adv-2011.1.0.ebuild  5 Jun 2011 08:30:08 -0000
@@ -22,6 +22,11 @@
 DEPEND=""
 RDEPEND=""
 
+src_compile() {
+       export KERNELPATH="${KERNEL_DIR}"
+       linux-mod_src_compile
+}
+
 src_install() {
        linux-mod_src_install
        dodoc README CHANGELOG || die