Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 3128 - python missing expat support
Summary: python missing expat support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Jon Nelson (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-28 17:53 UTC by Spider (RETIRED)
Modified: 2003-02-04 19:42 UTC (History)
1 user (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 Spider (RETIRED) gentoo-dev 2002-05-28 17:53:48 UTC
just about all other distributions build python with expat, this includes
official python srpms

we dont.

this may be big trouble later on.
Comment 1 Jon Nelson (RETIRED) 2002-05-28 23:10:59 UTC
Just installing and then rebuilding Python gives you support for python-expat.
I'm not sure it's necessary for the "base" system to have expat support, but
I'll look into it.
Comment 2 Spider (RETIRED) gentoo-dev 2002-05-29 06:49:42 UTC
Yes, I know that..
but for something like "libglade" that requires python with expat support to
build all components...


How do we specify the dependency then?
it depends on expat.. yes, but nothing tells us that python is built after expat.

also, this could well introduce subtle bugs with projects that expect to find
python+expat and we cant verify that python has expat or not. 

Comment 3 Jon Nelson (RETIRED) 2002-05-29 07:35:59 UTC
libglade requires python + expat?  Since when?  I've got libglade installed
right now and didn't have expat installed until yesterday (I think, I could be
wrong).

Now, I installed expat yesterday, but python didn't seem to install support for
it.  I unpacked Python 2.2.1 and built it by hand, and pyexpat *is* built. Hmm.

However, I can provide you with a simple command-line test to make sure python
has been built with expat support, but only after I get this working.

I'll be working on this today.
Comment 4 Jon Nelson (RETIRED) 2002-05-29 07:44:34 UTC
Using my 2.2.1-r1 ebuild (not released yet), I can see that it *builds* pyexpat
support...

building 'pyexpat' extension
gcc -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -fPIC -DHAVE_EXPAT_H=1 -I.
-I/tmp/portage/python-2.2.1-r1/work/Python-2.2.1/./Include -I/usr/local/include
-IInclude/ -c /tmp/portage/python-2.2.1-r1/work/Python-2.2.1/Modules/pyexpat.c
-o build/temp.linux-i686-2.2/pyexpat.o -DNDEBUG -g -O3 -Wall -Wstrict-prototypes
gcc -shared build/temp.linux-i686-2.2/pyexpat.o -L/usr/local/lib -lexpat -o
build/lib.linux-i686-2.2/pyexpat.so

and installs it...

usr/lib/python2.2/lib-dynload/pyexpat.so

So here is a commandline test (note that someday there might be a pyexpat2 so
this test is obviously geared to show that failure to import a module results in
an exit code of non-zero).

jnelson@host jnelson $ python -c 'import pyexpat'
jnelson@host jnelson $ echo $?
0
jnelson@host jnelson $ python -c 'import pyexpat2'
Traceback (most recent call last):
  File "<string>", line 1, in ?
ImportError: No module named pyexpat2
jnelson@host jnelson $ echo $?
1
jnelson@host jnelson $ 
Comment 5 Spider (RETIRED) gentoo-dev 2002-05-29 07:49:57 UTC
libglade from gnome2 branch needs an XML parses (python+expat or PyXML) to build
"libglade-convert" that is used to convert the glade fiels from glade 1 to
glade2 format.

Comment 6 Jon Nelson (RETIRED) 2002-05-29 13:21:47 UTC
(From drobbins on IRC):

try !build? ( !bootstrap? ( foo/expat ) ) in DEPEND or RDEPEND
Comment 7 Spider (RETIRED) gentoo-dev 2002-05-29 13:53:24 UTC
oh, sounds like how we do it in gcc, should work yes
Comment 8 Jon Nelson (RETIRED) 2002-05-29 22:21:01 UTC
python 2.2.1-r1 commited, but masked.
Please give it a go.
It works for me. ;-)
Comment 9 Jon Nelson (RETIRED) 2002-06-15 23:36:52 UTC
I just unmasked python 2.2.1-r1, which (should) solve this problem.