[arch-general] Why does virtualbox-host-dkms have a hard dependency on linux-headers?

Eric Engestrom eric at engestrom.ch
Sun Mar 13 18:45:34 UTC 2016


Hi,

It looks like a mistake (on lines 249 and 276 on the PKGBUILD) was
introduced in commit b79afc2b72b306753b75ec600e1757e77735abf9:
https://projects.archlinux.org/svntogit/community.git/commit/trunk/PKGBUILD?h=packages/virtualbox&id=b79afc2b72b306753b75ec600e1757e77735abf9

I've CC'ed Seblu on this mail, he'll probably fix it when he gets the
time :)

The whole change is a result of the discussion that happened here:
https://lists.archlinux.org/pipermail/arch-general/2016-March/040862.html
Basically, someone complained of a missing dep, and it was explained
that you could have an other kernel than the default one.

Regarding your log, it looks to me like you have both the default and
LTS kernels installed, but only have the source for the LTS, so you're
only building the module for LTS.

Cheers,
Eric


On Sun, Mar 13, 2016 at 11:01:30AM -0700, Kyle Terrien wrote:
> Hello,
> 
> I upgraded my desktop about 10 minutes ago, and it looks like
> virtualbox-host-dkms gained a new dependency: linux-headers.
> 
> On this desktop, I have only the linux-lts kernel and its accompanying
> linux-lts-headers installed, so why is linux-headers necessary?  In the
> pacman -Syu output, it looks like dkms gives up when trying to build
> modules for the linux (4.4) kernel.  However, it still builds the
> modules for linux-lts.
> 
> Why does virtualbox-host-dkms have a hard dependency on linux-headers?
> 
> --Kyle
> 
> [2016-03-13 10:50] [ALPM] running '70-dkms-install.hook'...
> [2016-03-13 10:50] [ALPM-SCRIPTLET] ==> Kernel 4.4.5-1-ARCH modules are missing. Nothing will be done for this kernel!
> [2016-03-13 10:50] [ALPM-SCRIPTLET] ==> You have to install the matching kernel package to use dkms
> [2016-03-13 10:50] [ALPM-SCRIPTLET] 
> [2016-03-13 10:50] [ALPM-SCRIPTLET] Creating symlink /var/lib/dkms/vboxhost/5.0.16_OSE/source ->
> [2016-03-13 10:50] [ALPM-SCRIPTLET]                  /usr/src/vboxhost-5.0.16_OSE
> [2016-03-13 10:50] [ALPM-SCRIPTLET] 
> [2016-03-13 10:50] [ALPM-SCRIPTLET] DKMS: add completed.
> [2016-03-13 10:50] [ALPM-SCRIPTLET] 
> [2016-03-13 10:50] [ALPM-SCRIPTLET] Kernel preparation unnecessary for this kernel.  Skipping...
> [2016-03-13 10:50] [ALPM-SCRIPTLET] 
> [2016-03-13 10:50] [ALPM-SCRIPTLET] Building module:
> [2016-03-13 10:50] [ALPM-SCRIPTLET] cleaning build area...
> [2016-03-13 10:51] [ALPM-SCRIPTLET] make KERNELRELEASE=4.1.19-1-lts -C /usr/lib/modules/4.1.19-1-lts/build M=/var/lib/dkms/vboxhost/5.0.16_OSE/build...............
> [2016-03-13 10:51] [ALPM-SCRIPTLET] cleaning build area...
> [2016-03-13 10:51] [ALPM-SCRIPTLET] Kernel cleanup unnecessary for this kernel.  Skipping...
> [2016-03-13 10:51] [ALPM-SCRIPTLET] 
> [2016-03-13 10:51] [ALPM-SCRIPTLET] DKMS: build completed.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] 
> [2016-03-13 10:51] [ALPM-SCRIPTLET] vboxdrv.ko:
> [2016-03-13 10:51] [ALPM-SCRIPTLET] Running module version sanity check.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] 
> [2016-03-13 10:51] [ALPM-SCRIPTLET] Good news! Module version 5.0.16_OSE for vboxdrv.ko
> [2016-03-13 10:51] [ALPM-SCRIPTLET] exactly matches what is already found in kernel 4.1.19-1-lts.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] DKMS will not replace this module.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] You may override by specifying --force.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] 
> [2016-03-13 10:51] [ALPM-SCRIPTLET] vboxnetflt.ko:
> [2016-03-13 10:51] [ALPM-SCRIPTLET] Running module version sanity check.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] 
> [2016-03-13 10:51] [ALPM-SCRIPTLET] Good news! Module version 5.0.16_OSE for vboxnetflt.ko
> [2016-03-13 10:51] [ALPM-SCRIPTLET] exactly matches what is already found in kernel 4.1.19-1-lts.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] DKMS will not replace this module.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] You may override by specifying --force.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] 
> [2016-03-13 10:51] [ALPM-SCRIPTLET] vboxnetadp.ko:
> [2016-03-13 10:51] [ALPM-SCRIPTLET] Running module version sanity check.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] 
> [2016-03-13 10:51] [ALPM-SCRIPTLET] Good news! Module version 5.0.16_OSE for vboxnetadp.ko
> [2016-03-13 10:51] [ALPM-SCRIPTLET] exactly matches what is already found in kernel 4.1.19-1-lts.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] DKMS will not replace this module.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] You may override by specifying --force.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] 
> [2016-03-13 10:51] [ALPM-SCRIPTLET] vboxpci.ko:
> [2016-03-13 10:51] [ALPM-SCRIPTLET] Running module version sanity check.
> [2016-03-13 10:51] [ALPM-SCRIPTLET]  - Original module
> [2016-03-13 10:51] [ALPM-SCRIPTLET]    - This kernel never originally had a module by this name
> [2016-03-13 10:51] [ALPM-SCRIPTLET]  - Installation
> [2016-03-13 10:51] [ALPM-SCRIPTLET]    - Installing to /usr/lib/modules/4.1.19-1-lts/kernel/misc/
> [2016-03-13 10:51] [ALPM-SCRIPTLET] 
> [2016-03-13 10:51] [ALPM-SCRIPTLET] depmod...
> [2016-03-13 10:51] [ALPM-SCRIPTLET] 
> [2016-03-13 10:51] [ALPM-SCRIPTLET] DKMS: install completed.
> [2016-03-13 10:51] [ALPM-SCRIPTLET] ==> Kernel 4.4.5-1-ARCH modules are missing. Nothing will be done for this kernel!
> [2016-03-13 10:51] [ALPM-SCRIPTLET] ==> You have to install the matching kernel package to use dkms
> 


More information about the arch-general mailing list