[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

RE: [PATCH] Keychain conditions fix-up for Darwin / Python

From: Bert Huijben <bert_at_qqmail.nl>
Date: Wed, 21 Sep 2016 17:34:19 +0200

> -----Original Message-----
> From: Johannes Bornhold [mailto:johannes.bornhold_at_gmail.com]
> Sent: woensdag 21 september 2016 14:41
> To: dev_at_subversion.apache.org
> Subject: [PATCH] Keychain conditions fix-up for Darwin / Python
>
> Hi!
>
> I've made the attached patch to address an issue with the Python bindings
on
> Darwin. The patch itself is attached and details about the problem follow
> below.
>
>
> The problem was noticed when I tried to run the following Python code:
>
> python -c 'import svn.client'
>
>
> In this case Subversion has been configured with the switch "--disable-
> keychain", I assume
> this is triggering the problem.

After some discussion on irc with Johannes and input from a few others I
applied a patch that resolved the problems in r1761755.

The patch is nominated for backport to 1.9.x since r1761757.

Thanks!
        Bert
>
> I am not too deep into C, my best guess is though that a mix of IF
conditions
> was leading into this situation. That's why I unified them for the
keychains. With
> the change applied the the import was working fine again.
>
>
> The error output I was seeing originally was this:
>
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/nix/store/6h83s2gyk8mi7prayji0blcflmrm5rmi-subversion-
> 1.9.4/lib/python2.7/site-packages/svn/client.py", line 26, in <module>
> from libsvn.client import *
> File "/nix/store/6h83s2gyk8mi7prayji0blcflmrm5rmi-subversion-
> 1.9.4/lib/python2.7/site-packages/libsvn/client.py", line 28, in <module>
> _client = swig_import_helper()
> File "/nix/store/6h83s2gyk8mi7prayji0blcflmrm5rmi-subversion-
> 1.9.4/lib/python2.7/site-packages/libsvn/client.py", line 24, in
> swig_import_helper
> _mod = imp.load_module('_client', fp, pathname, description)
> ImportError: dlopen(/nix/store/6h83s2gyk8mi7prayji0blcflmrm5rmi-
> subversion-1.9.4/lib/python2.7/site-packages/libsvn/_client.so, 2): Symbol
not
> found: _svn_auth__get_keychain_simple_provider
> Referenced from: /nix/store/6h83s2gyk8mi7prayji0blcflmrm5rmi-subversion-
> 1.9.4/lib/libsvn_subr-1.0.dylib
> Expected in: flat namespace
> in /nix/store/6h83s2gyk8mi7prayji0blcflmrm5rmi-subversion-
> 1.9.4/lib/libsvn_subr-1.0.dylib
>
>
>
> Cheers, Johannes
>
>
Received on 2016-09-21 17:34:32 CEST

This is an archived mail posted to the Subversion Dev mailing list.