Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 267377 - PORTAGE_BINHOST with custom FTP-port doesn't work
Summary: PORTAGE_BINHOST with custom FTP-port doesn't work
Status: RESOLVED DUPLICATE of bug 70028
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All All
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-24 20:18 UTC by tonich
Modified: 2013-01-28 22:23 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
patch (against 2.2_rc31) for custom ftp port support (getbinpkg.py-ftp_port_support.patch,664 bytes, patch)
2009-04-24 20:21 UTC, tonich
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description tonich 2009-04-24 20:18:25 UTC
+++ This bug was initially created as a clone of Bug #70028 +++

If specifying a custom port for PORTAGE_BINHOST, I get the following:

Fetching binary packages info...
Traceback (most recent call last):
  File "/usr/bin/emerge", line 2899, in ?
    mydepgraph=depgraph(myaction,myopts)
  File "/usr/bin/emerge", line 866, in __init__
    portage.db["/"]["bintree"].populate(("--getbinpkg" in myopts), ("--getbinpkgonly" in myopts))
  File "/usr/lib/portage/pym/portage.py", line 5647, in populate
    self.remotepkgs = getbinpkg.dir_get_metadata(settings["PORTAGE_BINHOST"], chunk_size=chunk_size)
  File "/usr/lib/portage/pym/getbinpkg.py", line 414, in dir_get_metadata
    conn,protocol,address,params,headers = create_conn(baseurl, conn)
  File "/usr/lib/portage/pym/getbinpkg.py", line 123, in create_conn
    conn = ftplib.FTP(host)
  File "/usr/lib/python2.3/ftplib.py", line 107, in __init__
    self.connect(host)
  File "/usr/lib/python2.3/ftplib.py", line 117, in connect
    for res in socket.getaddrinfo(self.host, self.port, 0, socket.SOCK_STREAM):
socket.gaierror: (-2, 'Name or service not known')
Comment 1 tonich 2009-04-24 20:21:48 UTC
Created attachment 189344 [details, diff]
patch (against 2.2_rc31) for custom ftp port support

all other implemented protocols (http, https, sftp) understand 'host:port' specification
Comment 2 Zac Medico gentoo-dev 2009-04-24 20:36:39 UTC
The traceback shows that you are using the old protocol. In order to use the new protocol, you should adjust PORTAGE_BINHOST so that it points directly at the remote $PKGDIR rather than $PKGDIR/All. There should be a file located at $PORTAGE_BINHOST/Packages, which is required for the new protocol. You may need to run `emaint --fix binhost` on the binhost, in order to ensure that the Packages file is in the correct state.
Comment 3 tonich 2009-04-25 09:15:52 UTC
(In reply to comment #2)
> The traceback shows that you are using the old protocol. In order to use the
> new protocol, you should adjust PORTAGE_BINHOST so that it points directly at
> the remote $PKGDIR rather than $PKGDIR/All. There should be a file located at
> $PORTAGE_BINHOST/Packages, which is required for the new protocol. You may need
> to run `emaint --fix binhost` on the binhost, in order to ensure that the
> Packages file is in the correct state.
> 

description of this bug has been copyed from old bug who i clone to create this new
Comment 4 tonich 2009-04-25 09:59:23 UTC
if old protocol is deprecated then needs print warning about this
Comment 5 SpanKY gentoo-dev 2013-01-28 22:23:48 UTC

*** This bug has been marked as a duplicate of bug 70028 ***