Date: Sun, 06 May 2012 20:59:06 +0200 From: Andrea Venturoli <ml@netfence.it> To: Bryan Drewery <bryan@shatow.net> Cc: freebsd-ports@freebsd.org Subject: Re: portsdb -U fails Message-ID: <4FA6C9FA.1010206@netfence.it> In-Reply-To: <4FA3D709.6040509@shatow.net> References: <4FA38930.6050501@netfence.it> <4FA3D709.6040509@shatow.net>
next in thread | previous in thread | raw e-mail | index | archive | help
On 05/04/12 15:18, Bryan Drewery wrote: > Portupgrade is currently supported by me at http://pkgtools.github.com Well... Many thanks for that!!! > You can also run 'make index' in /usr/ports and see if it fails. # cd /usr/ports/ # make index Generating INDEX-7 - please wait..Warning: Duplicate INDEX entry: p5-libapreq2-2.13_2 Done. golia# cd /usr/ports/ golia# make search name=p5-libapreq2 Port: p5-libapreq2-2.13_2 Path: /usr/ports/www/p5-libapreq2 Info: Generic Apache2 Request Library Maint: apache@FreeBSD.org B-deps: ap22-mod_perl2-2.0.5_1,3 apache-2.2.22_5 apr-devrandom-gdbm-db42-1.4.5.1.3.12_1 autoconf-2.68 autoconf-wrapper-20101119 db42-4.2.52_5 expat-2.0.1_2 gdbm-1.9.1 gettext-0.18.1.1 gmake-3.82 libiconv-1.14 libtool-2.4.2 m4-1.4.16,1 openssl-1.0.1_1 p5-BSD-Resource-1.2904 p5-ExtUtils-XSBuilder-0.28_1 p5-Parse-RecDescent-1.965.001 p5-Tie-IxHash-1.22 pcre-8.30_2 perl-5.12.4_4 R-deps: ap22-mod_perl2-2.0.5_1,3 apache-2.2.22_5 apr-devrandom-gdbm-db42-1.4.5.1.3.12_1 db42-4.2.52_5 expat-2.0.1_2 gdbm-1.9.1 libiconv-1.14 openssl-1.0.1_1 p5-BSD-Resource-1.2904 p5-ExtUtils-XSBuilder-0.28_1 p5-Parse-RecDescent-1.965.001 p5-Tie-IxHash-1.22 pcre-8.30_2 perl-5.12.4_4 WWW: http://httpd.apache.org/apreq/ So, I only get a warning... Can't tell what that's about, since I only get one port... Deleting that port doesn't solve, anyway, so this does not seem to be the cause. >> Is there any way I can debug this? > > Yes, open up /usr/local/sbin/portsdb, go to line 205 and remove these > lines: > > rescue => e > STDERR.puts "#{MYNAME}: #{e}" > exit 1 Not much help: # portsdb -Uu Updating the ports index ... Generating INDEX.tmp - please wait..Warning: Duplicate INDEX entry: p5-libapreq2-2.13_2 Done. /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:430:in `system': can't convert nil into String (TypeError) from /usr/local/lib/ruby/site_ruby/1.8/portsdb.rb:430:in `update' from /usr/local/sbin/portsdb:159:in `main' from /usr/local/lib/ruby/1.8/optparse.rb:791:in `initialize' from /usr/local/sbin/portsdb:68:in `new' from /usr/local/sbin/portsdb:68:in `main' from /usr/local/sbin/portsdb:214 > Unless you've modified your ports or added extra dependencies, you can > just fetch the index with: portsdb -FU. I'm going this way for now. > I've logged this failure upstream at > https://github.com/pkgtools/pkgtools/issues/27 > > If you figure anything further out, before I fix it, please let me know. I'd gladly help. The way to go, IMHO,is to get additional logging; unfortunately I know nothing about Ruby. bye & Thanks av.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FA6C9FA.1010206>