ports/175684: [patch] emulators/virtualbox-ose-kmod: Fix KMODDIR installation

Ports-bugs

gjbFreeBSDorg
emulators/virtualbox-ose-kmod/Makefile sets KMODDIR to /boot/modules if not set:

 [email protected]:/usr/ports/emulators/virtualbox-ose-kmod # grep ^KMODDIR Makefile
 KMODDIR?=       /boot/modules

However, KMODDIR is always set, even if not explicitly set by the user:

 [email protected]:/usr/ports/emulators/virtualbox-ose-kmod # make -V KMODDIR
 /boot/kernel
 [email protected]:/usr/ports/emulators/virtualbox-ose-kmod # make -C ../qemu -V KMODDIR
 /boot/kernel



The attached patch sets KMODDIR=/boot/modules instead of attempting to set to /boot/modules if not set, otherwise users will experience pain when vbox*.ko disappear after a kernel upgrade.

Patch attached with submission follows:

Index: /usr/ports/emulators/virtualbox-ose-kmod/Makefile
===================================================================
--- /usr/ports/emulators/virtualbox-ose-kmod/Makefile	(revision 311188)
+++ /usr/ports/emulators/virtualbox-ose-kmod/Makefile	(working copy)
@@ -45,7 +45,7 @@
 
 PLIST_SUB+=	KMODDIR=${KMODDIR:C,^/,,}
 
-KMODDIR?=	/boot/modules
+KMODDIR=	/boot/modules
 SRC_BASE?=	/usr/src
 
 VBOX_BIN=	${WRKSRC}/out/${KMK_ARCH}/${KMK_BUILDTYPE}/bin/src


_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[email protected]"
                                            
edwinFreeBSDorg
Synopsis: [patch] emulators/virtualbox-ose-kmod: Fix KMODDIR installation

Responsible-Changed-From-To: freebsd-ports-bugs->vbox
Responsible-Changed-By: edwin

Responsible-Changed-Why: 
Over to maintainer (via the GNATS Auto Assign Tool)

http://www.freebsd.org/cgi/query-pr.cgi?pr=175684
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "[email protected]"