[arch-general] Why does virtualbox-host-dkms have a hard dependency on linux-headers?
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
[rocketmouse@archlinux ~]$ pacman -Qi virtualbox-host-dkms | grep Depends Depends On : dkms gcc make linux-headers That's bad. Now that you mention it, I guess no pacman.conf workaround or empty dummy package would prevent trying to build the modules, it just would prevent installing the headers,that are useless for you.
PS: On Sun, 13 Mar 2016 11:01:30 -0700, Kyle Terrien wrote:
Why
I guess the maintainer tries to make it as comfortable for us as possible. Now all old modules are removed and the modules for all installed kernels are build automatically. This is new, it didn't happen before. Fortunately I'm using linux, linux-rt and linux-rt-lts. The maintainer likely wants to ensure that a default Arch install with the linux package works OOTB. It's bad for you, since you're using the linux-lts package and not the linux package. However, a few days ago somebody sent this request: https://lists.archlinux.org/pipermail/arch-general/2016-March/040862.html
On dim., 2016-03-13 at 19:32 +0100, Ralf Mardorf wrote:
PS:
On Sun, 13 Mar 2016 11:01:30 -0700, Kyle Terrien wrote:
Why
I guess the maintainer tries to make it as comfortable for us as possible.
Yes that was my goal, until we find a way to dep on at least one kernel and its headers installed. See [1]. Note that it pulls the linux-headers but do not build the modules if you don't have the kernel installed. Anyway, that was not a good idea, I will drop that in vbox 5.0.16-3, which will be in the repo in few times. Now there is enough warning (dkms and vbox post_install) that you have to add the headers of your kernel. [1] https://bugs.archlinux.org/task/48498 -- Sébastien "Seblu" Luttringer https://seblu.net | Twitter: @seblu42 GPG: 0x2072D77A
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
Eric Engestrom wrote:
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.
Nope. I only have the LTS kernel installed. linux-headers was pulled in this morning as a dependency. --Kyle $ pacman -Q linux{,-lts}{,-headers} error: package 'linux' was not found linux-headers 4.4.5-1 linux-lts 4.1.19-1 linux-lts-headers 4.1.19-1
Kyle Terrien wrote:
I upgraded my desktop about 10 minutes ago, and it looks like virtualbox-host-dkms gained a new dependency: linux-headers.
As of virtualbox-host-dkms-5.0.16-3, linux-headers is an optional dependency again: $ pacman -Qi virtualbox-host-dkms Name : virtualbox-host-dkms Version : 5.0.16-3 Description : VirtualBox Host kernel modules sources Architecture : x86_64 URL : http://virtualbox.org Licenses : GPL custom Groups : None Provides : None Depends On : dkms gcc make Optional Deps : linux-headers: build modules against Arch kernel linux-lts-headers: build modules against LTS kernel [installed] linux-zen-headers: build modules against ZEN kernel linux-grsec-headers: build modules against GRSEC kernel Required By : virtualbox Optional For : None Conflicts With : virtualbox-source virtualbox-host-source Replaces : virtualbox-source virtualbox-host-source virtualbox-host-modules virtualbox-host-modules-lts Installed Size : 10.23 MiB Packager : Sébastien Luttringer <seblu@seblu.net> Build Date : Sun 13 Mar 2016 01:24:45 PM PDT Install Date : Mon 14 Mar 2016 08:57:17 AM PDT Install Reason : Explicitly installed Install Script : Yes Validated By : Signature --Kyle
participants (4)
-
Eric Engestrom
-
Kyle Terrien
-
Ralf Mardorf
-
Sébastien Luttringer