From owner-freebsd-ports-bugs@FreeBSD.ORG Fri Aug 1 20:40:15 2003 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8056A37B401 for ; Fri, 1 Aug 2003 20:40:15 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B60343FBD for ; Fri, 1 Aug 2003 20:40:14 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h723eEUp022431 for ; Fri, 1 Aug 2003 20:40:14 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h723eEi7022430; Fri, 1 Aug 2003 20:40:14 -0700 (PDT) Resent-Date: Fri, 1 Aug 2003 20:40:14 -0700 (PDT) Resent-Message-Id: <200308020340.h723eEi7022430@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Ying-Chieh Chen" Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AB0B337B401; Fri, 1 Aug 2003 20:32:00 -0700 (PDT) Received: from alumni.csie.nctu.edu.tw (alumni.csie.nctu.edu.tw [140.113.209.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9F2A443FB1; Fri, 1 Aug 2003 20:31:59 -0700 (PDT) (envelope-from yinjieh@csie.nctu.edu.tw) Received: from alumni.csie.nctu.edu.tw (yinjieh@localhost [127.0.0.1]) h723Vj5x045335; Sat, 2 Aug 2003 11:31:45 +0800 (CST) Received: (from yinjieh@localhost) by alumni.csie.nctu.edu.tw (8.12.9/8.12.3/Submit) id h723VjUI045334; Sat, 2 Aug 2003 11:31:45 +0800 (CST) Message-Id: <200308020331.h723VjUI045334@alumni.csie.nctu.edu.tw> Date: Sat, 2 Aug 2003 11:31:45 +0800 (CST) From: "Ying-Chieh Chen" To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 cc: wjv@FreeBSD.org Subject: ports/55176: [Update port] fix pkg-req in textproc/py-xml to handle specified output X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ying-Chieh Chen List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2003 03:40:15 -0000 >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@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: