Upgrading to subversion 0.35.1 fails with a message about subversino python bindings failed. Reproducible: Always Steps to Reproduce: 1.SVN_DUMPED=1 emerge -u subversion Actual Results: Emerge failed. Expected Results: Successfully upgrade for subversion. SVN_DUMPED=1 emerge -u subversion ... /var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1143: error: `PyObject' undeclared (first use in this function) /var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1143: error: `function' undeclared (first use in this function) /var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1144: error: `result' undeclared (first use in this function) /var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1147: error: `Py_None' undeclared (first use in this function) /var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c: In function `svn_swig_py_thunk_log_receiver': /var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1177: error: `PyObject' undeclared (first use in this function) /var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1177: error: `receiver' undeclared (first use in this function) /var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1178: error: `result' undeclared (first use in this function) /var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1180: error: `chpaths' undeclared (first use in this function) /var/tmp/portage/subversion-0.35.1/work/subversion-0.35.1/subversion/bindings/swig/swigutil_py.c:1183: error: `Py_None' undeclared (first use in this function) make: *** [subversion/bindings/swig/swigutil_py.lo] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-util/subversion-0.35.1 failed. !!! Function src_compile, Line 117, Exitcode 2 !!! subversion python bindings failed
I get the same result here. I'm with ACCEPT_KEYWORDS="~x86", and not using apache2. Emerged python 2.3 and using last portage (2.0.49-r18) Hope this can help in anyway. If there anything I can try, please let me know.
Make sure that all python libs are upgraded by following the python upgrade path. This update should also include swig. Remerge swig and try again.
all python libs upgraded, remerged swig, and still not working.
Remerged python and swig with same result. root # SVN_DUMPED=1 emerge python swig subversion .... make: *** [subversion/bindings/swig/swigutil_py.lo] Error 1 make: *** Waiting for unfinished jobs.... !!! ERROR: dev-util/subversion-0.35.1 failed. !!! Function src_compile, Line 117, Exitcode 2 !!! subversion python bindings failed
Could you attach a full log of the subversion build
Created attachment 22751 [details] The emerge errors As requested. The stderr of the emerge.
Could you next time also send the stdout, preferably by: SVN_DUMPED=1 emerge subversion &>log& For now, could you post the results of locate Python.h and the output of python-config
Created attachment 22757 [details] The stdout for the emerge failure. Here's the corresponding stdout
Added the corresponding stdout for you. It was generated at the same time as the error log with: # SVN_DUMPED=1 emerge subversion > ./sub.log 2> ./sub.err # locate Python.h /usr/include/python2.2/Python.h /usr/include/python2.3/Python.h # python-config -lpython2.3 -lm -L/usr/lib/python2.3/config
Could you try to build swig-1.3.19 (not .20) and try again. If it doesn't work, please attach a combined log (a lot easier to read) of the swig build. It seems that swig doesn't correctly specify the include dir of Python.h
Well, the upgrade worked with the earlier version of swig, but the instructions for dumping the svn repository mention an upgrade from version 0.28, and as this is version 0.32 - 0.35 I figured I didn't need to dump it. :-( Back to 0.32.1 I go.
Good luck, I added a fixed dependency on swig-1.3.19, and changed the comment to 0.34. Note that will not ask you to use the environment variable if you don't need to dump the repos.
Using swig-1.3.19 instead of swig-1.3.20 allows me to finish compiling, and subversion appears to be working correctly. I had the same errors as above.
I guess this is fixed now