From owner-freebsd-questions@FreeBSD.ORG Fri Dec 1 12:59:24 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ED9A516A4B3 for ; Fri, 1 Dec 2006 12:59:24 +0000 (UTC) (envelope-from willem.hendriks.reg@xs4all.nl) Received: from smtp-vbr14.xs4all.nl (smtp-vbr14.xs4all.nl [194.109.24.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id 356B643CA5 for ; Fri, 1 Dec 2006 12:59:10 +0000 (GMT) (envelope-from willem.hendriks.reg@xs4all.nl) Received: from [192.168.6.100] (a82-93-0-128.adsl.xs4all.nl [82.93.0.128] (may be forged)) (authenticated bits=0) by smtp-vbr14.xs4all.nl (8.13.8/8.13.8) with ESMTP id kB1CxMoP061634 for ; Fri, 1 Dec 2006 13:59:23 +0100 (CET) (envelope-from willem.hendriks.reg@xs4all.nl) Message-ID: <457026F0.1000200@xs4all.nl> Date: Fri, 01 Dec 2006 13:58:24 +0100 From: Willem Hendriks User-Agent: Thunderbird 1.5.0.8 (X11/20061129) MIME-Version: 1.0 To: FreeBSD mailing list - freebsd-questions References: <20061201074649.9878.GERARD@seibercom.net> In-Reply-To: <20061201074649.9878.GERARD@seibercom.net> X-Enigmail-Version: 0.94.1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by XS4ALL Virus Scanner Subject: Re: portmanager error: Error occurred reading /usr/local/etc/pkgtools.conf - SOLVED 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, 01 Dec 2006 12:59:25 -0000 Gerard wrote: > On Friday December 01, 2006 at 07:18:16 (AM) Willem Hendriks wrote: > > >> When i install any port with portmanager, i get the following error-message: >> >> >> ** Error occured reading /usr/local/etc/pkgtools.conf: >> undefined method `x11base' for nil:NilClass >> ** Error occured reading /usr/local/etc/pkgtools.conf: >> undefined method `x11base' for nil:NilClass >> ... >> >> >> This example was outputted after: portmanager -u, but i see it with >> every install. In pkgtools.conf i indeed see x11base: >> >> >> ... >> AFTERINSTALL = { >> # Re-enable the X wrapper >> 'x11-servers/XFree86-4-Server' => sprintf( >> 'cd %s/bin && if [ -x Xwrapper-4 ]; then ln -sf Xwrapper-4 X; fi', >> x11base()), >> } >> ... >> >> >> When i installed some port (antiword) manually by going to >> /usr/ports/textproc and do a make, make install. I dont see any error >> message at all. When i do a >> >> $ portmanager textproc/antiword >> >> The same error gets by again. My system: >> FreeBSD 6.1-RELEASE with xorg installed and working correctly. dmesg output: >> http://www.xs4all.nl/~whendrik/dmesg > > I use 'portmanager' all the time; however, I do not avail myself of the > pkgtool.conf file, preferring to use the pm-020.conf file instead. > > Are you sure about the syntax of the pkgtools.conf file? Obviously the > problem lies there. You could just try commenting out that section, or > just renaming the file entirely -- portmanager will then ignore it -- > and try rebuilding the port again. > > The files is a standard file which i didn't touched. I did not knew the small importantce of those lines, i commented them out and no more error message..