diff -Nru virtualbox-lts-xenial-4.3.36-dfsg/debian/changelog virtualbox-lts-xenial-4.3.36-dfsg/debian/changelog --- virtualbox-lts-xenial-4.3.36-dfsg/debian/changelog 2016-05-30 18:07:51.000000000 +0200 +++ virtualbox-lts-xenial-4.3.36-dfsg/debian/changelog 2019-02-28 18:15:52.000000000 +0100 @@ -1,3 +1,11 @@ +virtualbox-lts-xenial (4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1~14.04.5) trusty; urgency=medium + + * debian/patches/fix-compile-for-xenial-kernel.patch + - Fix for LP: #1818049 (virtualbox dkms modules fail to build with + linux 4.4.0-143.169) + + -- Kleber Sacilotto de Souza Thu, 28 Feb 2019 18:14:33 +0100 + virtualbox-lts-xenial (4.3.36-dfsg-1+deb8u1ubuntu1.14.04.1~14.04.4) trusty; urgency=medium * Use lts-xenial stack. Build only guest additions (LP: #1424769). diff -Nru virtualbox-lts-xenial-4.3.36-dfsg/debian/patches/fix-compile-for-xenial-kernel.patch virtualbox-lts-xenial-4.3.36-dfsg/debian/patches/fix-compile-for-xenial-kernel.patch --- virtualbox-lts-xenial-4.3.36-dfsg/debian/patches/fix-compile-for-xenial-kernel.patch 1970-01-01 01:00:00.000000000 +0100 +++ virtualbox-lts-xenial-4.3.36-dfsg/debian/patches/fix-compile-for-xenial-kernel.patch 2019-02-28 18:13:38.000000000 +0100 @@ -0,0 +1,18 @@ +--- a/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c ++++ b/src/VBox/Runtime/r0drv/linux/memobj-r0drv-linux.c +@@ -1033,8 +1033,15 @@ + pTask->mm, /* Whose pages. */ + R3Ptr, /* Where from. */ + cPages, /* How many pages. */ ++# if (LINUX_VERSION_CODE >= KERNEL_VERSION(4, 4, 168)) && \ ++ (LINUX_VERSION_CODE < KERNEL_VERSION(4, 5, 0)) ++ fWrite ? FOLL_WRITE | /* Write to memory. */ ++ FOLL_FORCE /* force write access. */ ++ : 0, ++# else + fWrite, /* Write to memory. */ + fWrite, /* force write access. */ ++# endif + &pMemLnx->apPages[0], /* Page array. */ + papVMAs); /* vmas */ + if (rc == cPages) diff -Nru virtualbox-lts-xenial-4.3.36-dfsg/debian/patches/series virtualbox-lts-xenial-4.3.36-dfsg/debian/patches/series --- virtualbox-lts-xenial-4.3.36-dfsg/debian/patches/series 2016-01-26 11:07:21.000000000 +0100 +++ virtualbox-lts-xenial-4.3.36-dfsg/debian/patches/series 2019-02-28 18:12:43.000000000 +0100 @@ -14,3 +14,4 @@ 32-disable-guest-version-check.patch 35-libvdeplug-soname.patch 36-fix-vnc-version-string.patch +fix-compile-for-xenial-kernel.patch