NetBSD Problem Report #26507
Received: (qmail 6161 invoked by uid 605); 1 Aug 2004 22:55:16 -0000
Message-Id: <20040801203110.1F50711152@narn.netbsd.org>
Date: Sun, 1 Aug 2004 20:31:10 +0000 (UTC)
From: geos@epost.de
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: geos@epost.de
To: gnats-bugs@gnats.NetBSD.org
Subject: python21's PY_PLATNAME is wrong on IRIX 5.3
X-Send-Pr-Version: www-1.0
>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: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Aug 01 22:56:00 +0000 2004
>Closed-Date: Mon Aug 02 17:01:42 +0000 2004
>Last-Modified: Sun Sep 05 21:36:01 +0000 2004
>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:
State-Changed-From-To: open->closed
State-Changed-By: recht
State-Changed-When: Mon Aug 2 17:01:28 UTC 2004
State-Changed-Why:
patch commited. Thanks for the PR!
From: Marc Recht <recht@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: pr/26507 CVS commit: pkgsrc/lang
Date: Mon, 2 Aug 2004 16:59:22 +0000 (UTC)
Module Name: pkgsrc
Committed By: recht
Date: Mon Aug 2 16:59:22 UTC 2004
Modified Files:
pkgsrc/lang/python21: Makefile Makefile.common
pkgsrc/lang/python21-pth: Makefile
Log Message:
Fix PY_PLATNAME for IRIX.
Patch provided by Georg Schwarz in PR pkg/26507
Bump PKGREVISIONS (PLIST change)
To generate a diff of this commit:
cvs rdiff -r1.14 -r1.15 pkgsrc/lang/python21/Makefile
cvs rdiff -r1.4 -r1.5 pkgsrc/lang/python21/Makefile.common
cvs rdiff -r1.12 -r1.13 pkgsrc/lang/python21-pth/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
From: geos@epost.de (Georg Schwarz)
To: gnats-bugs@NetBSD.org
Cc: recht@netbsd.org
Subject: Re: pkg/26507 python15, python2[23] need fix, too
Date: Sun, 5 Sep 2004 23:38:22 +0200
lang/python22 also needs a fix for IRIX:
--- pkgsrc/lang/python22/Makefile.common.orig Sun Sep 5 15:28:58 2004
+++ pkgsrc/lang/python22/Makefile.common Sun Sep 5 15:35:15 2004
@@ -26,8 +26,10 @@
LOWER_OPSYS= sunos
.endif
-.if ${OPSYS} == "Darwin" || ${OPSYS} == "IRIX"
+.if ${OPSYS} == "Darwin"
PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS}
+.elif ${OPSYS} == "IRIX"
+PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS:C/\..*//}
.else
PLIST_SUBST+= PY_PLATNAME=${LOWER_OPSYS}${OS_VERSION:C/\..*//}
.endif
In addition one needs
--- PLIST.IRIX.orig Sun Sep 5 16:30:18 2004
+++ PLIST.IRIX Sun Sep 5 16:30:41 2004
@@ -1,5 +1,4 @@
@comment $NetBSD: PLIST.IRIX,v 1.2 2004/01/24 08:13:14 grant Exp $
-lib/python${PY_VER_SUFFIX}/lib-dynload/bsddb.so
lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/AL.py
lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/CD.py
lib/python${PY_VER_SUFFIX}/plat-${PY_PLATNAME}/CL.py
since that lib is not built on IRIX (could someone with IRIX6 please
verify this? SunOS might be similar, BTW).
for python23, the following patch should be applied:
lorenz 108% diff -u Makefile.common.orig Makefile.common
--- Makefile.common.orig Sun Sep 5 19:18:47 2004
+++ Makefile.common Sun Sep 5 22:08:06 2004
@@ -36,7 +36,7 @@
-.if ${OPSYS} == "Darwin" || ${OPSYS} == "IRIX"
+.if ${OPSYS} == "Darwin"
PY_PLATNAME= ${LOWER_OPSYS}
+.elif ${OPSYS} == "IRIX"
+PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
.else
PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
.endif
@@ -62,7 +62,7 @@
|| ${PY_PLATNAME} == "freebsd5"
OSSAUDIODEV_SUBST=
. endif
-.elif ${OPSYS} == "SunOS"
+.elif ${OPSYS} == "SunOS" || ${OPSYS} == "IRIX"
EXTRA_SO_SUBST=
.endif
for python15, the following patch must be applied.
--- Makefile.orig Sun Sep 5 20:51:17 2004
+++ Makefile Sun Sep 5 20:52:28 2004
@@ -20,8 +20,10 @@
.include "../../mk/bsd.prefs.mk"
-.if ${OPSYS} == "Darwin" || ${OPSYS} == "IRIX"
+.if ${OPSYS} == "Darwin"
PY_PLATNAME= ${LOWER_OPSYS}
+.elif ${OPSYS} == "IRIX"
+PY_PLATNAME= ${LOWER_OPSYS:C/\..*//}
.else
PY_PLATNAME= ${LOWER_OPSYS}${OS_VERSION:C/\..*//}
.endif
Besides, it would not hurt to add USE_BUILDLINK3=yes
--
Georg Schwarz http://home.pages.de/~schwarz/
geos@epost.de +49 177 8811442
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.