Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2013 15:49:31 GMT
From:      Thomas Steen Rasmussen <thomas@gibfest.dk>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/177202: [PATCH] emulators/virtualbox-ose option to skip building kernel module
Message-ID:  <201303211549.r2LFnVKb054204@red.freebsd.org>
Resent-Message-ID: <201303211550.r2LFo1Jx007789@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177202
>Category:       ports
>Synopsis:       [PATCH] emulators/virtualbox-ose option to skip building kernel module
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 21 15:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Steen Rasmussen
>Release:        FreeBSD 9.1-STABLE amd64 JAIL
>Organization:
>Environment:
FreeBSD vbox.haze.tyknet.dk 9.1-STABLE FreeBSD 9.1-STABLE #1: Sun Mar 17 08:48:35 UTC 2013     root@freebsd.example.com:/usr/obj/usr/src/sys/JAIL  amd64

>Description:
When installing emulators/virtualbox-ose in an ezjail-managed jail which has a readonly base including /boot, the build fails because the kernel module cant be installed.
>How-To-Repeat:
The included patch adds a port option to disable building the kernel module
>Fix:
--- virtualbox-ose.orig/Makefile        2013-03-21 15:21:49.830910154 +0000
+++ virtualbox-ose/Makefile     2013-03-21 15:21:20.868914889 +0000
@@ -26,7 +26,6 @@
 LIB_DEPENDS=   png15:${PORTSDIR}/graphics/png \
                xslt.2:${PORTSDIR}/textproc/libxslt \
                curl.6:${PORTSDIR}/ftp/curl
-RUN_DEPENDS=   ${KMODDIR}/vboxdrv.ko:${PORTSDIR}/emulators/virtualbox-ose-kmod

 WRKSRC=                ${WRKDIR}/VirtualBox-${PORTVERSION}
 ONLY_FOR_ARCHS=        i386 amd64
@@ -56,8 +55,8 @@
 VBOX_FRONTENDS=        VBoxAutostart VBoxHeadless
 VBOX_GUEST_VER=        ${PORTVERSION}

-OPTIONS_DEFINE=        QT4 DEBUG GUESTADDITIONS DBUS PULSEAUDIO UDPTUNNEL VDE VNC WEBSERVICE NLS X11
-OPTIONS_DEFAULT=       QT4 DBUS X11 UDPTUNNEL VNC
+OPTIONS_DEFINE=        QT4 DEBUG GUESTADDITIONS DBUS PULSEAUDIO UDPTUNNEL VDE VNC WEBSERVICE NLS X11 KMOD
+OPTIONS_DEFAULT=       QT4 DBUS X11 UDPTUNNEL VNC KMOD
 DEBUG_DESC=    Debug symbols, additional logs and assertions
 QT4_DESC=      Build with QT4 Frontend
 GUESTADDITIONS_DESC=   Build with Guest Additions
@@ -65,6 +64,7 @@
 VDE_DESC=      Build with VDE support
 VNC_DESC=      Build with VNC support
 WEBSERVICE_DESC=       Build Webservice
+KMOD_DESC=     Build kernel module (disable for readonly /boot)

 .SHELL:                path="/bin/sh" unsetenv=true

@@ -168,6 +168,10 @@
 PLIST_SUB+=    WEB="@comment "
 .endif

+.if ${PORT_OPTIONS:MKMOD}
+RUN_DEPENDS=   ${KMODDIR}/vboxdrv.ko:${PORTSDIR}/emulators/virtualbox-ose-kmod
+.endif
+
 .if ${ARCH} == i386
 KMK_ARCH=      freebsd.x86
 PLIST_SUB+=    I386=""


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201303211549.r2LFnVKb054204>