Sunday, April 13, 2008

mac ports rsync error

Macports failed to install git-core because it failed to fetch rsync.
---> Fetching rsync
---> Attempting to fetch rsync-3.0.0.tar.gz from http://rsync.samba.org/ftp/rsync/
---> Attempting to fetch rsync-3.0.0.tar.gz from http://svn.macports.org/repository/macports/distfiles/rsync---> Attempting to fetch rsync-3.0.0.tar.gz from http://svn.macports.org/repository/macports/distfiles/general/
---> Attempting to fetch rsync-3.0.0.tar.gz from http://svn.macports.org/repository/macports/downloads/rsyncError: Target org.macports.fetch returned: fetch failed
Error: Status 1 encountered during processing.
Can I manually download rsync-3.0.0.tar.gz and continue building?

I actually found there's no rsync-3.0.0.tar.gz on the above url of samba.org. Instead I downloaded rsync-3.0.2.tar.gz.

It also fails to to self update. I suspect it's because it's using the wrong version of rsync to sync with the rsync server of macports.org.

$ sudo port -d selfupdate
rsync: read error: Operation timed out (60)
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-24.1/rsync/io.c(515)
rsync: connection unexpectedly closed (303841 bytes received so far) [generator]
rsync error: error in rsync protocol data stream (code 12) at /SourceCache/rsync/rsync-24.1/rsync/io.c(359)
DEBUG: Couldn't sync the ports tree: Synchronization the local ports tree failed doing rsync
while executing
"macports::selfupdate [array get global_options]"
Error: /opt/local/bin/port: port selfupdate failed: Couldn't sync the ports tree: Synchronization the local ports tree failed doing rsync
I think it's all due to my macports database is too old and thus the port file uses obsolete url to download and build rsync. But rsync is also used to update the mac ports database. Therefore I have to either manually update mac ports so that it can build the newer rsync or manually download and compile rsync to update the mac ports database.

No comments: