Bill Allombert on Sat, 24 Jan 2015 18:14:24 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Install Perl scripts with #!/usr/bin/env perl


On Sat, Jan 24, 2015 at 12:59:25PM +0100, Karim Belabas wrote:
> * Bill Allombert [2015-01-24 12:29]:
> > On Sat, Jan 24, 2015 at 10:49:43AM +0100, Karim Belabas wrote:
> > > C) For install, we can either
> > > 
> > > * provide
> > > 
> > >   Configure --installed-perl=<run-time perl binary>
> > > 
> > > with Configure's current $perl as a default [ build-machine = target is
> > > a sensible default ]. Of course, "/usr/bin/env perl" is (now) a valid value;
> > 
> > This is a very awkward name for a  Configure option.
> > Either we should use
> > --with-perl=<run-time perl binary>
> 
> I don't feel strongly about it :-) To avoid the confusion with the
> build-time binary ...
> 
> --with-runtime-perl ?
> 
> > or an environment variable
> > PERL=<run-time perl binary>
> 
> Don't understand that one. Who must set the variable ? 
> 
> If the packager, then it's awkward (obscure + must change the variable
> each time a new target is built, effectively the same as Configure --with-perl)

It is no more awkward than for CC, CFLAGS and LDFLAGS
you just do
env PERL="/usr/bin/env perl" ./Configure ...

Cheers,
Bill.