Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 488372 - app-emulation/virtualbox-guest-additions builds against /lib/modules/${uname -s}/build instead of /usr/src/linux
Summary: app-emulation/virtualbox-guest-additions builds against /lib/modules/${uname ...
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Lars Wendler (Polynomial-C) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-17 14:35 UTC by Maciej Piechotka
Modified: 2014-08-08 02:48 UTC (History)
2 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Maciej Piechotka 2013-10-17 14:35:43 UTC
This causes problems during pre-reboot module rebuild for new kernel. The workaround is:

 1. Build new kernel
 2. Reboot
 3. Then rebuild modules and load them manually

Which is error-prone.
Comment 1 Ben Kohler gentoo-dev 2013-11-18 19:32:08 UTC
What version does this happen on?  Can you attach the full build log?  I cannot reproduce this on my machines.
Comment 2 Maciej Piechotka 2013-11-21 19:14:49 UTC
(In reply to Ben Kohler from comment #1)
> What version does this happen on?  Can you attach the full build log?  I
> cannot reproduce this on my machines.

Ups. Sorry I meant app-emulation/virtualbox-guest-additions.

In any case - I had troubles with 4.2.something. I could not reproduce on 4.3.
Comment 3 Ben Kohler gentoo-dev 2013-11-23 15:50:47 UTC
# emerge virtualbox-guest-additions

Calculating dependencies... done!

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) app-emulation/virtualbox-guest-additions-4.2.18
 * VirtualBox-4.2.18.tar.bz2 SHA256 SHA512 WHIRLPOOL size ;-) ...        [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     3.10.17-gentoo
>>> Unpacking source...
<SNIP, emerge completes successfully>

# eselect kernel show
Current kernel symlink:
  /usr/src/linux-3.10.17-gentoo

# uname -r
3.12.1-gentoo
# qlist virtualbox-guest-additions | grep modules
/lib/modules/3.10.17-gentoo/misc/vboxguest.ko
/lib/modules/3.10.17-gentoo/misc/vboxsf.ko
#

I still cannot reproduce this issue, can you reproduce it now?  Are you doing something like setting KBUILD_OUTPUT to build out of the main source dir?