ports/116256: Port py-libxml2 does not install correctly for Python version != 2.5

Laurent DAVERIO daverio at cri.ensmp.fr
Mon Sep 10 12:00:08 UTC 2007


>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 at 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:



More information about the freebsd-ports-bugs mailing list