Re: detecting the invoking perl

2004-12-29 Thread Ovid
--- [EMAIL PROTECTED] wrote:

 Hi All.
 
 In the bryar distribution, i write out a bryar-newblog script that
 sets up a
 blog in the current directory.  There is a bug filed on rt.cpan.org
 about this
 script's reliance on /usr/bin/perl.

*If* I understand what you're asking, read the docs for:

http://search.cpan.org/~mschwern/ExtUtils-MakeMaker-6.25/lib/ExtUtils/MakeMaker.pm

The bug you are referring to appears to be: 
http://rt.cpan.org/NoAuth/Bug.html?id=6588

bryar-newblog is referenced in the EXE_FILES of the Makefile.PL. and
it's shebang line is #!/usr/bin/perl.

According to the ExtUtils::MakeMaker docs:

If your executables start with something like #!perl
or #!/usr/bin/perl MakeMaker will change this to the
path of the perl 'Makefile.PL' was invoked with so 
the programs will be sure to run properly even if perl
is not in /usr/bin/perl.

So, if the bug author is still finding the shebang line is wrong, I
would suggest either they ran Makefile.PL with the wrong Perl or there
is a bug in their ExtUtils::MakeMaker setup.

Does this answer the question?

Cheers,
Ovid

=
Silence is Evil
http://users.easystreet.com/ovid/philosophy/decency.html
Ovid   http://www.perlmonks.org/index.pl?node_id=17000
Web Programming with Perl  http://users.easystreet.com/ovid/cgi_course/


Re: detecting the invoking perl

2004-12-29 Thread jason
Quoting Ovid [EMAIL PROTECTED]:
http://search.cpan.org/~mschwern/ExtUtils-MakeMaker-6.25/lib/ExtUtils/MakeMaker.pm

 The bug you are referring to appears to be:
 http://rt.cpan.org/NoAuth/Bug.html?id=6588

 bryar-newblog is referenced in the EXE_FILES of the Makefile.PL. and
 it's shebang line is #!/usr/bin/perl.

 According to the ExtUtils::MakeMaker docs:

 If your executables start with something like #!perl
 or #!/usr/bin/perl MakeMaker will change this to the
 path of the perl 'Makefile.PL' was invoked with so
 the programs will be sure to run properly even if perl
 is not in /usr/bin/perl.

 So, if the bug author is still finding the shebang line is wrong, I
 would suggest either they ran Makefile.PL with the wrong Perl or there
 is a bug in their ExtUtils::MakeMaker setup.

 Does this answer the question?


Yes it does.  Cool.  I was always concerned about this, but haven't had an
impetus to find out what the deal was/fix it until i wanted to close out that
bug.

Thanks Randall and Ovid for the pointers.

/me ducks now for not reading the make maker documentation.  It never occurred
to me that this was install magic.

-jason gessner
[EMAIL PROTECTED]