From owner-freebsd-questions@FreeBSD.ORG Fri Feb 22 15:30:21 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C53216A41A for ; Fri, 22 Feb 2008 15:30:21 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from smtp3.utdallas.edu (smtp3.utdallas.edu [129.110.10.49]) by mx1.freebsd.org (Postfix) with ESMTP id 67AF213C468 for ; Fri, 22 Feb 2008 15:30:21 +0000 (UTC) (envelope-from pauls@utdallas.edu) Received: from utd59514.utdallas.edu (utd59514.utdallas.edu [129.110.3.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp3.utdallas.edu (Postfix) with ESMTP id D3ED565504 for ; Fri, 22 Feb 2008 09:30:19 -0600 (CST) Date: Fri, 22 Feb 2008 09:30:19 -0600 From: Paul Schmehl To: freebsd-questions@freebsd.org Message-ID: <56A674D3D7DD31DDC580680D@utd59514.utdallas.edu> In-Reply-To: <47be74b1.pGW9HajDXl3VC5wx%perryh@pluto.rain.com> References: <47be74b1.pGW9HajDXl3VC5wx%perryh@pluto.rain.com> X-Mailer: Mulberry/4.0.8 (Linux/x86) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Subject: Re: setting X11BASE X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 Feb 2008 15:30:21 -0000 --On Thursday, February 21, 2008 23:07:29 -0800 perryh@pluto.rain.com wrote: > After updating with portsnap, I am getting an insufficiently-helpful > error message: > > On FreeBSD before 6.2 ports system unfortunately can not set > default X11BASE by itself so please help it a bit by setting > X11BASE=${LOCALBASE} in make.conf. On the other hand, if > you do wish to use non-default X11BASE, please set variable > USE_NONDEFAULT_X11BASE. > > * Am I correct in *guessing* that "make.conf" refers to > /etc/make.conf? > Yes. > * What is the value of LOCALBASE? I'm not finding any > definition, or other reference, in /etc/make.conf. > LOCALBASE is /usr/local unless you've changed it (but then you would already know what it was if you had.) You can find its value in /usr/ports/Mk/ grep "LOCALBASE?=" /usr/ports/Mk/* /usr/ports/Mk/bsd.port.mk:LOCALBASE?= /usr/local > * How do I figure out whether I should set USE_NONDEFAULT_X11BASE? See below. > > * Why does it even need this? The port I am trying to install > ATM (portmaster, to get a handle on the dependency maze) has > nothing to do with X11. > It needs it because there are ports in the x11/xorg system that are dependencies for ports that have nothing to do with a GUI. Libraries are frequently used to incorporate certain functionalities without having to reinvent an already well vetted wheel. > In case it matters, I have not upgraded to the modular Xorg, and > would prefer not to go through all that. "It ain't broke ..." You're going to regret that decision more and more over time. In fact, if you want to stay with the old system, you're probably going to need to put USE_NONDEFAULT_X11BASE?=/usr/X11R6 in your make.conf file to keep your ports from breaking in interesting ways. All the ports are now being built with the assumption that X11BASE==LOCALBASE. Read /usr/ports/UPDATING carefully before proceeding. -- Paul Schmehl (pauls@utdallas.edu) Senior Information Security Analyst The University of Texas at Dallas http://www.utdallas.edu/ir/security/