NetBSD Problem Report #52122

From john@TIM.nextvr.com  Tue Mar 28 18:22:13 2017
Return-Path: <john@TIM.nextvr.com>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 2D6907A1F9
	for <gnats-bugs@gnats.NetBSD.org>; Tue, 28 Mar 2017 18:22:13 +0000 (UTC)
Message-Id: <201703281822.v2SIM8WS027161@TIM.nextvr.com>
Date: Tue, 28 Mar 2017 18:22:08 GMT
From: john@ziaspace.com
Reply-To: john@ziaspace.com
To: gnats-bugs@NetBSD.org
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
>Originator:     john@ziaspace.com
>Release:        NetBSD 7.99.64
>Organization:

>Environment:


System: NetBSD tim.nextvr.com 7.99.64 NetBSD 7.99.64 (TIM) #0: Sun Mar 5 00:22:00 UTC 2017 john@tim.nextvr.com:/usr/obj-amd64/sys/arch/amd64/compile/TIM amd64
Architecture: x86_64
Machine: amd64
>Description:

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

usr/local/py27-google-cloud-sdk/bin/gcloud
python: not found

>How-To-Repeat:

>Fix:


>Release-Note:

>Audit-Trail:

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


From: coypu@sdf.org
To: gnats-bugs@netbsd.org
Cc: 
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_FILES.python+=	install.sh
 SUBST_SED.python=	-e "s,python2,${PYTHONBIN},g"

 Does that work well enough?

>Unformatted:

NetBSD Home
NetBSD PR Database Search

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