I'm upgrading a system from 6.4 to 7.1 and rebuilding all the ports. I'd rather use packages where present to speed things up a bit so I'm using: # portupgrade -faP The problem is that it never finds the packages as the URL is invalid, there seems to be a missing slash between in ftp.FreeBSD.orgpub fetch: ftp://ftp.FreeBSD.orgpub/FreeBSD/ports/i386/packages-7-stable/All/djbdns-1.05_12.tbz : No address record ** The command returned a non-zero exit status: 1 ** Failed to fetch ftp://ftp.FreeBSD.orgpub/FreeBSD/ports/i386/packages-7-stable/All/djbdns-1.05_12.tbz fetch: ftp://ftp.FreeBSD.orgpub/FreeBSD/ports/i386/packages-7-stable/All/djbdns-1.05_12.tgz : No address record I've got the latest portupgrade. portupgrade-2.4.6,2 Is there somewhere I can specify/fix this path? Regards Gianni
I think you can access that in the ruby program pkg_fetch (/usr/local/sbin/pkg_fetch) in function real_fetch_pkg, i have the following: $pkg_site_uris.each do |uri_base| PKG_SUFFIXES.each do |suffix| uri = uri_base + (subdir + '/' + pkgname + suffix) path = path_base + suffix fetch(uri, path) and return path end end Here probably you lack the '/' -- Michel TALON
On Monday 16 February 2009 12:56:25 am Gianni Doe wrote:> I'm upgrading a system from 6.4 to 7.1 and rebuilding all the ports. > I'd rather use packages where present to speed things up a bit so I'm > using: > # portupgrade -faP > > The problem is that it never finds the packages as the URL is invalid, > there seems to be a missing slash between in ftp.FreeBSD.orgpub > > fetch: > ftp://ftp.FreeBSD.orgpub/FreeBSD/ports/i386/packages-7-stable/All/djbdns-1. >05_12.tbz > > : No address record > > ** The command returned a non-zero exit status: 1 > ** Failed to fetch > ftp://ftp.FreeBSD.orgpub/FreeBSD/ports/i386/packages-7-stable/All/djbdns-1. >05_12.tbz fetch: > ftp://ftp.FreeBSD.orgpub/FreeBSD/ports/i386/packages-7-stable/All/djbdns-1. >05_12.tgz > > : No address record > > I've got the latest portupgrade. > portupgrade-2.4.6,2 > > Is there somewhere I can specify/fix this path?The handbook shows the usage of PACKAGESITE to specify the path. The main difference is that is shows the path to .../Latest/ instead of .../All/ Kent -- kent Stewart Richland, WA http://users.owt.com/kstewart/index.html
Gianni Doe <gdoe6545@yahoo.it> wrote:> I'm upgrading a system from 6.4 to 7.1 and rebuilding all the ports. > I'd rather use packages where present to speed things up a bit so I'm > using: > # portupgrade -faP > > The problem is that it never finds the packages as the URL is invalid, > there seems to be a missing slash between in ftp.FreeBSD.orgpubI created a PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=131775 In the meantime install ruby-1.8.6 which solves the problem. HTH; Helmut -- No Swen today, my love has gone away My mailbox stands for lorn, a symbol of the dawn