develooper Front page | perl.perl5.porters | Postings from June 2008

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

Thread Next
From:
Bram via RT
Date:
June 11, 2008 05:35
Subject:
[perl #53328] [PATCH] pwd not found (was: Trying to build perl5.8.3 under Maemo environment.)
Message ID:
rt-3.6.HEAD-18229-1213180300-240.53328-15-0@perl.org
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

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About