Setting X11BASE

Alexander Leidinger Alexander at Leidinger.net
Tue May 22 07:35:28 UTC 2007


Quoting Kris Kennaway <kris at obsecurity.org> (from Mon, 21 May 2007  
14:57:39 -0400):

> On Mon, May 21, 2007 at 11:49:32AM +0200, Alexander Leidinger wrote:
>> Quoting Paul Schmehl <pauls at utdallas.edu> (from Sun, 20 May 2007
>> 16:28:56 -0500):
>>
>> >It would be nice if every port that you use on a headless system didn't
>> >require xorg libraries, but I suppose that's unrealistic.
>>
>> Add this to your make.conf:
>> ---snip---
>> WITHOUT_X11=yes
>> NO_X11=yes        # needed in the past and maybe still needed
>> ---snip---
>>
>> Recompile every port you need which depends upon the x11 libs (e.g. gd
>> and php). Deinstall the x11 ports.
>>
>> Better would be to put this into make.conf before installing any port,
>> this way no x11 libs should be pulled in as a dependency from the
>> beginning.
>
> I think NO_X11 is a NOP.

It should be, but once I stumbled upon this.

> Also WITHOUT_X11 will only disable X support in ports for which it is
> optional.  Many (probably most) ports that require X cannot work
> without it, and if such a port is either specified explicitly or
> pulled in as a dependency then you'll get what you asked for.

Yes, but most of the time the X11 libs are pulled in on a headless  
server because of some dependency you don't need (e.g. php->gd->X11  
for XPM which is not needed if you use PNG; or ghostscript->X11 on a  
printserver where you don't intend to display the postscript before  
printing). In this case WITHOUT_X11 works without a problem (at least  
on those servers I use this).

Bye,
Alexander.

-- 
I have gained this by philosophy:
that I do without being commanded what others
do only from fear of the law.
		-- Aristotle

http://www.Leidinger.net    Alexander @ Leidinger.net: PGP ID = B0063FE7
http://www.FreeBSD.org       netchild @ FreeBSD.org  : PGP ID = 72077137


More information about the freebsd-ports mailing list