Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 04 May 2012 08:18:01 -0500
From:      Bryan Drewery <bryan@shatow.net>
To:        Andrea Venturoli <ml@netfence.it>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: portsdb -U fails
Message-ID:  <4FA3D709.6040509@shatow.net>
In-Reply-To: <4FA38930.6050501@netfence.it>
References:  <4FA38930.6050501@netfence.it>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On 5/4/2012 2:45 AM, Andrea Venturoli wrote:
> Hello.
> I know portupgrade is somewhat deprecated, but...

Portupgrade is currently supported by me at http://pkgtools.github.com

> 
> On several boxes I get the following:
>> # portsdb -U
>> Updating the ports index ... Generating INDEX.tmp - please wait.. Done.
>> portsdb: can't convert nil into String

I was going to suggest updating your ports tree, but I just tried that
and it's failing still.

Unless you've modified your ports or added extra dependencies, you can
just fetch the index with: portsdb -FU.

If you use portsnap(8), you'll get the INDEX updated automatically as well.

The have portupgrade read the index with portsdb -u

> 
> 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

You can also run 'make index' in /usr/ports and see if it fails.

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.

> 
> The boxes are 7.4/8.2 i386/amd64 with different versions of ruby and bdb
> backend.
> 
> Maybe some port has some invalid value and I might just exclude it as a
> temporary fix... but which one is it?
> 
>  bye & Thanks
>     av.


Regards,
Bryan Drewery

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJPo9cIAAoJEG54KsA8mwz5ulkQALMScCqCSLoWpYRbmvhpQNqO
H6OwcODX9HDnQvTvcnro/djyzHjvspCoPne9XidvbcUQs/VFWBG1QrsQUrUXEYZ+
wUJvMaD0Z74rY3xQDsdheuyqtz5CZsSveac2iIu8Bd8kH9q0ReGPT+AC4mm5havx
pMT1Sb/vEKHW/CTDP4hjw9LVANpIlwFp+M6m/RdvAGxREH5LvmH22+AVTj98YLX5
Vr+INU4LrexEPLkcHNLkiUraLpkJPw4BF4CsDucZvHopSV5TM18J11JUYo9V1Hev
Ul/Zjmm7TXkG32jMbkXYODMCFLCbJ6CELjmSkDNmSDlwr0U+OZDeKW3F/PHdue4X
GzlbRRx+f0lhDjwizfs5U7xTXwHGpA7Z/Z7Yw12zcyuxxL4T29fQbZ8SkwVjpTBw
yXFQH5jbl8Ifufhb0fh4IOSaFczsTZ10TUVBPztOMdsDwpBd4wEL1xD0/ydxTZtA
Cg/SM5/u/6c2DoDiArViZ1p/ZTQ63pp0/c1q87AcI/tzbSpAA16KLAePd3xj63e1
y+0+EbZK8ov+cjryxiub+EAUk5MAyAwX36wRM+YG6EsZCSxdXSumnTTOJd5PgRpX
2crCxyQwTUIIOuYsjKsdhPwuOxqNvDkj6ls+HPcoUP15RzhpUIcQafACUZtSxYqe
3TMeGUxWDjprINXrGsCt
=7yTB
-----END PGP SIGNATURE-----



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