+++ 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')
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
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.
(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
if old protocol is deprecated then needs print warning about this
*** This bug has been marked as a duplicate of bug 70028 ***