make.conf no x option

Frank J. Laszlo laszlof at freebsd.org
Tue May 26 14:26:17 UTC 2009


Florent Thoumie wrote:
> On Tue, May 26, 2009 at 1:09 PM, Erik Trulsson <ertr1013 at 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


More information about the freebsd-ports mailing list