Re: [gentoo-portage-dev] [PATCH] Use env to find python

2020-06-17 Thread Michał Górny
On Wed, 2020-06-17 at 10:18 +0200, Ulrich Mueller wrote: > > > > > > On Tue, 16 Jun 2020, Michał Górny wrote: > > '/usr/bin/env python' (with no extra options) is the portable shebang. > > I still think this is a gross hack. You want your script to use the > correct interpreter (which is in

Re: [gentoo-portage-dev] [PATCH] Use env to find python

2020-06-17 Thread Ulrich Mueller
> On Tue, 16 Jun 2020, Michał Górny wrote: > '/usr/bin/env python' (with no extra options) is the portable shebang. I still think this is a gross hack. You want your script to use the correct interpreter (which is in /usr/bin, or the path substituted for it at install time), not some random

Re: [gentoo-portage-dev] [PATCH] Use env to find python

2020-06-17 Thread Fabian Groffen
On 16-06-2020 23:10:28 -0500, Sid Spry wrote: > On Tue, Jun 16, 2020, at 3:57 PM, Michał Górny wrote: > > '/usr/bin/env python' (with no extra options) is the portable shebang. > > > > I added `-S` to preserve the options passed via the shebang line. It seems > they can be left off, does anyone

Re: [gentoo-portage-dev] [PATCH] Use env to find python

2020-06-16 Thread Sid Spry
On Tue, Jun 16, 2020, at 3:57 PM, Michał Górny wrote: > On Tue, 2020-06-16 at 15:19 -0400, Mike Gilbert wrote: > > On Tue, Jun 16, 2020 at 1:55 PM Zac Medico wrote: > > > On 6/16/20 10:46 AM, Mike Gilbert wrote: > > > > On Tue, Jun 16, 2020 at 1:45 PM Mike Gilbert wrote: > > > > > On Mon, Jun

Re: [gentoo-portage-dev] [PATCH] Use env to find python

2020-06-16 Thread Michał Górny
On Tue, 2020-06-16 at 15:19 -0400, Mike Gilbert wrote: > On Tue, Jun 16, 2020 at 1:55 PM Zac Medico wrote: > > On 6/16/20 10:46 AM, Mike Gilbert wrote: > > > On Tue, Jun 16, 2020 at 1:45 PM Mike Gilbert wrote: > > > > On Mon, Jun 15, 2020 at 9:39 AM Sid Spry wrote: > > > > > On Mon, Jun 15,

Re: [gentoo-portage-dev] [PATCH] Use env to find python

2020-06-16 Thread Mike Gilbert
On Tue, Jun 16, 2020 at 1:55 PM Zac Medico wrote: > > On 6/16/20 10:46 AM, Mike Gilbert wrote: > > On Tue, Jun 16, 2020 at 1:45 PM Mike Gilbert wrote: > >> > >> On Mon, Jun 15, 2020 at 9:39 AM Sid Spry wrote: > >>> > >>> On Mon, Jun 15, 2020, at 2:36 AM, Ulrich Mueller wrote: > But we know

Re: [gentoo-portage-dev] [PATCH] Use env to find python

2020-06-16 Thread Zac Medico
On 6/16/20 10:46 AM, Mike Gilbert wrote: > On Tue, Jun 16, 2020 at 1:45 PM Mike Gilbert wrote: >> >> On Mon, Jun 15, 2020 at 9:39 AM Sid Spry wrote: >>> >>> On Mon, Jun 15, 2020, at 2:36 AM, Ulrich Mueller wrote: But we know that it is in /usr/bin, so why add yet another indirection?

Re: [gentoo-portage-dev] [PATCH] Use env to find python

2020-06-16 Thread Mike Gilbert
On Tue, Jun 16, 2020 at 1:45 PM Mike Gilbert wrote: > > On Mon, Jun 15, 2020 at 9:39 AM Sid Spry wrote: > > > > On Mon, Jun 15, 2020, at 2:36 AM, Ulrich Mueller wrote: > > > But we know that it is in /usr/bin, so why add yet another indirection? > > > > > > Attachments: > > > * signature.asc > >

Re: [gentoo-portage-dev] [PATCH] Use env to find python

2020-06-16 Thread Mike Gilbert
On Mon, Jun 15, 2020 at 9:39 AM Sid Spry wrote: > > On Mon, Jun 15, 2020, at 2:36 AM, Ulrich Mueller wrote: > > But we know that it is in /usr/bin, so why add yet another indirection? > > > > Attachments: > > * signature.asc > > Ah, sorry -- I forgot to note this here. If you wish to support

Re: [gentoo-portage-dev] [PATCH] Use env to find python

2020-06-15 Thread Sid Spry
On Mon, Jun 15, 2020, at 2:36 AM, Ulrich Mueller wrote: > But we know that it is in /usr/bin, so why add yet another indirection? > > Attachments: > * signature.asc Ah, sorry -- I forgot to note this here. If you wish to support prefix it is possible it may not be in /usr/bin. Granted I am not

Re: [gentoo-portage-dev] [PATCH] Use env to find python

2020-06-15 Thread Ulrich Mueller
But we know that it is in /usr/bin, so why add yet another indirection? signature.asc Description: PGP signature

[gentoo-portage-dev] [PATCH] Use env to find python

2020-06-14 Thread Sid Spry
>From b3854bd9791bb21d7284ef6284a3fb7d4b585412 Mon Sep 17 00:00:00 2001 From: Sid Spry Date: Sun, 14 Jun 2020 23:29:46 -0500 Subject: [PATCH] Use env to find python To: gentoo-portage-dev@lists.gentoo.org --- bin/archive-conf | 2 +- bin/binhost-snapshot | 2 +- bin/check-implicit-pointer-usage