From nobody@FreeBSD.org  Mon Sep 10 11:50:53 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 733AB16A41A
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Sep 2007 11:50:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 454F513C45D
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Sep 2007 11:50:53 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.1/8.14.1) with ESMTP id l8ABoqVa067353
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 10 Sep 2007 11:50:52 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.1/8.14.1/Submit) id l8ABoqZ3067352;
	Mon, 10 Sep 2007 11:50:52 GMT
	(envelope-from nobody)
Message-Id: <200709101150.l8ABoqZ3067352@www.freebsd.org>
Date: Mon, 10 Sep 2007 11:50:52 GMT
From: Laurent DAVERIO <daverio@cri.ensmp.fr>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Port py-libxml2 does not install correctly for Python version != 2.5
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         116256
>Category:       ports
>Synopsis:       Port textproc/py-libxml2 does not install correctly for Python version != 2.5
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    gnome
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Sep 10 12:00:07 GMT 2007
>Closed-Date:    Thu Sep 13 17:39:24 GMT 2007
>Last-Modified:  Thu Sep 13 17:40:01 GMT 2007
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->gnome 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Mon Sep 10 23:02:03 UTC 2007 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116256 

From: Nikola Lecic <nlecic@EUnet.yu>
To: bug-followup@FreeBSD.org, daverio@cri.ensmp.fr
Cc:  
Subject: Re: ports/116256: Port textproc/py-libxml2 does not install
 correctly for Python version != 2.5
Date: Tue, 11 Sep 2007 05:23:24 +0200

 --MP_2nmjs_bzVCa1kXrIISyW85Q
 Content-Type: text/plain; charset=US-ASCII
 Content-Transfer-Encoding: 7bit
 Content-Disposition: inline
 
 This little patch solves the problem for me.
 --MP_2nmjs_bzVCa1kXrIISyW85Q
 Content-Type: text/x-patch; name=py-libxml2-patch.diff
 Content-Transfer-Encoding: 7bit
 Content-Disposition: attachment; filename=py-libxml2-patch.diff
 
 --- Makefile.orig	Tue Sep 11 03:39:55 2007
 +++ Makefile	Tue Sep 11 03:40:08 2007
 @@ -23,7 +23,7 @@
  CONFIGURE_ARGS=	--with-iconv=${LOCALBASE} \
  		--with-html-dir=${PREFIX}/share/doc \
  		--with-html-subdir=${PORTNAME} \
 -		--with-python=${LOCALBASE}
 +		--with-python=${PYTHON_CMD}
  
  DOCSDIR=	${PREFIX}/share/doc/py-libxml2
  EXAMPLESDIR=	${PREFIX}/share/examples/py-libxml2
 
 --MP_2nmjs_bzVCa1kXrIISyW85Q--

From: Laurent DAVERIO <daverio@cri.ensmp.fr>
To: Nikola Lecic <nlecic@EUnet.yu>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/116256: Port textproc/py-libxml2 does not install correctly
 for Python version != 2.5
Date: Tue, 11 Sep 2007 09:08:45 +0200

 Thank you very much !
 
 > This little patch solves the problem for me.
 
 It works for me too, in both cases (with ou without Python 2.5
 installed). I really should get more familiar with the ports system...
 
 Thanks again, and best regards,
 
 Laurent.
 
 --=20
 
     Laurent DAVERIO
     Centre de Recherche en Informatique
     de l'=C9cole Nationale Sup=E9rieure des Mines de Paris (CRI-ENSMP)
     35, Rue Saint-Honor=E9
     77305 FONTAINEBLEAU CEDEX
     FRANCE                               Tel:    (+33|0) 1.64.69.48.37
                                          Fax:    (+33|0) 1.64.69.48.47
                                          E-mail: laurent@daverio.net
                                          http://daverio.net/
 					 La Page Trad : http://trad.org/
 
 
 
State-Changed-From-To: open->closed 
State-Changed-By: mezz 
State-Changed-When: Thu Sep 13 17:38:55 UTC 2007 
State-Changed-Why:  
Committed, thanks! Also, thanks for report! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=116256 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/116256: commit references a PR
Date: Thu, 13 Sep 2007 17:38:47 +0000 (UTC)

 mezz        2007-09-13 17:38:40 UTC
 
   FreeBSD ports repository
 
   Modified files:
     textproc/py-libxml2  Makefile 
   Log:
   Fix the build with old python.
   
   PR:             ports/116256
   Reported by:    Laurent DAVERIO <daverio@cri.ensmp.fr>
   Submitted by:   Nikola Lecic <nlecic@EUnet.yu>
   
   Revision  Changes    Path
   1.8       +1 -1      ports/textproc/py-libxml2/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
