cvs commit: ports/emulators/virtualbox Makefile ports/emulators/virtualbox/files patch-configure

Stanislav Sedov stas at deglitch.com
Sat Oct 24 11:19:11 UTC 2009


On Sat, 24 Oct 2009 13:05:41 +0200
Beat Gaetzi <beat at FreeBSD.org> mentioned:

> Stanislav Sedov wrote:
> > On Fri, 23 Oct 2009 14:29:50 +0000 (UTC)
> > Beat Gaetzi <beat at FreeBSD.org> mentioned:
> > \
> >> |  #
> >> |  
> >> |  PORTNAME=	virtualbox
> >> | @@ -76,6 +76,14 @@ KMK_BUILDTYPE=	release
> >> |  KMK_CONFIG=	VBOX_LIBPATH_X11=${LOCALBASE} VBOX_FREEBSD_SRC=${SRC_BASE}/sys
> >> |  KMK_FLAGS=
> >> |  
> >> | +.if defined(WITHOUT_QT4) && !defined(WITHOUT_NLS)
> >> | +BROKEN=		NLS support requires QT4 frontend. Run 'make config' again!
> >> | +.endif
> >> | +
> >> | +.if defined(WITHOUT_X11) && !defined(WITHOUT_QT4)
> >> | +BROKEN=		QT4 frontend requires X11 support. Run 'make config' again!
> >> | +.endif
> >> | +
> > 
> > Why not enforce these required options instead?
> 
> Lets assume a user want to install virtualbox headless on a server. He
> deselect X11 and QT4 support but accidentally select NLS support. If we
> enfore the required options this means we will install all the X11 and
> QT4 dependencies without asking on his server. With the current checks
> the user could decide if he wants to deselect NLS support or add QT4 and
> X11 support.
> 

There's also a possibility to disable NLS in WITHOUT_X11 case as well.
My point it that on the servers one usually have WITHOUT_X11 defined in
/etc/make.conf and build ports in batch mode.  As virtualbox has NLS
enabled by default this commit made default configuration broken for
WITHOUT_X11 case.  You can just give the user a warning about disabling
NLS if it conflicts with the configuration selected and go ahead.

-- 
Stanislav Sedov
ST4096-RIPE
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-ports/attachments/20091024/88de209b/attachment.pgp


More information about the cvs-ports mailing list