After a system perl update to 5.10.1, M::B transformed
#!/usr/bin/perl
to:
#!/usr/bin/perl5.8.8 -T -w
eval 'exec /usr/bin/perl5.8.8 -T -w -S $0 ${1+"$@"}'
if 0; # not running under some shell
Although no perl 5.8.8 exist in the system. an update to the latest
version of Module::Build did not fix the problem. manually removing the
script and running a "./Build clean" still generated the wrong path.
Running "./Build realclean" was necessary to get the proper path.
IMVHO, having a 'clean' and a 'realclean' target is always a bad sign
for build systems.
This may be/is related to RT #29842 Build.PL: Can't locate the perl
binary used to run this script...
nadim@naquadim [0] Textcast (master)$ perl -V
Summary of my perl5 (revision 5 version 10 subversion 1) configuration:
Platform:
osname=linux, osvers=2.6.31.1, archname=x86_64-linux
uname='linux naquadim 2.6.31.1 #20 smp preempt sun sep 27 21:54:45
cest 2009 x86_64 intel(r) core(tm)2 quad cpu @ 2.66ghz genuineintel
gnulinux '
config_args='-des -Duseshrplib -Darchname=x86_64-linux
-Dcc=x86_64-pc-linux-gnu-gcc -Doptimize=-march=core2 -O2 -pipe
-Dscriptdir=/usr/bin -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr
-Dprivlib=/usr/lib64/perl5/5.10.1
-Darchlib=/usr/lib64/perl5/5.10.1/x86_64-linux
-Dvendorlib=/usr/lib64/perl5/vendor_perl/5.10.1
-Dvendorarch=/usr/lib64/perl5/vendor_perl/5.10.1/x86_64-linux
-Dsitelib=/usr/lib64/perl5/site_perl/5.10.1
-Dsitearch=/usr/lib64/perl5/site_perl/5.10.1/x86_64-linux
-Dman1dir=/usr/share/man/man1 -Dman3dir=/usr/share/man/man3
-Dinstallman1dir=/usr/share/man/man1
-Dinstallman3dir=/usr/share/man/man3 -Dman1ext=1 -Dman3ext=3pm
-Dlibperl=libperl.so.5.10.1 -Dlocincpth= -Duselargefiles
-Dd_semctl_semun -Dinc_version_list=5.10.0 5.10.0/x86_64-linux
-Dcf_by=Gentoo -Dmyhostname=localhost -Dperladmin=root@localhost
-Dinstallusrbinperl=n -Ud_csh -Uusenm -Di_ndbm -Di_gdbm -Di_db
-Dusrinc=/usr/include -Dlibpth=/usr/local/lib64 /lib64 /usr/lib64'
hint=recommended, useposix=true, d_sigaction=define
useithreads=undef, usemultiplicity=undef
useperlio=define, d_sfio=undef, uselargefiles=define, usesocks=undef
use64bitint=define, use64bitall=define, uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='x86_64-pc-linux-gnu-gcc', ccflags ='-fno-strict-aliasing -pipe
-fstack-protector -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64',
optimize='-march=core2 -O2 -pipe',
cppflags='-fno-strict-aliasing -pipe -fstack-protector'
ccversion='', gccversion='4.3.4', gccosandvers=''
intsize=4, longsize=8, ptrsize=8, doublesize=8, byteorder=12345678
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
ivtype='long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='x86_64-pc-linux-gnu-gcc', ldflags =' -fstack-protector'
libpth=/usr/local/lib64 /lib64 /usr/lib64
libs=-lpthread -lnsl -lndbm -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc
-lgdbm_compat
perllibs=-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc
libc=/lib/libc-2.10.1.so, so=so, useshrplib=true,
libperl=libperl.so.5.10.1
gnulibc_version='2.10.1'
Dynamic Linking:
dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags='-Wl,-E'
cccdlflags='-fPIC', lddlflags='-shared -march=core2 -O2 -pipe
-fstack-protector'
Characteristics of this binary (from libperl):
Compile-time options: PERL_DONT_CREATE_GVSV PERL_MALLOC_WRAP
USE_64_BIT_ALL
USE_64_BIT_INT USE_LARGE_FILES USE_PERLIO
Built under linux
Compiled at Feb 18 2010 02:19:56
%ENV:
PERL_AUTHOR_TESTING="1"
PERL_MODULES_PATH="/devel/perl_modules"
@INC:
/usr/lib64/perl5/site_perl/5.10.1/x86_64-linux
/usr/lib64/perl5/site_perl/5.10.1
/usr/lib64/perl5/site_perl
/usr/lib64/perl5/vendor_perl/5.10.1/x86_64-linux
/usr/lib64/perl5/vendor_perl/5.10.1
/usr/lib64/perl5/vendor_perl
/usr/lib64/perl5/5.10.1/x86_64-linux
/usr/lib64/perl5/5.10.1
.