NetBSD Problem Report #6976

Received: (qmail 26886 invoked from network); 9 Feb 1999 20:50:21 -0000
Message-Id: <19990209205000.8F0A610@proven.weird.com>
Date: Tue,  9 Feb 1999 15:50:00 -0500 (EST)
From: woods@proven.weird.com
Reply-To: woods@weird.com
To: gnats-bugs@gnats.netbsd.org
Subject: fix to prevent python package from depending on environment variable $OPT
X-Send-Pr-Version: 3.95

>Number:         6976
>Category:       pkg
>Synopsis:       fix to prevent python package from depending on environment variable $OPT
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    tsarna
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 09 13:05:01 +0000 1999
>Closed-Date:    Wed Apr 14 04:41:09 +0000 1999
>Last-Modified:  Wed Apr 14 04:41:34 +0000 1999
>Originator:     Greg A. Woods
>Release:        pkgsrc-current Tue Feb  9 08:18:01 EST 1999
>Organization:
Planix, Inc.; Toronto, Ontario; Canada
>Environment:

System: NetBSD proven 1.3I i386

>Description:

	The python package depends at "run-time" on the setting of an
	environment variable $OPT.  I.e. the tools installed by the
	python package for building additional python modules are
	affected by any setting of $OPT in the environment at the time
	the python package is first compiled and built.

	Unfortunately this dependency is hidden until well after the
	time the package is compiled and installed.

>How-To-Repeat:

	$ export OPT=/some/path/name
	$ cd /usr/pkgsrc/lang/python
	$ make && su -c 'make install'
	# now try building a python module that uses the installed tools

>Fix:

	Ideally the python distribution should be fixed so that it
	doesn't rely on such a poorly named environment variable.

	as a workaround apply the following patch to the python package:

Index: Makefile
===================================================================
RCS file: /cvs/NetBSD/pkgsrc/lang/python/Makefile,v
retrieving revision 1.1.1.10
diff -c -r1.1.1.10 lang/python/Makefile
*** lang/python/Makefile	1999/01/18 18:02:06	1.1.1.10
--- lang/python/Makefile	1999/02/09 20:26:47
***************
*** 26,31 ****
--- 26,35 ----

  GNU_CONFIGURE=	yes
  MAKE_FLAGS+=	'OPT=${CFLAGS}'
+ # use these to override any current environment variable $OPT
+ MAKE_ENV+=	'OPT=${CFLAGS}'
+ CONFIGURE_ENV+=	'OPT=${CFLAGS}'
+ SCRIPTS_ENV+=	'OPT=${CFLAGS}'

  # Handle the module setup file:
  #   - disable a few broken modules on 64 bit platforms (nothing important)
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->tsarna 
Responsible-Changed-By: tsarna 
Responsible-Changed-When: Tue Feb 16 10:43:56 PST 1999 
Responsible-Changed-Why:  
claimed. 
State-Changed-From-To: open->closed 
State-Changed-By: tsarna 
State-Changed-When: Tue Apr 13 21:41:09 PDT 1999 
State-Changed-Why:  
Suggested fix applied to new 1.5.2 package 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(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.