NetBSD Problem Report #52122

From  Tue Mar 28 18:22:13 2017
Return-Path: <>
Received: from ( [])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "", Issuer "Postmaster" (verified OK))
	by (Postfix) with ESMTPS id 2D6907A1F9
	for <>; Tue, 28 Mar 2017 18:22:13 +0000 (UTC)
Message-Id: <>
Date: Tue, 28 Mar 2017 18:22:08 GMT
Subject: net/py-google-cloud-sdk can't find python
X-Send-Pr-Version: 3.95

>Number:         52122
>Category:       pkg
>Synopsis:       net/py-google-cloud-sdk can't find python
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    ryoon
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Mar 28 18:25:00 +0000 2017
>Last-Modified:  Fri Apr 28 14:25:01 +0000 2017
>Release:        NetBSD 7.99.64


System: NetBSD 7.99.64 NetBSD 7.99.64 (TIM) #0: Sun Mar 5 00:22:00 UTC 2017 amd64
Architecture: x86_64
Machine: amd64

net/py-google-cloud-sdk uses python 2.7. When trying to run, for instance,
gcloud, one gets:

python: not found





Responsible-Changed-From-To: pkg-manager->ryoon
Responsible-Changed-When: Tue, 28 Mar 2017 20:31:39 +0000
Over to maintainer
(needs more REPLACE_PYTHON...)

Subject: Re: pkg/52122: net/py-google-cloud-sdk can't find python
Date: Fri, 28 Apr 2017 14:20:12 +0000

 Looks like it has a script to let you specify python path with
 CLOUDSDK_PYTHON and tries python2 first, we can blindly replace python2
 with ${PYTHONBIN} in these files in the pre-configure stage, but that
 may not be sufficient.

 It should look something like this (perhaps specify less wildcards)

 SUBST_CLASSES+=		python
 SUBST_STAGE.python+=	pre-configure
 SUBST_MESSAGE.python=	replacing hard coded python executable name
 SUBST_FILES.python=	lib/googlecloudsdk/core/*
 SUBST_FILES.python+=	bin/*
 SUBST_SED.python=	-e "s,python2,${PYTHONBIN},g"

 Does that work well enough?


NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD:,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.