From owner-freebsd-ports@freebsd.org Sun Jun 28 08:21:01 2015 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 176F598EF06; Sun, 28 Jun 2015 08:21:01 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: from mail-pd0-x232.google.com (mail-pd0-x232.google.com [IPv6:2607:f8b0:400e:c02::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DCA361F85; Sun, 28 Jun 2015 08:21:00 +0000 (UTC) (envelope-from koobs.freebsd@gmail.com) Received: by pdcu2 with SMTP id u2so99014732pdc.3; Sun, 28 Jun 2015 01:21:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:reply-to:subject:references:to:from:message-id:date :user-agent:mime-version:in-reply-to:content-type :content-transfer-encoding; bh=bazAskVUeIhhxcnj42kI/SHOTE7YASC4ayy4c8Xnq+U=; b=L44T7xvde7i1NKVrS3A/VkolPTWj+0lOOrEvnaAIcpwMMJnbpn57+T2K8z3a5nbwcU Y73C8WfaZo0IQfYyRgM0Wv3YL0YV3URqvoIEcwLlGAlgBAeTbVniM4e64t9c7nE83BdV 8SmDR2ayoaQA+EO8yJDfib5j/lkd4e/MbEMCokpTuNz0PvxoTu/Vp46MiFa+nBbtBsS5 qwlwSZuLuoPUyiSwr9r5QghuB9jhNOU6U7ID37GIAIW/y8vmuDXN2P0xsUbIVAbqH6oR iprerWDlCOx/4ReC7eCPqfUQF85Rp/gF1oZ5eKRQV85GaLdcJPU+RgwiXvyWYw5AC8Vg E7uw== X-Received: by 10.66.164.161 with SMTP id yr1mr19970051pab.63.1435479660451; Sun, 28 Jun 2015 01:21:00 -0700 (PDT) Received: from ?IPv6:2001:44b8:31ae:7b01::2? (2001-44b8-31ae-7b01-0000-0000-0000-0002.static.ipv6.internode.on.net. [2001:44b8:31ae:7b01::2]) by mx.google.com with ESMTPSA id wm8sm35258275pbc.19.2015.06.28.01.20.58 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Jun 2015 01:21:00 -0700 (PDT) Sender: Kubilay Kocak Reply-To: koobs@FreeBSD.org Subject: Re: python_CMD in shebangfix.mk References: <20150628013453.3b38e871@bsd64.grem.de> To: Michael Gmelin , "freebsd-ports@freebsd.org" , python@FreeBSD.org, Marcus von Appen From: Kubilay Kocak Message-ID: <558FAE66.4050101@FreeBSD.org> Date: Sun, 28 Jun 2015 18:20:54 +1000 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.0 MIME-Version: 1.0 In-Reply-To: <20150628013453.3b38e871@bsd64.grem.de> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 28 Jun 2015 08:21:01 -0000 On 28/06/2015 9:34 AM, Michael Gmelin wrote: > This has been discussed before on freebsd-python: > > http://lists.freebsd.org/pipermail/freebsd-python/2014-May/006964.html > > I just found myself writing > > python_OLD_CMD= /usr/bin/env python > python_CMD= ${PYTHON_CMD} > > as python_CMD is /usr/local/bin/python by default, which seems to be > against > > https://wiki.freebsd.org/Python/PortsPolicy > > which says > > "Executable scripts being installed MUST use ${PYTHON_CMD as shebang > line. See: Mk/Uses/shebangfix.mk" > > So > > python_CMD?= ${PYTHON_CMD} would seem a reasonable default. > > Also, adding "/usr/bin/env " as an alternative > _OLD_CMD would be useful. > > - Michael > This seems reasonable, I recall thinking a similar thinge thing last week. CC'ing python@ and mva@ who created that entry