Bugreport for py-libxml2 and Python 2.5
Bjoern Voigt
bjoern at cs.tu-berlin.de
Fri Feb 23 11:57:03 UTC 2007
Hello!
I recently upgraded my FreeBSD 6.2 system
(FreeBSD chemnitz 6.2-STABLE FreeBSD 6.2-STABLE #3: Mon Feb 12
22:58:47 CET 2007 root at mybox:/usr/obj/src/sys/GENERIC.bv i386)
from Python 2.4 to Python 2.5.
Unfortunately the port textproc/py-libxml2 does not build correctly with
python25-2.5_1.
There is an error in the Makefile (textproc/py-libxml2/Makefile):
Instead of
CONFIGURE_ARGS= --with-iconv=${LOCALBASE} \
--with-html-dir=${PREFIX}/share/doc \
--with-html-subdir=${PORTNAME} \
--with-python=${LOCALBASE}
there should be something like
CONFIGURE_ARGS= --with-iconv=${LOCALBASE} \
--with-html-dir=${PREFIX}/share/doc \
--with-html-subdir=${PORTNAME} \
--with-python=${LOCALBASE}/bin/python${PYTHON_VERSION}
Unfortunately with this change a linker error comes up. "-lxml2" (from
libxml2-2.6.27/python/Makefile) does not find libxml2.so in
/usr/local/lib. Inserting a "-L/usr/local/lib" in
libxml2-2.6.27/python/Makefile is a hack to repair this.
The problem is hard to find, because the port seams to build properly.
But if you take a deeper look, you see that " pkg_info -L
py25-libxml2-2.6.27|xargs -n 1 ls -1" shown non-existing files. I found
this problem because xml2po from gnome-doc-utils-0.7.2_1 failed to
"import libxml2".
Regards, Björn
More information about the freebsd-gnome
mailing list