From owner-freebsd-ports@FreeBSD.ORG Sun May 6 18:59:21 2012 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 6AA0F106566B for ; Sun, 6 May 2012 18:59:21 +0000 (UTC) (envelope-from ml@netfence.it) Received: from cp-out8.libero.it (cp-out8.libero.it [212.52.84.108]) by mx1.freebsd.org (Postfix) with ESMTP id DB64A8FC0A for ; Sun, 6 May 2012 18:59:20 +0000 (UTC) X-CTCH-Spam: Unknown X-CTCH-RefID: str=0001.0A0B0206.4FA6CA01.0104,ss=1,re=0.000,fgs=0 X-libjamoibt: 1555 Received: from soth.ventu (151.41.166.231) by cp-out8.libero.it (8.5.133) id 4F96BDF001C18896; Sun, 6 May 2012 20:59:13 +0200 Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.4/8.14.4) with ESMTP id q46Ix6m8077871; Sun, 6 May 2012 20:59:06 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <4FA6C9FA.1010206@netfence.it> Date: Sun, 06 May 2012 20:59:06 +0200 From: Andrea Venturoli User-Agent: Mozilla/5.0 (X11; FreeBSD i386; rv:12.0) Gecko/20120429 Thunderbird/12.0 MIME-Version: 1.0 To: Bryan Drewery References: <4FA38930.6050501@netfence.it> <4FA3D709.6040509@shatow.net> In-Reply-To: <4FA3D709.6040509@shatow.net> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.73 on 10.1.2.13 Cc: freebsd-ports@freebsd.org Subject: Re: portsdb -U fails 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: Sun, 06 May 2012 18:59:21 -0000 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.