Subject: pkg/24069: lang/python/application.mk should be more flexible
To: None <gnats-bugs@gnats.NetBSD.org>
From: Min Sik Kim <minskim@bawi.org>
List: netbsd-bugs
Date: 01/12/2004 11:48:43
>Number:         24069
>Category:       pkg
>Synopsis:       lang/python/application.mk should be more flexible
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Mon Jan 12 17:49:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Min Sik Kim
>Release:        NetBSD 1.6ZG
>Organization:
>Environment:
>Description:
application.mk recognizes only "python" as a command name.  But some
packages (e.g. py-subversion) have scripts using different command
name such as python2.  In that case, application.mk makes those
scripts unexecutable.

>How-To-Repeat:
>Fix:

Index: application.mk
===================================================================
RCS file: /cvsroot/pkgsrc/lang/python/application.mk,v
retrieving revision 1.3
diff -u -r1.3 application.mk
--- application.mk	2002/10/18 16:34:54	1.3
+++ application.mk	2004/01/12 17:44:02
@@ -6,7 +6,7 @@
 # PYTHON_PATCH_SCRIPTS is a list of Python scripts to be installed,
 #  relative to ${WRKSRC}
 
-_PYTHON_PATCH_SCRIPT_SED=	-e "1s;^\#!.*python;\#!${PYTHONBIN};"
+_PYTHON_PATCH_SCRIPT_SED=	-e "1s;^\#!.*python[^ ]*;\#!${PYTHONBIN};"
 _PYTHON_PATCH_SCRIPT_SED+=	${PYTHON_PATCH_SCRIPT_SED}
 
 .if defined(PYTHON_PATCH_SCRIPTS)
>Release-Note:
>Audit-Trail:
>Unformatted:
 Environment:
 System: NetBSD sulley.infnis.com 1.6ZG NetBSD 1.6ZG (SULLEY) #1: Tue Dec 16 01:53:13 CST 2003 root@sulley.infnis.com:/usr/obj/sys/arch/i386/compile/SULLEY i386
 Architecture: i386
 Machine: i386