Sophie

Sophie

distrib > Mageia > 5 > x86_64 > media > core-updates-src > by-pkgid > 9c90fbc038ca28f1c22e1c232e9b8a44 > files > 10

virtualbox-5.1.2-1.mga5.src.rpm

diff -Nurp VirtualBox-5.1.0/src/VBox/HostDrivers/Support/linux/Makefile VirtualBox-5.1.0.p2/src/VBox/HostDrivers/Support/linux/Makefile
--- VirtualBox-5.1.0/src/VBox/HostDrivers/Support/linux/Makefile	2016-07-12 17:54:18.000000000 +0300
+++ VirtualBox-5.1.0.p2/src/VBox/HostDrivers/Support/linux/Makefile	2016-07-13 00:41:28.936640357 +0300
@@ -178,7 +178,7 @@ ifeq ($(KERNELRELEASE),)
  # kernel base directory
  ifndef KERN_DIR
   # build for the current kernel, version check
-  KERN_DIR := /lib/modules/$(shell uname -r)/build
+  KERN_DIR := /lib/modules/$(KERNELRELEASE)/build
   ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
    KERN_DIR := /usr/src/linux
    ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
@@ -207,7 +207,7 @@ ifeq ($(KERNELRELEASE),)
  # module install dir, only for current kernel
  ifneq ($(filter install install_rpm,$(MAKECMDGOALS)),)
   ifndef MODULE_DIR
-   MODULE_DIR_TST := /lib/modules/$(shell uname -r)
+   MODULE_DIR_TST := /lib/modules/$(KERNELRELEASE)
    ifeq ($(shell if test -d $(MODULE_DIR_TST); then echo yes; fi),yes)
     MODULE_DIR := $(MODULE_DIR_TST)/misc
    else
@@ -315,7 +315,7 @@ install_rpm: $(MODULE)
 else # eq ($(MAKECMDGOALS),clean)
 
  ifndef KERN_DIR
-  KERN_DIR := /lib/modules/$(shell uname -r)/build
+  KERN_DIR := /lib/modules/$(KERNELRELEASE)/build
   ifeq ($(wildcard $(KERN_DIR)/Makefile),)
    KERN_DIR := /usr/src/linux
   endif