[Pkg-virtualbox-devel] Bug#704616: virtualbox-dkms: Fails to build against kernel 3.9-rc5 due to MAX_PRIO being moved

Matthijs Kooijman matthijs at stdin.nl
Wed Apr 3 15:36:25 UTC 2013


Package: virtualbox-dkms
Version: 4.1.18-dfsg-2.1
Severity: normal
Tags: patch

Hi,

the version in experimental contains patches to build with kernel 3.7
and 3.8, but changes in the kernel break building on 3.9 again, because
some defines were moved.

Here's a trivial patch to fix building against 3.9-rc5:

--- a/thread2-r0drv-linux.c
+++ b/thread2-r0drv-linux.c
@@ -34,9 +34,6 @@
 #include <iprt/assert.h>
 #include <iprt/thread.h>
 #include <iprt/err.h>
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,9,0)
+#include <linux/sched/rt.h>
+#endif
 #include "internal/thread.h"
 
 

I haven't tried building against older kernels, but it seems trivial that it
should still work there.

The offending upstream commit is:

commit 8bd75c77b7c6a3954140dd2e20346aef3efe4a35
Author: Clark Williams <williams at redhat.com>
Date:   Thu Feb 7 09:47:07 2013 -0600

    sched/rt: Move rt specific bits into new header file

This commit was first included in 3.9-rc1.

Gr.

Matthijs

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.9.0-rc5 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages virtualbox-dkms depends on:
ii  dkms        2.2.0.3-1.2
ii  dpkg        1.16.9
ii  virtualbox  4.1.18-dfsg-2.1

virtualbox-dkms recommends no packages.

virtualbox-dkms suggests no packages.

-- no debconf information



More information about the Pkg-virtualbox-devel mailing list