On Fri, 2009-02-06 at 07:27 -0500, Charles Marcus wrote:
> On 2/6/2009 12:17 AM, Matt McCutchen wrote:
> > The attached patch should fix this. Charles, please make sure it works
> > for you. Then, with David Keegel's approval, I will commit it.
>
> I'll be happy to, but if you recall, I'm the one who needed your help
> with a patched version of rsync (the case-insensitive patch)... ;)
>
> But, I'd like to do this myself this time (its about time I learned how
> to do basic patching)...
>
> So... after some googling, I must be missing something... would it
> really be as simple as:
>
> patch -b < fix-test-link-dest.diff
>
> ? Do I have to copy the patch to the directory where the file to be
> patched resides? Or just run the patch command from the directory where
> the patch resides?
>
> Hmmm... looking at the patch, it is patching rsnapshot-program.pl, but
> find doesn't find that file anywhere on my system (gentoo linux)...
The source tree contains the bulk of the code in a file called
"rsnapshot-program.pl". The configure script makes a few small changes
to it to generate "rsnapshot", which can then be installed in /usr/bin .
Thus, the "right" way to apply the patch would be to check out rsnapshot
from CVS:
cvs -d:pserver:anonymous@rsnapshot.cvs.sourceforge.net:/cvsroot/rsnapshot co rsnapshot
apply the patch in that directory, "make rsnapshot", and install the
resulting "rsnapshot" script in your $PATH. But the differences between
"rsnapshot-program.pl" and "rsnapshot" are so minor that you can
probably just apply the patch directly to your /usr/bin/rsnapshot by
explicitly specifying the file to patch:
patch -b /usr/bin/rsnapshot < fix-test-link-dest.diff
(Of course, that would need to run as root unless you make a copy
of /usr/bin/rsnapshot first.)
--
Matt
|