Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 26 May 2009 10:25:55 -0400
From:      "Frank J. Laszlo" <laszlof@freebsd.org>
To:        Florent Thoumie <flz@xbsd.org>
Cc:        Randy Bush <randy@psg.com>, Peter Pentchev <roam@ringlet.net>, ports <freebsd-ports@freebsd.org>
Subject:   Re: make.conf no x option
Message-ID:  <4A1BFBF3.9030103@freebsd.org>
In-Reply-To: <a01628140905260545q149622b9xfbde9fab3c49eef4@mail.gmail.com>
References:  <m2vdnodrq5.wl%randy@psg.com>	<20090526113714.GC1043@straylight.m.ringlet.net>	<m2r5ycdr6c.wl%randy@psg.com>	<20090526120948.GA14134@owl.midgard.homeip.net> <a01628140905260545q149622b9xfbde9fab3c49eef4@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Florent Thoumie wrote:
> On Tue, May 26, 2009 at 1:09 PM, Erik Trulsson <ertr1013@student.uu.se> wrote:
>   
>> On Tue, May 26, 2009 at 08:44:43PM +0900, Randy Bush wrote:
>>     
>>>>> as so many folk build server-only, there must e a make.conf or whatever
>>>>> option to tell ports that you just do not want an x server or any of
>>>>> it's 500kg friends.  but i can not seem to find it.
>>>>>           
>>>> I think you're looking for WITHOUT_X11=yes :)
>>>>         
>>> i have that.  i still get a lot of x with some ports.  i will try to
>>> keep a watch for which ones.
>>>       
>> Well, there are many ports which depend unconditionally upon X.
>> If you install one of them (or some other port which depends on one of them)
>> you will get X, no questions asked.
>>
>> WITHOUT_X11 is useful for those ports which have an optional dependency upon
>> X, but that is all it does.
>>
>>
>> There does not exist any flag which tells the ports-system to refuse to
>> build any ports which depend on X, which seems to be what you want.
>>     
>
> Something like the following would work as a safety net.
>
> --- /usr/ports/Mk/bsd.xorg.mk.orig	2009-05-26 13:42:52.000000000 +0100
> +++ /usr/ports/Mk/bsd.xorg.mk	2009-05-26 13:42:58.000000000 +0100
> @@ -28,6 +28,11 @@
>  # xserver - there's only one atm, I guess everything can fit into the
> port itself
>
>  .if defined(XORG_CAT)
> +
> +. if defined(WITHOUT_X11)
> +IGNORE=		me not want x11
> +. endif
> +
>  # Default variables, common to all new modular xorg ports.
>  .if !defined(USE_TGZ)
>  USE_BZIP2=    	yes
>
>   


You could also just rm the x11-* directories from the ports tree, and 
then set exceptions for csup/cvsup/whatever to not update them. It'll 
generate an error if you try to install any X11 dependent ports, but it 
wont install them ;)

Obviously the above fix is better, but it would need to be tested 
thoroughly before being committed.

Regards,
    Frank Laszlo



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