/[packages]/updates/3/virtualbox/current/SOURCES/VirtualBox-4.1.8-kernelrelease.patch
ViewVC logotype

Contents of /updates/3/virtualbox/current/SOURCES/VirtualBox-4.1.8-kernelrelease.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 416269 - (show annotations) (download)
Tue May 21 22:51:35 2013 UTC (10 years, 11 months ago) by umeabot
File size: 1452 byte(s)
SILENT Branching for Mageia 3
1 diff -Nurp VirtualBox-4.1.8_OSE-p1/src/VBox/HostDrivers/Support/linux/Makefile VirtualBox-4.1.8_OSE-p2/src/VBox/HostDrivers/Support/linux/Makefile
2 --- VirtualBox-4.1.8_OSE-p1/src/VBox/HostDrivers/Support/linux/Makefile 2011-12-19 15:01:06.000000000 +0200
3 +++ VirtualBox-4.1.8_OSE-p2/src/VBox/HostDrivers/Support/linux/Makefile 2011-12-24 15:22:08.487043179 +0200
4 @@ -165,7 +165,7 @@ ifeq ($(KERNELRELEASE),)
5 # kernel base directory
6 ifndef KERN_DIR
7 # build for the current kernel, version check
8 - KERN_DIR := /lib/modules/$(shell uname -r)/build
9 + KERN_DIR := /lib/modules/$(KERNELRELEASE)/build
10 ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
11 KERN_DIR := /usr/src/linux
12 ifneq ($(shell if test -d $(KERN_DIR); then echo yes; fi),yes)
13 @@ -194,7 +194,7 @@ ifeq ($(KERNELRELEASE),)
14 # module install dir, only for current kernel
15 ifneq ($(filter install install_rpm,$(MAKECMDGOALS)),)
16 ifndef MODULE_DIR
17 - MODULE_DIR_TST := /lib/modules/$(shell uname -r)
18 + MODULE_DIR_TST := /lib/modules/$(KERNELRELEASE)
19 ifeq ($(shell if test -d $(MODULE_DIR_TST); then echo yes; fi),yes)
20 MODULE_DIR := $(MODULE_DIR_TST)/misc
21 else
22 @@ -286,7 +286,7 @@ install_rpm: $(MODULE)
23 else # eq ($(MAKECMDGOALS),clean)
24
25 ifndef KERN_DIR
26 - KERN_DIR := /lib/modules/$(shell uname -r)/build
27 + KERN_DIR := /lib/modules/$(KERNELRELEASE)/build
28 ifeq ($(wildcard $(KERN_DIR)/Makefile),)
29 KERN_DIR := /usr/src/linux
30 endif

  ViewVC Help
Powered by ViewVC 1.1.30