Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 246780 - dev-java/ant-core-1.7.1-r2 fails to build with dev-lang/python:2.6
Summary: dev-java/ant-core-1.7.1-r2 fails to build with dev-lang/python:2.6
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All All
: Highest normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: python-2.6
  Show dependency tree
 
Reported: 2008-11-14 21:46 UTC by Arfrever Frehtes Taifersar Arahesis (RETIRED)
Modified: 2009-05-22 13:43 UTC (History)
2 users (show)

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 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-11-14 21:46:53 UTC
dev-java/ant-core-1.7.1-r2 should inherit python eclass to avoid build failure with dev-lang/python:2.6.


>>> Unpacking source...
>>> Unpacking apache-ant-1.7.1-src.tar.bz2 to /var/tmp/portage/dev-java/ant-core-1.7.1-r2/work
>>> Unpacking ant-1.7.1-gentoo.tar.bz2 to /var/tmp/portage/dev-java/ant-core-1.7.1-r2/work
removed `lib/xercesImpl.jar'
removed `lib/xml-apis.jar'
/usr/lib/python2.6/site-packages/java_config_2/EnvironmentManager.py:15: DeprecationWarning: the sets module is deprecated
  from sets import Set
/usr/lib/python2.6/site-packages/java_config_2/EnvironmentManager.py:15: DeprecationWarning: the sets module is deprecated
  from sets import Set
Rewriting attributes
ACCESS DENIED  unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/__init__.pyc
ACCESS DENIED  unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/xmlreader.pyc
ACCESS DENIED  unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/handler.pyc
ACCESS DENIED  unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/_exceptions.pyc
ACCESS DENIED  unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/sax2exts.pyc
ACCESS DENIED  unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/saxexts.pyc
ACCESS DENIED  unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/saxlib.pyc
ACCESS DENIED  unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/saxutils.pyc
Rewriting build.xml
ACCESS DENIED  unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/drivers2/__init__.pyc
ACCESS DENIED  unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/drivers2/drv_pyexpat.pyc
ACCESS DENIED  unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/expatreader.pyc
>>> Source unpacked.
--------------------------- ACCESS VIOLATION SUMMARY ---------------------------
LOG FILE = "/var/log/sandbox/sandbox-2933.log"

unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/__init__.pyc
unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/xmlreader.pyc
unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/handler.pyc
unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/_exceptions.pyc
unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/sax2exts.pyc
unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/saxexts.pyc
unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/saxlib.pyc
unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/saxutils.pyc
unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/drivers2/__init__.pyc
unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/drivers2/drv_pyexpat.pyc
unlink:    /usr/lib/python2.6/site-packages/_xmlplus/sax/expatreader.pyc
--------------------------------------------------------------------------------
Comment 1 Dror Levin (RETIRED) gentoo-dev 2008-11-14 21:50:04 UTC
This is a more general problem that exists with many packages, and is somehow associated with pyxml. I solve this for every package that exhibits this issue by removing pyxml, emerging the troubling package and re-emerging pyxml.
Comment 2 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2008-11-14 21:57:35 UTC
(In reply to comment #1)
> This is a more general problem that exists with many packages, and is
> somehow associated with pyxml.

Python 2.6 more aggresively wants to compile .py files.
dev-python/pyxml installs many .py files in /usr/lib/python2.6/site-packages/_xmlplus, but only small amount of them is compiled/optimized:

$ find /usr/lib/python2.6/site-packages/_xmlplus -name '*.py' | wc -l
192
$ find /usr/lib/python2.6/site-packages/_xmlplus -name '*.pyc' | wc -l
16
$ find /usr/lib/python2.6/site-packages/_xmlplus -name '*.pyo' | wc -l
16
$ 

python.eclass runs python_disable_pyc in global scope which exports PYTHONDONTWRITEBYTECODE=1.
Comment 3 Daniel Black (RETIRED) gentoo-dev 2009-02-04 12:28:16 UTC
'DeprecationWarning: the sets module is deprecated' not in issues.apache.org
Comment 4 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-04-02 21:52:24 UTC
It's not specific to ant-core, it's java-config. Does it mean the java-pkg-2 eclass should inherit python eclass or what?
Comment 5 Eric Womer 2009-04-12 14:09:53 UTC
Has anyone actually ran python-updater after updating to python 2.6
Comment 6 Duncan Exon Smith 2009-05-05 23:04:41 UTC
(In reply to comment #5)
> Has anyone actually ran python-updater after updating to python 2.6
> 

I built =dev-java/ant-core-1.7.1-r2 without issue today with =dev-lang/python-2.6.2.
'eselect python list' gives me:
Available python interpreters:
  [1]   python2.5
  [2]   python2.6 *

This was during an 'emerge -ev system && emerge -ev world' after upgrading gcc, so results may vary.

I figure I built it yesterday too, when I ran 'emerge -uvDN world' followed by 'python-updater -i'.
Comment 7 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2009-05-18 21:13:30 UTC
Python please advise. I think it's something that you fixed already?
Comment 8 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2009-05-22 13:43:45 UTC
This bug is pseudo-fixed.
I will suggest proper solution later.