just about all other distributions build python with expat, this includes official python srpms we dont. this may be big trouble later on.
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.
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.
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.
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 $
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.
(From drobbins on IRC): try !build? ( !bootstrap? ( foo/expat ) ) in DEPEND or RDEPEND
oh, sounds like how we do it in gcc, should work yes
python 2.2.1-r1 commited, but masked. Please give it a go. It works for me. ;-)
I just unmasked python 2.2.1-r1, which (should) solve this problem.