Re: portsnap - broken metadata

2010-02-03 Thread Angelin Lalev
On Sat, Jan 23, 2010 at 9:52 AM, Angelin Lalev lalev.ange...@gmail.com wrote:
 Greetings,
 I believe I have broken the metainformation folders of portsnap.
 How to fix them?

 ironholm# rm -rf /var/db/portsnap/
 ironholm# mkdir /var/db/portsnap
 ironholm# portsnap fetch
 Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
 Fetching public key from portsnap2.FreeBSD.org... done.
 Fetching snapshot tag from portsnap2.FreeBSD.org... done.
 Fetching snapshot metadata... done.
 Fetching snapshot generated at Sat Jan 23 01:17:43 UTC 2010:
 8161b7b0a3b6b42453659f19197bfcc324b0a54b57dc29100% of   61 MB  249 kBps 00m00s
 Extracting snapshot... done.
 Verifying snapshot integrity... done.
 Fetching snapshot tag from portsnap2.FreeBSD.org... done.
 Fetching snapshot metadata... done.
 Updating from Sat Jan 23 01:17:43 UTC 2010 to Sat Jan 23 08:00:35 UTC 2010.
 Fetching 4 metadata patches. done.
 Applying metadata patches... done.
 Fetching 4 metadata files... /usr/sbin/portsnap: cannot open
 bd5906dc86367765516942be65b56170d979598ac1325709aa83e67efec39d6d.gz:
 No such file or directory
 metadata is corrupt.
 ironholm#


I have some additional details:

I have proxy server that requires username and password and I have set
the HTTP_PROXY and FTP_PROXY environment variables accordingly.
(HTTP_PROXY = FTP_PROXY =
USERNAME:passw...@proxy.uni-svishtov.bg:8080)

portsnap --debug shows, among other rows the following error message:

phttpget: host = USERNAME, port = passw...@proxy.uni-svishtov.bg:8080:
servname not
 supported for ai_socktype

Seems to me like a bug somewhere in portsnap. Any help?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: portsnap - broken metadata

2010-02-03 Thread RW
On Wed, 3 Feb 2010 12:20:53 +
Angelin Lalev lalev.ange...@gmail.com wrote:


 I have proxy server that requires username and password and I have set
 the HTTP_PROXY and FTP_PROXY environment variables accordingly.
 (HTTP_PROXY = FTP_PROXY =
 USERNAME:passw...@proxy.uni-svishtov.bg:8080)
 
 portsnap --debug shows, among other rows the following error message:
 
 phttpget: host = USERNAME, port = passw...@proxy.uni-svishtov.bg:8080:
 servname not
  supported for ai_socktype
 
 Seems to me like a bug somewhere in portsnap. Any help?

It looks to be a bug in phttpget, which is a download utility
used by portsnap and freebsd-update. It supports pipelining, so
it's very fast at fetching a large number of small files, but in all
other respects it simpler and less mature than fetch.

As temporary workaround I would suggest you backup portsnap and change
the line:

PHTTPGET=/usr/libexec/phttpget

to 

PHTTPGET=/usr/bin/fetch

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: portsnap - broken metadata

2010-02-03 Thread RW
On Wed, 3 Feb 2010 13:22:59 +
RW rwmailli...@googlemail.com wrote:

 On Wed, 3 Feb 2010 12:20:53 +
 Angelin Lalev lalev.ange...@gmail.com wrote:
 
 
  I have proxy server that requires username and password and I have
  set the HTTP_PROXY and FTP_PROXY environment variables accordingly.
  (HTTP_PROXY = FTP_PROXY =
  USERNAME:passw...@proxy.uni-svishtov.bg:8080)
  
  portsnap --debug shows, among other rows the following error
  message:
  
  phttpget: host = USERNAME, port =
  passw...@proxy.uni-svishtov.bg:8080: servname not
   supported for ai_socktype
  
  Seems to me like a bug somewhere in portsnap. Any help?
 
 It looks to be a bug in phttpget, which is a download utility
 used by portsnap and freebsd-update. It supports pipelining, so
 it's very fast at fetching a large number of small files, but in all
 other respects it simpler and less mature than fetch.
 
 As temporary workaround I would suggest you backup portsnap and change
 the line:
 
 PHTTPGET=/usr/libexec/phttpget
 
 to 
 
 PHTTPGET=/usr/bin/fetch

I see that isn't going to work since phttpget needs it's arguments in
the form 

phttpget server file1 file2 ... fileN

you'd need to wrap fetch if you want to try that.

Anyway, I've CC'd Colin Percival which I forgot to do before, and I
suggest you open a PR.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


portsnap - broken metadata

2010-01-23 Thread Angelin Lalev
Greetings,
I believe I have broken the metainformation folders of portsnap.
How to fix them?

ironholm# rm -rf /var/db/portsnap/
ironholm# mkdir /var/db/portsnap
ironholm# portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... 3 mirrors found.
Fetching public key from portsnap2.FreeBSD.org... done.
Fetching snapshot tag from portsnap2.FreeBSD.org... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Sat Jan 23 01:17:43 UTC 2010:
8161b7b0a3b6b42453659f19197bfcc324b0a54b57dc29100% of   61 MB  249 kBps 00m00s
Extracting snapshot... done.
Verifying snapshot integrity... done.
Fetching snapshot tag from portsnap2.FreeBSD.org... done.
Fetching snapshot metadata... done.
Updating from Sat Jan 23 01:17:43 UTC 2010 to Sat Jan 23 08:00:35 UTC 2010.
Fetching 4 metadata patches. done.
Applying metadata patches... done.
Fetching 4 metadata files... /usr/sbin/portsnap: cannot open
bd5906dc86367765516942be65b56170d979598ac1325709aa83e67efec39d6d.gz:
No such file or directory
metadata is corrupt.
ironholm#
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org