Skip Menu |

This queue is for tickets about the pmcheck CPAN distribution.

Report information
The Basics
Id: 73699
Status: resolved
Priority: 0/
Queue: pmcheck

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: Incorrect shebang after installation (v1.1.5)
After installing pmcheck, the shebang is still #!/usr/bin/env perl I would instead expect something like #!/home/cpansand/var/ctps/5124RC2/install/perl-v5.12.4-RC2/bin/perl -w eval 'exec /home/cpansand/var/ctps/5124RC2/install/perl-v5.12.4-RC2/bin/perl -w -S $0 ${1+"$@"}' if 0; # not running under some shell especially if the script is installed for another perl instead the system's perl. I think ExtUtils::MakeMaker can do this automatically if the original shebang is /usr/bin/perl, not /usr/bin/env perl Regards, Slaven
On Tue Jan 03 02:42:50 2012, SREZIC wrote: Show quoted text
> After installing pmcheck, the shebang is still > > #!/usr/bin/env perl > > I would instead expect something like > > #!/home/cpansand/var/ctps/5124RC2/install/perl-v5.12.4-RC2/bin/perl -w > eval 'exec > /home/cpansand/var/ctps/5124RC2/install/perl-v5.12.4-RC2/bin/perl -w -S > $0 ${1+"$@"}' > if 0; # not running under some shell > > especially if the script is installed for another perl instead the > system's perl. > > I think ExtUtils::MakeMaker can do this automatically if the original > shebang is /usr/bin/perl, not /usr/bin/env perl > > Regards, > Slaven
Why do you want to change the shebang line? Andrew
On 2012-01-03 06:11:09, xanni wrote: Show quoted text
> On Tue Jan 03 02:42:50 2012, SREZIC wrote:
> > After installing pmcheck, the shebang is still > > > > #!/usr/bin/env perl > > > > I would instead expect something like > > > >
#!/home/cpansand/var/ctps/5124RC2/install/perl-v5.12.4-RC2/bin/perl -w Show quoted text
> > eval 'exec > > /home/cpansand/var/ctps/5124RC2/install/perl-v5.12.4-RC2/bin/perl -w -S > > $0 ${1+"$@"}' > > if 0; # not running under some shell > > > > especially if the script is installed for another perl instead the > > system's perl. > > > > I think ExtUtils::MakeMaker can do this automatically if the original > > shebang is /usr/bin/perl, not /usr/bin/env perl > > > > Regards, > > Slaven
> > Why do you want to change the shebang line?
My system perl is still 5.8.9 (standard FreeBSD 8.0). So if I execute pmcheck located in the custom 5.12.4 directory, it fails: $ /home/cpansand/var/ctps/5124RC2/install/perl-v5.12.4-RC2/bin/pmcheck Perl v5.10.0 required--this is only v5.8.9, stopped at /home/cpansand/var/ctps/5124RC2/install/perl-v5.12.4-RC2/bin/pmcheck line 52. BEGIN failed--compilation aborted at /home/cpansand/var/ctps/5124RC2/install/perl-v5.12.4-RC2/bin/pmcheck line 52. Regards, Slaven
Fixed in pmcheck v1.1.6. Thanks for your feedback! Andrew