From owner-freebsd-ports@FreeBSD.ORG Wed Feb 19 15:49:17 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 299ECFB7; Wed, 19 Feb 2014 15:49:17 +0000 (UTC) Received: from mail-ee0-x22c.google.com (mail-ee0-x22c.google.com [IPv6:2a00:1450:4013:c00::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 8EFA814C0; Wed, 19 Feb 2014 15:49:16 +0000 (UTC) Received: by mail-ee0-f44.google.com with SMTP id c13so323317eek.3 for ; Wed, 19 Feb 2014 07:49:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=y3M1DoroQcXfAN51NRx/IluPhQkxB95xkmeLL5rqdUU=; b=Xz/VNbZNou/Fr5hd0w7V1odlHWIR63l1aqrrwaZHwCblE6kU4Bdk5/SKwOiZQ7K3tF uHHX+MtJsFxGdllOXZ/LeayRJzKqw39DgGOBzTgHAsieHEwgqmARTAUoCN4sE9wxpDXT 5G63vp2YXoRgz53TDoKAdYfkXR2qHgphEatd49mZxGsYwq7JkRjoE0baYX/vyArXuBi1 30S2MbhH/JBZXs9Si6JujbRKCEgs81fYw1zq4y+8SazEJz+S3ShGEn6996NH5fh1br6e +WtAI4alDCP1meY+VW0f9vN+fv+NQke3AntUAKkP1qLpSu3GA1KCTgoCSyTDKtkze9xP tmfA== X-Received: by 10.15.22.65 with SMTP id e41mr40763222eeu.5.1392824954279; Wed, 19 Feb 2014 07:49:14 -0800 (PST) Received: from DaemON.home (078088206038.walbrzych.vectranet.pl. [78.88.206.38]) by mx.google.com with ESMTPSA id 46sm2148364ees.4.2014.02.19.07.49.12 for (version=SSLv3 cipher=RC4-SHA bits=128/128); Wed, 19 Feb 2014 07:49:13 -0800 (PST) Date: Wed, 19 Feb 2014 16:48:50 +0100 From: Serpent7776 To: freebsd-ports@freebsd.org Subject: Re: What should be in scripts shebangs for python2? Message-ID: <20140219164850.1e17fe17@DaemON.home> In-Reply-To: <254945186.20140219190201@serebryakov.spb.ru> References: <254945186.20140219190201@serebryakov.spb.ru> X-Mailer: Claws Mail 3.9.3 (GTK+ 2.24.22; amd64-portbld-freebsd9.2) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: lev@FreeBSD.org X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 19 Feb 2014 15:49:17 -0000 On Wed, 19 Feb 2014 19:02:01 +0400 Lev Serebryakov wrote: > Hello, Freebsd-ports. > > My port uses some pythons scripts to configure (it is not pythonn-related > by itself, only authors of this software use python scripts on build > stage). > > How should I patch these scripts to work? It looks like > /usr/local/bin/python2 is installed by devel/python2 port, and > USE_PYTHON_BUILD=yes doesn't depends on this port, but on python27, which > could be changed in future or by users's request, so I don't want to > hardcode /usr/local/bin/python2.7, too... > I think it would be #!/usr/bin/env python2 -- // // Serpent7776 //