Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 257091 - app-office/openoffice-3.0.1: build failure because of missing python module dependency
Summary: app-office/openoffice-3.0.1: build failure because of missing python module d...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Office Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-31 13:22 UTC by Dirk Heinrichs
Modified: 2009-03-27 23:12 UTC (History)
0 users

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 Dirk Heinrichs 2009-01-31 13:22:23 UTC
OOo 3.0.1 fails to configure because of a missing python module:

checking for a Python interpreter with version >= 2.0... python                                
checking for python... /usr/bin/python                                                         
checking for python version... 2.5                                                             
checking for python platform... linux2                                                         
checking for python script directory... ${prefix}/lib/python2.5/site-packages                  
checking for python extension module directory... ${exec_prefix}/lib/python2.5/site-packages   
checking whether your python installation has xml.dom.minidom... no                            
configure: error: xml.dom.minidom module not found in your python installation.

RC2 was installed w/o problems.

Reproducible: Always

Steps to Reproduce:




Relevant USE flags:

# paludis -ip openoffice
Building target list...
Building dependency list...

These packages will be installed:

* app-office/openoffice [U 3.0.1_rc2 -> 3.0.1] <target>
    -binfilter cups dbus -debug -eds -gnome gstreamer gtk -java -kde ldap -mono nsplugin -odk opengl pam -templates LINGUAS: -af -ar -as_IN -be_BY -bg -bn -br -bs -ca -cs -cy -da de -dz -el -en -en_GB -en_US -en_ZA -eo -es -et -fa -fi -fr -ga -gl -gu+ -he -hi_IN -hr -hu -it -ja -ka+ -kk+ -km -ko -ku -lt -lv -mk -ml_IN -mn+ -mr_IN -nb -ne -nl -nn -nr -ns -or_IN-pa_IN -pl -pt -pt_BR -ru -rw -sh -sk -sl -sr -ss -st -sv -sw_TZ -ta+ -te_IN -tg -th -ti_ER -tn -tr -ts -uk -ur_IN -ve -vi -xh -zh_CN -zh_TW -zu build_options: -optional_tests split strip
Comment 1 Hanno Zysik (geki) 2009-02-02 19:08:55 UTC
@Dirk
I guess that your python is not built with USE="xml".

@Andreas
It is time to use EAPI=2 and depend on '>=dev-lang/python-2.3.4[threads,xml]'. :)
Comment 2 Dirk Heinrichs 2009-02-03 07:31:31 UTC
(In reply to comment #1)
> @Dirk
> I guess that your python is not built with USE="xml".

# paludis -q python

* dev-lang/python
    gentoo:                  2.4.4-r5 2.4.4-r6 2.4.4-r14 2.4.4-r15(~) {:2.4} 2.5.2-r7 2.5.2-r8(~) 2.5.4-r2(~) {:2.5} (2.6-r5)R(~) (2.6.1)R(~) {:2.6}
    installed:               2.5.4-r2* {:2.5}
    Description:             Python is an interpreted, interactive, object-oriented programming language.
    Homepage:                http://www.python.org/
    License:                 PSF-2.2
    Installed time:          Sat Jan 24 08:10:40 2009
    Use flags:               (berkdb) (-build) (doc) (examples) (gdbm) (-ipv6) (ncurses) (readline) (sqlite) (ssl) (threads) (tk) (-ucs2) (-wininst) (xml)
    From repositories:       gentoo
    Installed using:         paludis-0.34.0

It has the xml use flag. However, it has been updated just one day after OOo 3.0.1 RC2 was installed succesfully. So maybe the previous python version will work. I'll try...
Comment 3 Dirk Heinrichs 2009-02-03 07:42:26 UTC
Additional info:

# paludis --contents dev-lang/python|grep mini
    /usr/include/python2.5/graminit.h
    /usr/lib/python2.5/test/test_minidom.py
    /usr/lib/python2.5/test/test_minidom.pyc
    /usr/lib/python2.5/test/test_minidom.pyo
    /usr/lib/python2.5/xml/dom/minicompat.py
    /usr/lib/python2.5/xml/dom/minidom.py
    /usr/lib/python2.5/xml/dom/minicompat.pyc
    /usr/lib/python2.5/xml/dom/minidom.pyc
    /usr/lib/python2.5/xml/dom/minicompat.pyo
    /usr/lib/python2.5/xml/dom/minidom.pyo
Comment 4 Dirk Heinrichs 2009-02-03 07:47:33 UTC
So it's not in site-packages.
Comment 5 Dirk Heinrichs 2009-02-03 08:29:36 UTC
Downgrading python makes things even worse:

checking for a Python interpreter with version >= 2.0... ./configure: line 6721: 11609 Aborted                 (core dumped) ( $am_cv_pathless_PYTHON -c "$prog" ) 1>&5 2>&5                                                      
./configure: line 6721: 11611 Aborted                 (core dumped) ( $am_cv_pathless_PYTHON -c "$prog" ) 1>&5 2>&5                                                                                                               
./configure: line 6721: 11613 Aborted                 (core dumped) ( $am_cv_pathless_PYTHON -c "$prog" ) 1>&5 2>&5                                                                                                               
none                                                                                                             
configure: error: no suitable Python interpreter found                                                           

!!! ERROR in app-office/openoffice-3.0.1:
!!! In src_compile at line 6738          
!!! Configuration failed!                

So I'll try upgrading python again and see what happens if I reinstall 3.0.1 RC2...
Comment 6 Dirk Heinrichs 2009-02-03 08:58:26 UTC
Seems all relevant files for OOo 3.0.1 RC2 have already been removed from the tree which makes it impossible for me to reinstall this version. So I can't verify wether the problem was introduced with 3.0.1.
Comment 7 Hanno Zysik (geki) 2009-02-03 12:18:54 UTC
Hmm, this works as expected (with pyxml unmerged):
(minidom check in configure)

# python -c "import xml.dom.minidom; print('success')"
success

So maybe some python path environment variable is wrong.
Comment 8 Dirk Heinrichs 2009-02-07 13:30:11 UTC
Hmm, don't know what happend, but OOo 3.0.1 is currently building now, which means the configure problem is gone.
Comment 9 Andreas Proschofsky (RETIRED) gentoo-dev 2009-03-27 23:12:50 UTC
Local problem, closing