| Summary: | dev-vcs/subversion-1.7.9 USE=-python PYTHON_TARGETS=python3_2 - src_configure(): "No Python implementation selected for the build." | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Bruno <bonbons> |
| Component: | [OLD] Development | Assignee: | Thomas Sachau <tommy> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | ahipp0 |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: |
emerge --info
proposed fix |
||
|
Description
Bruno
2013-05-06 13:16:53 UTC
Created attachment 347516 [details]
emerge --info
"me too" The change from 1.7.7 to 1.7.9 ebuild is that PYTHON_DEPS is now included in DEPEND. I don't really get it if subversion could live without python in 1.7.7, why does it need in 1.7.9. Just tested, it works correctly without python, the ebuild needs only a few modifications:
1) Remove the PYTHON_DEPS line from DEPEND (line 47). COMMON_DEPEND already has that with the python USE flag (which should control the dependency anyway).
2) The python_export_best line (line 187) and the ac_cv_python_includes line (line 192) needs a conditional (i'm not sure if the second one is needed, as ruby lacks the conditional too, and i don't have ruby isntalled), eg:
if use python; then
python_export_best
fi
[...]
if use python; then
ac_cv_python_includes='-I$(PYTHON_INCLUDEDIR)'
fi
ac_cv_path_RUBY="${EPREFIX}"/usr/bin/ruby18 ac_cv_path_RDOC="${EPREFIX}"/usr/bin/rdoc18 \
econf --libdir="${EPREFIX}/usr/$(get_libdir)" \
[...]
This should nail it.
Created attachment 349810 [details, diff] proposed fix I've prepared Zoltán Halassy's suggestions in comment 3 as a patch. After applying the patch, subversion successfully builds on my machine with USE="-python" PYTHON_TARGETS="python3_2". Just checked the patch from attachment 349810 [details, diff] with USE="python" PYTHON_TARGETS=python2_7 and it works fine too.
fixed: 20 Jul 2013; Michał Górny <mgorny@gentoo.org> subversion-1.7.9.ebuild: Lower the build-time requirement of Python to Python bindings or USE=test. Add REQUIRED_USE for Python. |