[csw-maintainers] symptoms for Python 2.6 vs 2.7 incompatibility for binary modules

Peter FELECAN pfelecan at opencsw.org
Fri Aug 9 11:09:08 CEST 2013


"Maciej (Matchek) Bliziński" <maciej at opencsw.org> writes:

> 2013/8/9 Peter FELECAN <pfelecan at opencsw.org>
>> What's the solution for this issue? The obvious answer is to
>> provide a specific module for each version with a shared object
>> linked with the corresponding Python library.
>>
>> I'm trying to build the lxml module using the new multi version
>> modules provided by Maciej.
>
> I don't see a different way.

I'm not saying the contrary. With what I'm struggling now is the
modulated python module recipe. After updating the .buildsys/v2 I'm
having difficulties in packaging lxml module: the compiler is not
defined whatever I do.

This, in category.mk, has no effect:

include gar/gar.mk

GARCOMPILER_PYTHON_2_6 = SOS12U3
GARCOMPILER_PYTHON_2_7 = GNU
GARCOMPILER = $(GARCOMPILER_$(PYTHON_VERSION))

$(GARCOMPILER) expands to nil.

Here is the tail of the output:

running build_ext
building 'lxml.etree' extension
-DNDEBUG -O -I/opt/csw/include -Kpic -I/opt/csw/include/libxml2 -I/pariNAma/opencsw/lang-python/pylxml/trunk/work/build-isa-pentium_pro-python_version-2_6/lxml-3.1.2/./src/lxml/includes -I/opt/csw/include/python2.6 -c src/lxml/lxml.etree.c -o build/temp.solaris-2.10-i86pc-2.6/src/lxml/lxml.etree.o
unable to execute -DNDEBUG: No such file or directory
error: command '-DNDEBUG' failed with exit status 1
gmake[1]: *** [build-work/build-isa-pentium_pro-python_version-2_6/lxml-3.1.2/setup.py] Error 1
gmake[1]: Leaving directory `/pariNAma/opencsw/lang-python/pylxml/trunk'
gmake: *** [merge-isa-pentium_pro-python_version-2_6] Error 2

If you have a recipe which works for this kind of package, give me a
reference.

TIA
-- 
Peter


More information about the maintainers mailing list