[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]

[perl #53328] [PATCH] pwd not found (was: Trying to build perl5.8.3 under Maemo environment.)



On Fri Apr 25 04:09:51 2008, devendra.purbiya@gmail.com wrote:
> Hi,
>    I am trying to build perl under Maemo X86 target. But I get the 
errors
> 
> make[2]: Leaving directory `/home/devendra/perl-5.8.3/x2p'
> 
>         Making B (dynamic)
> Can't figure out your cwd! at ../../lib/ExtUtils/MakeMaker.pm line 
163.
> Warning: No Makefile!
> make[2]: Entering directory `/home/devendra/perl-5.8.3/ext/B'
> make[2]: *** No rule to make target `config'.  Stop.
> make[2]: Leaving directory `/home/devendra/perl-5.8.3/ext/B'
> /scratchbox/tools/bin/make config failed, continuing anyway...
> make[2]: Entering directory `/home/devendra/perl-5.8.3/ext/B'
> make[2]: *** No rule to make target `all'.  Stop.
> make[2]: Leaving directory `/home/devendra/perl-5.8.3/ext/B'
> make[1]: *** [lib/auto/B/B.so] Error 2
> make[1]: Leaving directory `/home/devendra/perl-5.8.3'
> make: *** [libperl.so.5.8.3] Error 1

Attached is a patch that makes the output of Cwd.pm a bit more useful.

Before it would silently return an empty string if pwd was not found in 
/usr/bin/pwd (and some other paths) now it returns:

pwd was not found in '/bin/pwd', '/usr/bin/pwd', '/QOpenSys/bin/pwd';
cwd() and fastgetcwd() might not work. Either create a symlink or modify 
Cwd.pm (look for  my \$pwd_cmd  )


If pwd fails for whatever reason then it now shows the error that was 
returned. Before it would silently return an empty string.


Kind regards,

Bram

patch_Cwd.pm


[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index][Thread Index][Top&Search][Original]