From owner-freebsd-ports@FreeBSD.ORG Tue Oct 7 19:29:26 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7E05106568A for ; Tue, 7 Oct 2008 19:29:26 +0000 (UTC) (envelope-from jankyj@unfs.us) Received: from morbid.purplehat.org (morbid.purplehat.org [206.225.83.29]) by mx1.freebsd.org (Postfix) with ESMTP id A4E388FC13 for ; Tue, 7 Oct 2008 19:29:26 +0000 (UTC) (envelope-from jankyj@unfs.us) Received: from localhost (morbid.purplehat.org [206.225.83.29]) by morbid.purplehat.org (Postfix) with ESMTP id D121C15348C for ; Tue, 7 Oct 2008 12:13:04 -0700 (PDT) Received: from morbid.purplehat.org ([206.225.83.29]) by localhost (morbid.purplehat.org [206.225.83.29]) (amavisd-maia, port 10024) with ESMTP id 21027-07 for ; Tue, 7 Oct 2008 12:13:04 -0700 (PDT) Received: from [137.106.1.175] (mx.outputservices.com [72.54.228.28]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jankyj@unfs.us) by morbid.purplehat.org (Postfix) with ESMTPSA id 0AE79153486 for ; Tue, 7 Oct 2008 12:13:03 -0700 (PDT) Message-ID: <48EBB487.3090706@unfs.us> Date: Tue, 07 Oct 2008 13:12:07 -0600 From: "Janky Jay, III" User-Agent: Thunderbird 2.0.0.17 (X11/20080925) MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <20081007082129.GA32825@holstein.holy.cow> <48EB6635.6040707@gwdg.de> In-Reply-To: <48EB6635.6040707@gwdg.de> X-Enigmail-Version: 0.95.0 OpenPGP: id=46C9667E Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: portupgrade fails - how to fix? X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Oct 2008 19:29:27 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Not sure how well this work as a 'workaround', but, being as I use ZSH as my shell, I always wrap anything I'm specifically upgrading using portupgrade with single quotes. IE: portupgrade -rR 'some-port-2.4.1_1' 'some-other-port-1.0.5_1,3' I haven't had any issues with this at all. Can anyone confirm if specifying the complete port name wrapped in single quotes allows portupgrade to finish successfully? Regards, Janky Jay, III Rainer Hurling wrote: > I have the same trouble with portupgrade some times: > > Am 07.10.2008 10:21 (UTC+1) schrieb Parv: >> Mind that I am looking at the problem purely from a programmer's >> perspective. I am a rather light user of portupgrade (mainly "pkgbd >> -F") & don't upgrade the port itself much. >> >> With that out of the way ... >> >> in message , >> wrote Torfinn Ingolfsen thusly... >>> And here portupgrade fails again, on another machine: >> >> Is your version of portupgrade is the latest in the ports? (So that >> I can install the same & investigate.) >> >> >>> root@kg-work2# portupgrade -R nasm pcre xterm mplayer gscan2pdf >>> ImageMagick >> >> What are the exact names of the ports|packages installed? Many ways >> to list; here is a simple one ... >> >> sh >> pkg_info -Qox nasm pcre xterm mplayer gscan2pdf ImageMagick \ >> | sed -e 's/:/ /' >> # Type exit to exit /bin/sh session; missing here as it might >> # actually exit your actual shell session. >> >> >>> /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:74:in `initialize': : Not >>> in due form: - (ArgumentError) >>> from /usr/local/sbin/portupgrade:614:in `new' >> >> Seems like portupgrade is dying when a port name-version format does >> not match the expected regular expression. Or, the program >> encounters a non-port string. > > I think, Parv is right here. For example in some cases portupgrade > fails, when the port name is not clear enough. I just saw that > 'portupgrade -R gimp' failed, when there are 'gimp-app' and 'gimp' > installed and portupgrade had to find the right port. > > Rainer > > >>> As always, a single port as the argument to portupgrade doesn't >>> fail. >> >> If portupgrade is indeed successful individually for all the above >> listed ports, then the second scenario is more likely (the "non-port >> thing" one). >> >> >> - Parv > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" > -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFI67SGGK3MsUbJZn4RAjNYAJ0ZNy67xbtOLr5z2RI9LewLWHH8fQCeKMeH uptpup+aiMAI+qXqjiDfhsw= =+MDn -----END PGP SIGNATURE-----