Sophie

Sophie

distrib > Mageia > 5 > i586 > media > core-updates-src > by-pkgid > ac544e64de4869d5bda361651df5887b > files > 3

virtualbox-5.0.14-1.mga5.src.rpm

diff -Nurp VirtualBox-4.3.0/src/VBox/HostDrivers/Support/linux/Makefile VirtualBox-4.3.0.p2/src/VBox/HostDrivers/Support/linux/Makefile
--- VirtualBox-4.3.0/src/VBox/HostDrivers/Support/linux/Makefile	2013-10-15 14:12:58.000000000 +0300
+++ VirtualBox-4.3.0.p2/src/VBox/HostDrivers/Support/linux/Makefile	2013-10-15 22:58:49.895199033 +0300
@@ -176,7 +176,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)
@@ -205,7 +205,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
@@ -301,7 +301,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