Subject: | Makefile.PL does not find sqlplus on SLES 11 |
CPAN installation of DBD-Oracle-1.60 fails on Suse Enterprise 11 SP2 because sqlplus is now found. Apparently the Perl version 5.10 does not handle pragma filetest access correctly.
Workaround is to try plain modebits first and ACLs only as fallback.
Here is the patch to Makefile.PL:
*** Makefile.PL-orig Mon Apr 1 17:42:12 2013
--- Makefile.PL Tue Apr 9 15:48:00 2013
***************
*** 1510,1520 ****
sub find_bin{
- use filetest 'access';
my $bin = shift;
my $path_sep = $Config{path_sep};
foreach (split(/\Q$path_sep/, $ENV{PATH})){
return "$_/$bin" if -x "$_/$bin";
}
return undef;
}
--- 1510,1523 ----
sub find_bin{
my $bin = shift;
my $path_sep = $Config{path_sep};
foreach (split(/\Q$path_sep/, $ENV{PATH})){
return "$_/$bin" if -x "$_/$bin";
+ {
+ use filetest 'access';
+ return "$_/$bin" if -x "$_/$bin";
+ }
}
return undef;
}