Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 499190 - sys-apps/portage-2.2.7: selecting ports is broken when ssh:// sync-uri is used
Summary: sys-apps/portage-2.2.7: selecting ports is broken when ssh:// sync-uri is used
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - External Interaction (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-25 07:11 UTC by Nikoli
Modified: 2014-12-09 12:18 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikoli 2014-01-25 07:11:42 UTC
ssh://ssh-user@192.168.0.1:22/usr/portage

Even above example of rsync over ssh sync-uri from 'man portage' does not work, because emerge is using wrong rsync command:
# ps -C rsync -o cmd --no-headers -ww
rsync --recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --verbose --progress ssh-user@192.168.0.1:22:/usr/portage/metadata/timestamp.chk /tmp/tmpQ3BeX1

Instead of '192.168.0.1:22:/' it should use '192.168.0.1:/' and '-e "ssh -p 22"', see 'grep FETCHCOMMAND_SSH= cnf/make.globals' for example of rsync usage.

Also emerge replaces hostname with ip in rsync command, it breaks support for custom ports in /etc/ssh/ssh_config.