Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Apr 2009 11:35:06 -0700
From:      Kent Stewart <kstewart@owt.com>
To:        freebsd-ports@freebsd.org
Cc:        utisoft@gmail.com, Parv <parv@pair.com>
Subject:   Re: Portupgrade still broken?
Message-ID:  <200904091135.06329.kstewart@owt.com>
In-Reply-To: <20090409163749.GA6149@holstein.holy.cow>
References:  <b79ecaef0904080551x74c80227h1a4ba5d2adcca905@mail.gmail.com> <20090409163749.GA6149@holstein.holy.cow>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 09 April 2009 09:37:49 am Parv wrote:
> in message <b79ecaef0904080551x74c80227h1a4ba5d2adcca905@mail.gmail.com>,
> wrote Chris Rees thusly...
>
> > I recall from
> > http://lists.freebsd.org/pipermail/freebsd-ports/2008-March/047319.html
> > that there was a bug in portupgrade last year, causing it to break when a
> > port is recursively (-R) upgraded; it's surfacing for me
> > too :(
> >
> > [chris@amnesiac]/usr/ports/ports-mgmt/portupgrade% portupgrade --version
> > portupgrade 2.4.6
> >
> > Is this a 'fixed' version, or not? I think it's the most recent...
> >
> > [chris@amnesiac]/usr/ports/ports-mgmt/portupgrade% sudo portupgrade
> > -rR emacs xterm curl php5-mbstring
> > otp-md5 488 am9338 ext
> > Password:
> > [Updating the pkgdb <format:bdb_btree> in /var/db/pkg ... - 263
> > packages found (-3 +3) (...)... done]
> > [Gathering depends for editors/emacs
> > .........................................................................
> >..........................................................................
> >..........................................................................
> >..........................................................................
> > done]
> > [Exclude up-to-date packages
> > .........................................................................
> >.............. done]
> > /usr/local/lib/ruby/site_ruby/1.8/pkginfo.rb:74:in `initialize': : Not
> > in due form: <name>-<version> (ArgumentError)
> >         from /usr/local/sbin/portupgrade:614:in `new'
> >         from /usr/local/sbin/portupgrade:614:in `main'
>
> ...
>
> Does this Perl (5.8 & onwards) program ...
>
>   http://www103.pair.com/parv/comp/src/perl/check-portupgrade-00
>
>
> ... produces anything when run *without any arguments*?

It doesn't produce any messages.

>
> Purpose of the program is to find a port name (based on directory
> name in /var/db/pkg) which fails to match the regular expression
> /^(.+)-([^-]+)$/ used in pkginfo.rb, among other files of
> portupgrade.
>
> If the Perl program is run with any arguments, then a sorted list of
> matched names will be printed, something like ...
>
>                 aalib-1.4.r5_4 : aalib             1.4.r5_4
>              acroread8-8.1.2_2 : acroread8         8.1.2_2
>   acroreadwrapper-0.0.20080906 : acroreadwrapper   0.0.20080906
>                      agg-2.5_5 : agg               2.5_5
>             aircrack-ng-1.0.r1 : aircrack-ng       1.0.r1
>                 amspsfnt-1.0_5 : amspsfnt          1.0_5
>   ...
>

"check-portupgrade p5" produced a list of 632 names, which is about what I 
have installed. 

I ran "portupgrade -rR libxcb" recently and it failed with the same pkginfo.rb 
error you are listing.

Kent

-- 
kent Stewart
Richland, WA

http://users.owt.com/kstewart/index.html




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