emerging subversion-0.24.x with the python use flag enable will install subversion's python binding, used by viewcvs and some other programs. problem is that libsvn is installed in /usr/lib/svn-python instead of /usr/lib/python-x.y/site-packages. this will cause the import svn.repos command in the python command line to give the following error: ython 2.2.2 (#1, May 27 2003, 16:14:10) [GCC 3.2.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import svn.repos Traceback (most recent call last): File "<stdin>", line 1, in ? File "/usr/lib/python2.2/site-packages/svn/repos.py", line 17, in ? from libsvn.repos import * ImportError: No module named libsvn.repos >>> solution: a) install libsvn in /usr/lib/python-x.y/site-packages too or b) make a symlink /usr/lib/python-x.y/site-packages/libsvn -> /usr/lib/svn-python/libsvn bye, alessandro Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: error on python import Expected Results: successful execution
fix for 0.24.x ebuilds: # move python bindings mkdir -p ${D}/usr/lib/python2.2/site-packages cp -r tools/cvs2svn/rcsparse ${D}/usr/lib/python2.2/site-packages mv ${D}/usr/lib/svn-python/svn ${D}/usr/lib/python2.2/site-packages +mv ${D}/usr/lib/svn-python/libsvn ${D}/usr/lib/python2.2/site-packages rmdir ${D}/usr/lib/svn-python fi fi dodoc BUGS COMMITTERS COPYING HACKING IDEAS INSTALL PORTING README
anyone out there fixing this?
Thanks, I hadn't noticed it. Something must have changed upstream.