Bug 177202 - [PATCH] emulators/virtualbox-ose option to skip building kernel module
Summary: [PATCH] emulators/virtualbox-ose option to skip building kernel module
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Tobias Kortkamp
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-21 15:50 UTC by Thomas Steen Rasmussen / Tykling
Modified: 2019-01-27 08:30 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Steen Rasmussen / Tykling 2013-03-21 15:50:00 UTC
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.

Fix: 

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=""--fiLzv2gJRPLUxgu7HgWYkzUv3x7vH7wn8ylwElpbFNM7xBRc
Content-Type: text/plain; name="file.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="file.diff"

--- 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
How-To-Repeat: The included patch adds a port option to disable building the kernel module
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-03-21 15:50:09 UTC
Responsible Changed
From-To: freebsd-ports-bugs->vbox

Over to maintainer (via the GNATS Auto Assign Tool)
Comment 2 Mark Linimon 2013-05-02 23:40:13 UTC
----- Forwarded message from Bernhard Fröhlich <decke@bluelife.at> -----

Date: Fri, 3 May 2013 00:11:36 +0200
From: Bernhard Fröhlich <decke@bluelife.at>
To: freebsd-ports-bugs@freebsd.org
Cc: vbox@freebsd.org
Subject: Re: ports/177202: [PATCH] emulators/virtualbox-ose option to skip
	building kernel module

I've committed a slightly modified version of the patch to our
vbox testing repository.

http://redports.org/changeset/11693

--
Bernhard Fröhlich
http://www.bluelife.at/
_______________________________________________
freebsd-ports-bugs@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports-bugs
To unsubscribe, send any mail to "freebsd-ports-bugs-unsubscribe@freebsd.org"


----- End forwarded message -----
Comment 3 Carlo Strub freebsd_committer freebsd_triage 2014-09-11 19:53:44 UTC
Is this PR still relevant?
Comment 4 Walter Schwarzenfeld freebsd_triage 2018-01-10 20:07:35 UTC
I think this is not relevant anymore.