| Summary: | dev-java/ant-core-1.10.7 with >=dev-java/javatoolkit-0.6.1[python_targets_python2_7] - SyntaxError: Non-ASCII character '\xc2' in file /usr/lib/python-exec/python2.7/xml-rewrite-2.py on line 106, but no encoding declared | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Hank Leininger <hlein> |
| Component: | Current packages | Assignee: | Java team <java> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | alex, benjamin.reveille, covici, gentoo, hlein, neil, roman, tommy |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
|
Description
Hank Leininger
2019-11-20 00:28:38 UTC
(In reply to Hank Leininger from comment #0) > dev-java/ant-core will not compile for me with >=dev-java/javatoolkit-0.6.1: dev-java/javatoolkit-0.6.2-r1 built only for python3 (USE=-python_targets_python2_7) can build dev-java/ant-core and dev-java/tomcat-servlet-api (which also errored before). So unless someone wants to figure out how to fix the current version for python2, I would suggest removing python2_7 from javatoolkit-0.6.2-r1.ebuild's PYTHON_COMPAT. Please mark this a blocker of Bug 699102. I cannot do changes here. SOLVED: echo "dev-java/javatoolkit -python_targets_python2_7" >> /etc/portage/package.use/use emerge -1v dev-java/javatoolkit # resume update emerge --resume I can confirm the solution provided by @3. This fix did not work for me, using dev-java/javatoolkit-0.6.2-r1 and trying to compile dev-java/ant-core-1.10.7-r1 . I disabled python 2.7 system wide to fix the issue on my end. There were no major issues except a few packages that just don't work with python 3, like mysql-workbench. These packages were all basically garbage anyway so I just removed them and moved on with my life. I seriously doubt this issue will be solved before python 2.7 is removed from the gentoo repo so sooner or later this will probably be the official fix. The fix in comment 3 also worked for me.... originally I misunderstood and tried to diable python2 support for dev-java/ant-core, so I thought it had not worked. That was months ago. Reread and actually FOLLOWED the instructions today and ended a streak of almost 6 months of broken ant-core.... Makes me wonder if I really need a java sdk at all anymore I use it so rarely. closing, as python2 target was removed from the package. |