On Fri, 2020-10-23 at 07:00 +0100, Ken Moffat via blfs-dev wrote: > On Thu, Oct 22, 2020 at 04:44:19PM +0100, Ken Moffat via blfs-dev > wrote: > > On Thu, Oct 22, 2020 at 11:24:52PM +0800, Xi Ruoyao via blfs-dev > > wrote: > > > On 2020-10-22 16:14 +0100, Ken Moffat via blfs-dev wrote: > > > > On Thu, Oct 22, 2020 at 06:25:59AM -0500, Bruce Dubbs via blfs- > > > > dev wrote: > > > > > On 10/22/20 12:56 AM, DJ Lucas via blfs-dev wrote: > > > > > > On October 21, 2020 10:48:39 PM CDT, Bruce Dubbs via blfs- > > > > > > dev > > > > > > <blfs-dev@lists.linuxfromscratch.org> wrote: > > > > > > > On 10/21/20 10:06 PM, DJ Lucas via blfs-dev wrote: > > > > Ywah, I've now found a non-book package (youtube-dl) which defaults > > to '/usr/bin/env python' (in its Makefile) but can be overridden by > > passing PYTHON=/usr/bin/python3 (or probably just =python3). > > > > It turns out that whatever we do will probably cause some work. > > > Reluctantly, I have to go with a python symlink. Out of the more > than 48000 tests in clang-11.0, one uses /usr/bin/env/python. >
When we find something like that, couldn't we use: grep -rl '#!.*python' | xargs sed -i '1{s/python$/python3/;s/python[^3]/python3}' or so? Of course, P2 only scripts would still fail, but at least, nothing would depend on a python symlink. Pierre -- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page