in ebuild: - 57: PYTHONPATH=.. "$(PYTHON -f)" ./buildhtml.py --stylesheet-path=../html4css1.css --traceback .. || die "buildhtml.py failed" + 57: PYTHONPATH=.. "${python}" ./buildhtml.py --stylesheet-path=../html4css1.css --traceback .. || die "buildhtml.py failed" Reproducible: Always
http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/docutils/docutils-0.6.ebuild?rev=1.5&view=log http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/docutils/docutils-0.6.ebuild?r1=1.4&r2=1.5 Looks like this was changed in purpose to $(PYTHON -f).
Created attachment 219365 [details] build.log Assuming this is the same bug, here is a build log.
Created attachment 219367 [details] emerge --info and my emerge --info output
*** Bug 304415 has been marked as a duplicate of this bug. ***
*** Bug 306183 has been marked as a duplicate of this bug. ***
I am having the very same problem here when I want to install "trac" which itelf requires the "dev-python/docutils-0.6" package. Its build breaks with the following error message: -- cut here -- File "./buildhtml.py", line 188 print "no os.walk" ^ SyntaxError: invalid syntax * ERROR: dev-python/docutils-0.6 failed: * buildhtml.py failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 4107: Called die * The specific snippet of code: * PYTHONPATH=.. "$(PYTHON -f)" ./buildhtml.py --stylesheet-path=../html4css1.css --traceback .. || die "buildhtml.py failed"; -- cut here -- Is there any known workaround or bugfix yet?
(In reply to comment #6) > > Is there any known workaround or bugfix yet? > For me, simply uninstalling Python 3 allowed me to build docutils. I don't have anything that uses, nay works with, Python 3 right now anyway. Even if you do, you should be able to just reinstall it as soon as docutils builds.
Same here
As far as I can see, the problem is simply that this package is not yet ready for python 3. From the homepage: "From version 0.6 Docutils is compatible with Python 3, but requires 2to3." So IMHO either 2to3 has to be hacked into the ebuild or python 3 building has to be disabled. Could you perhaps just do the latter for the time being, so that everybody gets the newest docutils version? That would be great! AFAIK, one only needs to remove the second line of the ebuild, which is SUPPORT_PYTHON_ABIS="1" In addition, one might need to remove the thing about the tests not being python 3 compatible in src_test() [which is strange since it does not even compile..] and DISTUTILS_USE_SEPARATE_SOURCE_DIRECTORIES. I do not have a Gentoo machine right here, otherwise I would test this.
I have temporarily restricted 3.* ABIs until final fix is found.
Fixed in dev-python/docutils-0.7_pre6334.
(In reply to comment #11) > Fixed in dev-python/docutils-0.7_pre6334. > I does not appear to be fixed in that release: * ERROR: dev-python/docutils-0.7_pre6334 failed: * buildhtml.py failed * * Call stack: * ebuild.sh, line 54: Called src_compile * environment, line 4686: Called die * The specific snippet of code: * PYTHONPATH="../build-$(PYTHON -f --ABI)/lib" "$(PYTHON -f)" $([[ -f ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py ]] && echo ../build-$(PYTHON -f --ABI)/lib/tools/buildhtml.py || echo ../tools/buildhtml.py) --stylesheet-path=../html4css1.css --traceback .. || die "buildhtml.py failed";
(In reply to comment #12) You probably use wrong locale. See bug #322545.