Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 May 2002 11:55:48 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        Chris Dempsey <chrisdempsey@yahoo.com>
Cc:        freebsd-ports@freebsd.org, freebsd-stable@freebsd.org, knu@freebsd.org
Subject:   Re: Error in Portupgrade 
Message-ID:  <20020513185548.0B6545D06@ptavv.es.net>
In-Reply-To: Your message of "Mon, 13 May 2002 11:20:59 PDT." <20020513182059.28142.qmail@web13405.mail.yahoo.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Date: Mon, 13 May 2002 11:20:59 -0700 (PDT)
> From: Chris Dempsey <chrisdempsey@yahoo.com>
> Sender: owner-freebsd-stable@FreeBSD.ORG
> 
> I rm -rf /usr/ports/sysutils/portupgrade, cvsup'd, and
> successfully make install clean portupgrade.
> 
> portupgrade-20020429    =   up-to-date with port
> 
> Problem is, when I use it, I get:
> 
> usr/ports/sysutils/portupgrade # portupgrade -a
> ** Error occured reading /usr/local/etc/pkgtools.conf:
>         undefined method `+' for nil
> 
> When I run:
> /usr/local/bin/ruby /usr/local/etc/pkgtools.conf
> /usr/local/etc/pkgtools.conf:89: undefined method `+'
> for nil (NameError)

Edit /usr/local/etc/pkgtools.conf to:
@@ -86,6 +86,8 @@
   #   ENV['PKG_FETCH'] = 'false'	# never fetch packages from a remote site
   #   ENV['PACKAGEROOT'] = 'ftp://ftpN.XX.FreeBSD.org'
 
+  ENV['PORTSDIR'] ||= '/usr/ports'
+  ENV['PACKAGES'] ||= ENV['PORTSDIR'] + '/packages'
   ENV['PKG_PATH'] ||= ENV['PACKAGES'] + '/All'
 
   # SANITY_CHECK: boolean (default: true)

You can see this in pgktools.conf.sample.

R. Kevin Oberman, Network Engineer
Energy Sciences Network (ESnet)
Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab)
E-mail: oberman@es.net			Phone: +1 510 486-8634

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




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