On Fri, May 7, 2010 at 12:03 PM, Jean-Francois Malouin
<[email protected]> wrote:
> Dustin, educate me please!
> How do I proceed with the git patches and
> how do I patch the source on my side?

First, if you click on each of those commits in github, you'll have URLs like

http://github.com/djmitche/amanda/commit/29f7aee9b0ecb9cb7ec6d0b2faa17ecde3168e95

and you can add a .patch to the end to get a regular old patch file.
Fetch that with wget or whatever you'd like.  I just re-pushed to that
branch with a single patch, so that should make things easier for you.

I don't recall what OS you're using, or how you're installing Amanda.
If it's from a source tarball, you should be able to just apply the
patches:
  patch -p1 < /path/to/patch.patch

if you need to rebuild a package, things are a little bit trickier.
Basically, you should get the beta2 tarball, apply the patch as above,
and then run ./packaging/$flavor/buildpkg, where $flavor is the
appropriate flavor for your operating system (rpm, deb, ..).  This
should Just Work, but of course it's tricky and won't always be
effective.

The trickiest, but in the end easiest, solution is to patch the
robot.pm and rait.pm files in place.  This omits the manpage update
and the changes to the RAIT device, but neither of those are critical
to fixing the bugs you've encountered.  Edit out the appropriate
sections of the patch for each of those two files, and then use

  patch < /path/to/robot.pm.patch

patch should then say it can't find robot.pm, and you can give the
path to it (/usr/lib/amanda/perl/Amanda/Changer/robot.pm, maybe -
depends on your OS).

If you're on Solaris, you may want to use gpatch - Sun's patch is awful.

Dustin

-- 
Open Source Storage Engineer
http://www.zmanda.com

Reply via email to