[FFmpeg-devel] [PATCH] doc/texi2pod: use env program to detect location of perl interpreter program

Stefano Sabatini stefasab at gmail.com
Fri Aug 10 23:19:44 CEST 2012


On date Friday 2012-08-10 14:12:46 +0200, Clément Bœsch encoded:
> On Fri, Aug 10, 2012 at 01:55:18PM +0200, Michael Niedermayer wrote:
> > On Fri, Aug 10, 2012 at 11:51:57AM +0200, Stefano Sabatini wrote:
> > > Should fix perl detection in case perl is not installed in /usr/bin.
> > > 
> > > Also use an explicit "use warnings" pragma rather than relying on -w,
> > > since many OS interpret the second part of the shebang line as an unsplit
> > > argument (like "perl -w").
> > > ---
> > >  doc/texi2pod.pl |    4 +++-
> > >  1 files changed, 3 insertions(+), 1 deletions(-)
> > > 
> > > diff --git a/doc/texi2pod.pl b/doc/texi2pod.pl
> > > index 94323be..36e3ae3 100755
> > > --- a/doc/texi2pod.pl
> > > +++ b/doc/texi2pod.pl
> > > @@ -1,4 +1,4 @@
> > > -#! /usr/bin/perl -w
> > > +#!/usr/bin/env perl
> > 
> > wont work on haiku as theres no /usr/bin there it seems
> > 
> 
> The other patch calling "perl texi2pod.pl..." should solve that. It seems
> to be the only correct way.

I'll drop this patch, since on "normal" systems it won't fix any
problem (assuming perl is in the standard place) and on "weird" system
it won't fix the problem anyway (since we can't predict where env is
located).
-- 
FFmpeg = Freak and Friendly Mastering Prodigious Explosive Geek


More information about the ffmpeg-devel mailing list