Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23657 - subversion ebuild installs part of the pythons binding in the wrong path
Summary: subversion ebuild installs part of the pythons binding in the wrong path
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Paul de Vrieze (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-06-28 15:25 UTC by Alessandro Pisani
Modified: 2003-07-15 02:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alessandro Pisani 2003-06-28 15:25:23 UTC
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
Comment 1 Alessandro Pisani 2003-06-29 03:03:11 UTC
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
Comment 2 Alessandro Pisani 2003-07-06 23:46:26 UTC
anyone out there fixing this?
Comment 3 Paul de Vrieze (RETIRED) gentoo-dev 2003-07-15 02:42:35 UTC
Thanks, I hadn't noticed it. Something must have changed upstream.