ports/55176: [Update port] fix pkg-req in textproc/py-xml to handle specified output

Ying-Chieh Chen yinjieh at csie.nctu.edu.tw
Sat Aug 2 03:40:15 UTC 2003


>Number:         55176
>Category:       ports
>Synopsis:       [Update port] fix pkg-req in textproc/py-xml to handle specified output
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Fri Aug 01 20:40:13 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Ying-Chieh Chen
>Release:        FreeBSD 4.8-RELEASE i386
>Organization:
yinjieh vmware lab
>Environment:
System: FreeBSD stable.yinjieh.com 4.8-RELEASE FreeBSD 4.8-RELEASE #0: Thu Apr 3 10:53:38 GMT 2003 root at freebsd-stable.sentex.ca:/usr/obj/usr/src/sys/GENERIC i386


	
>Description:

	In textproc/py-xml/pkg-req, it checks the following expression:

	python -c 'import string, sys; print string.split(sys.version)[0] >= "2.0"'

	If the output of the expression is "1", it passes the test.
	But when I installed python-2.3, I found that the expression will output "True".
	For compatibility reason, I modify pkg-req to check whether the output is "1" or "True", it means the same.

	If the maintainer think this patch ok, please follow this.
	Thanks!

>How-To-Repeat:

	cd ${PORTSDIR}/textproc/py-xml && make install

>Fix:

	

--- py-xml.patch begins here ---
diff -ruN /usr/ports/textproc/py-xml/pkg-req py-xml/pkg-req
--- /usr/ports/textproc/py-xml/pkg-req	Wed Sep 18 20:25:25 2002
+++ py-xml/pkg-req	Sat Aug  2 10:52:13 2003
@@ -5,7 +5,7 @@
 if [ "x$1" = "xINSTALL" -o "x$2" = "xINSTALL" ]; then
   PYTHON_GT=`python -c 'import string, sys; \
                         print string.split(sys.version)[0] >= "2.0"'`
-  if [ "x${PYTHON_GT}" = "x1" ]; then
+  if [ "x${PYTHON_GT}" = "x1" -o "x${PYTHON_GT}" = "xTrue" ]; then
     exit 0
   else
     echo "-----------------------------------------------------------"
--- py-xml.patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list