LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   How to build rdiff-backup from a git clone. (https://www.linuxquestions.org/questions/linux-software-2/how-to-build-rdiff-backup-from-a-git-clone-4175586050/)

Rinndalir 08-01-2016 07:05 PM

How to build rdiff-backup from a git clone.
 
Anyone know how to build rdiff-backup from a git clone?

librsync is in non-standard location but it seems that the build is just broken.

I tried python setup.py install but that fails when it can't find rdiff_backup. setup.py is in dist/ and rdiff_backup is at the same level as dist/.

Rinndalir 08-01-2016 07:46 PM

I found out the rdiff-backup is not compatible with the latest librsync.

notKlaatu 08-01-2016 08:03 PM

You can install librsync 0.9.7 from sourceforge and use it with rdiff-backup, unless there were features you specifically need in librsync 2.x

Rinndalir 08-01-2016 08:34 PM

Quote:

Originally Posted by notKlaatu
unless there were features you specifically need in librsync 2.x

As far as I know there are no features in 2.x that I need but I found that I just had to patch one file so things would compile.

The call to rs_sig_begin need to use the new three parameter form.

rdiff_backup/_librsyncmodule.c

Code:

sm->sig_job = rs_sig_begin((size_t)blocklen,(size_t)8, RS_MD4_SIG_MAGIC);
Now it all works.
I have always liked rsync so I like that rdiff_backup makes use of the technology. Binary diff is a nice thing.


All times are GMT -5. The time now is 09:43 AM.