So I've been playing with the Perl bindings lately, and I've been
having some trouble with the SVN::Client module. When I import it I
get the following error:
$ cat foo.pl
use SVN::Core;
use SVN::Client;
$ perl foo.pl
Usage: svn_client_import(path,url,nonrecursive,ctx,pool); at foo.pl
line 2.
BEGIN failed--compilation aborted at foo.pl line 2.
$
The problem turns out to be in Base.pm. We redefine the 'import'
function so that we set up the perl version of svn_client_import, and
it blows up later on when we try to call the perl import subroutine.
I'm currently using the following hack to work around it, but I'm
pretty sure it's the wrong solution...
Index: Base.pm
===================================================================
--- Base.pm (revision 8017)
+++ Base.pm (working copy)
@@ -76,6 +76,7 @@
elsif (m/(.*)_set$/) {
}
else {
+ if ($_ eq "import") { $_ = "do_import"; }
*{"${caller}::$_"} = ${"SVN::_${pkg}::"}{$name};
}
}
Any thoughts from the Perl gurus out there?
-garrett
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Dec 17 01:59:23 2003