rsync readlink failed invalid argument?

Kendall Shaw queshaw at
Wed Dec 13 20:20:16 PST 2006

Thanks. I cleaned MailtoMutt and then got messages about work folders in 
several other ports. So, I cleaned all of them except aqua/NmapFE would 
fail to be cleaned. If I ls -lA the directory, ls prints "invalid 
argument", and shows it without an indication of where the link is 
linked to. Also cd work would print "invalid argumet". So I deleted it 
and selfupdate works now.

Kevin Ballard wrote:
> That's interesting. It looks like rsync is complaining because you have 
> a work directory in your MailtoMutt folder. However, doing a selfupdate 
> should blow away the work directory.
> Try doing a `sudo port clean MailtoMutt` and selfupdating again. See if 
> that fixes it.
> On Dec 13, 2006, at 3:06 PM, Kendall Shaw wrote:
>> I thought I'd check again. Does anyone know what this problem is, or 
>> how to avoid it?
>> Kendall Shaw wrote:
>>> I have macports 1.320. When I self port -d selfupdate it prints:
>>> DEBUG: Rebuilding the MacPorts base system if needed.
>>> Synchronizing from rsync://
>>> receiving file list ... done
>>> rsync: readlink 
>>> "/opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/aqua/MailtoMutt/work" 
>>> failed: Invalid argument (22)
>>> rsync: readlink 
>>> "/opt/local/var/db/dports/sources/rsync.rsync.darwinports.org_dpupdate_dports/aqua/MenuMeters/work" 
>>> failed: Invalid argument (22)
>>> ...
>>> rsync error: some files could not be transferred (code 23) at 
>>> /SourceCache/rsync/rsync-24/rsync/main.c(1161)
>>> DEBUG: Couldn't sync dports tree: sync failed doing rsync
>>>     while executing
>>> "darwinports::selfupdate [array get global_options]"
>>> Error: /opt/local/bin/port: selfupdate failed: Couldn't sync dports 
>>> tree: sync failed doing rsync
>>> Do you know what that means or how to make it stop failing?
> -- 
> Kevin Ballard
> eridius at <mailto:eridius at>
> ------------------------------------------------------------------------
> _______________________________________________
> macports-users mailing list
> macports-users at

More information about the macports-users mailing list