Date: Mon, 10 Sep 2007 11:50:52 GMT From: Laurent DAVERIO <daverio@cri.ensmp.fr> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/116256: Port py-libxml2 does not install correctly for Python version != 2.5 Message-ID: <200709101150.l8ABoqZ3067352@www.freebsd.org> Resent-Message-ID: <200709101200.l8AC08Aj023403@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 116256 >Category: ports >Synopsis: Port py-libxml2 does not install correctly for Python version != 2.5 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 10 12:00:07 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Laurent DAVERIO >Release: 6.2-STABLE >Organization: ENSMP/CRI >Environment: FreeBSD viking.daverio.net 6.2-PRERELEASE FreeBSD 6.2-PRERELEASE #1: Sat Nov 11 22:16:04 CET 2006 root@viking.daverio.net:/usr/obj/usr/src/sys/VIKING amd64 >Description: When building the package for Python 2.4, FreeBSD will attempt to use Python2.5 no matter what : setting PYTHON_VERSION=python2.4 either from the command line or in /etc/make.conf is not taken into account. * On a machine with Python 2.5 installed, the files will be installed is /usr/local/lib/python2.5/site-packages/ * On a machine with Python2.5 not installed, nothing is compiled / installed. I've enclosed the output of the make command for these two situations, hoping that you'll find the useful. Thanks and regards, Laurent. >How-To-Repeat: Try to build the patch and look at the messages : # export PYTHON_VERSION=python2.4 # cd /usr/ports/textproc/py-libxml2 # make * With Python 2.5 installed, the output shows that python 2.5 is incorrectly used : """ [...] Done configuring ===> Building for py24-libxml2-2.6.30 Making all in . gmake[1]: Entering directory `/usr/ports/textproc/py-libxml2/work/libxml2-2.6.30/python' /usr/local/bin/python ./generator.py . /usr/local/lib/python2.5/xmllib.py:9: DeprecationWarning: The xmllib module is obsolete. Use xml.sax instead. warnings.warn("The xmllib module is obsolete. Use xml.sax instead.", DeprecationWarning) [...] """ * With Python 2.5 not installed, nothing is compiled / built : """ [...] Done configuring ===> Building for py24-libxml2-2.6.30 Making all in . gmake[1]: Entering directory `/usr/ports/textproc/py-libxml2/work/libxml2-2.6.30/python' gmake[1]: Nothing to be done for `all-am'. gmake[1]: Leaving directory `/usr/ports/textproc/py-libxml2/work/libxml2-2.6.30/python' Making all in tests gmake[1]: Entering directory `/usr/ports/textproc/py-libxml2/work/libxml2-2.6.30/python/tests' gmake[1]: Nothing to be done for `all'. gmake[1]: Leaving directory `/usr/ports/textproc/py-libxml2/work/libxml2-2.6.30/python/tests' [...] """ >Fix: >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709101150.l8ABoqZ3067352>