Subject: pkg/26507: python21's PY_PLATNAME is wrong on IRIX 5.3
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <geos@epost.de>
List: pkgsrc-bugs
Date: 08/01/2004 20:31:10
>Number:         26507
>Category:       pkg
>Synopsis:       python21's PY_PLATNAME is wrong on IRIX 5.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Aug 01 22:56:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Georg Schwarz
>Release:        current pkgsrc
>Organization:
>Environment:
IRIX lorenz 5.3 08031225 IP20 mips
>Description:
On IRIX 5.3, lang/python21 installs certain scripts in ${LOCALBASE}/python2.1/plat-irix5. Nevertheless Makefile.common sets PY_PLATNAME=    ${LOWER_OPSYS} i.e. =irix5.3

>How-To-Repeat:


>Fix:
Assuming this the behavior is analogous for IRIX 6.X,  the following might do (in Makefile.common):

.if ${OPSYS} == "Darwin"
PY_PLATNAME=    ${LOWER_OPSYS}
.elif  ${OPSYS} == "IRIX"
PY_PLATNAME=    ${LOWER_OPSYS:C/\..*//}
.else
PY_PLATNAME=    ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
.endif
>Release-Note:
>Audit-Trail:
>Unformatted: