Fixing rsync errors

Apple's recent security update to rsync broke my non-clobber Firefox builds. I would get errors like:

rsync -a ../../dist/bin/ ../../dist/DeerParkDebug.app/Contents/MacOS
rsync: delete_file: unlink "/Users/admin/trunk/mozilla/fx-debug-shared-gcc401/dist/DeerParkDebug.app/Contents/MacOS/mangle" failed: Invalid argument (22)
rsync: symlink "/Users/admin/trunk/mozilla/fx-debug-shared-gcc401/dist/DeerParkDebug.app/Contents/MacOS/mangle" -> "/Users/admin/trunk/mozilla/fx-debug-shared-gcc401/nss/mangle" failed: File exists (17)
rsync: delete_file: unlink "/Users/admin/trunk/mozilla/fx-debug-shared-gcc401/dist/DeerParkDebug.app/Contents/MacOS/shlibsign" failed: Invalid argument (22)
rsync: symlink "/Users/admin/trunk/mozilla/fx-debug-shared-gcc401/dist/DeerParkDebug.app/Contents/MacOS/shlibsign" -> "/Users/admin/trunk/mozilla/fx-debug-shared-gcc401/nss/shlibsign" failed: File exists (17)
rsync error: some files could not be transferred (code 23) at /SourceCache/rsync/rsync-23/rsync/main.c(717)

Phil Ringnalda was having the same problem, and pointed out this Fink news item to me. Since I already had Fink installed, I worked around the problem by installing Fink's rsync:

fink selfupdate-cvs
fink update-all
fink install rsync

That required doing a sudo gcc_select 4.0, which in turn required blowing away my Firefox dist directory. (I had switched to GCC 3.3 when I first got the PowerBook because Firefox didn't build reliably under GCC 4 at the time.)

Update 2006-01-13: Apple released another security update todayish, which fixed the problem.

12 Responses to “Fixing rsync errors”

  1. HÃ¥kan Waara Says:

    This was happening to me too; now I finally understand!
    I think we need to post this to MDC or something, to get it more widespread.

  2. HÃ¥kan Waara Says:

    So the minimalistic fix that did it for me was:

    fink install rsync

    The other commands only apply if you want to update your fink binaries to the latest cvs version.

  3. Chris Dolan Says:

    Be aware that Fink’s rsync does not have the HFS+ magic that Apple’s does. That is, Apple’s rsync moves resource forks and extended attributes but Apple’s does not. However, that only matters when syncing Apple to Apple anyway.

  4. lambert strether Says:

    OT, but how the heck does HTML editor work? I’ve got users that would love this…

  5. Jesse Ruderman Says:

    Lambert, just look at the source for http://www.squarefree.com/htmledit/ and http://www.squarefree.com/htmledit/editbox.html .

  6. Jo Hermans Says:

    it’s supposed to be fixed by Security Update 2006-002 (March 13th)

  7. curious Says:

    http://docs.info.apple.com/article.html?artnum=303453

    apple resolved rsync issue in latest security release