Subject: | SVN::Mirorr breaks on subversion perl bindings produced by recent swig releases |
The SVN::Mirror tests were failing on FC5 with following error:
TypeError in method 'svn_ra_reporter2_invoke_set_path', argument 6 of
type 'char const *'
There is a Debian bug for this problem,
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=356894. The cause is
that recent versions of swig produce more strict bindings. They were
failing because set_path didn't like the '0' as the fourth argument to
set_path.
The Debian bug produced a patch. I attached the patch I used to fix the
bug and get SVN::Mirror included in Fedora Extras.
Subject: | SVN-Mirror-0.68-swig.patch |
--- SVN-Mirror-0.68.orig/lib/SVN/Mirror/Ra.pm
+++ SVN-Mirror-0.68/lib/SVN/Mirror/Ra.pm
@@ -521,7 +521,7 @@
my $reporter =
$ra->do_update ($rev, $editor->{target} || '', 1, $editor);
my @lock = $SVN::Core::VERSION ge '1.2.0' ? (undef) : ();
- $reporter->set_path ('', $start, @lock, 0);
+ $reporter->set_path ('', $start, @lock, undef);
$reporter->finish_report ();
} else {