develooper Front page | perl.perl5.porters | Postings from September 2013

Re: Question on porting perl 5.16 to Android (no /bin/sh)

Thread Previous | Thread Next
From:
Brian Fraser
Date:
September 4, 2013 22:38
Subject:
Re: Question on porting perl 5.16 to Android (no /bin/sh)
Message ID:
CA+nL+nbCSqocHo+4DZ8OPpc=xpjxecPH3AMmcGmD-_vDOodF4w@mail.gmail.com
On Wed, Sep 4, 2013 at 7:04 PM, Ben Greear <greearb@candelatech.com> wrote:

> On 09/04/2013 01:58 PM, Ben Greear wrote:
>
>> On 09/04/2013 01:49 PM, Ben Greear wrote:
>>
>>> On 09/04/2013 01:00 PM, Brian Fraser wrote:
>>>
>>>> On Wed, Sep 4, 2013 at 4:56 PM, Ben Greear <greearb@candelatech.com<mailto:
>>>> greearb@candelatech.**com <greearb@candelatech.com>>> wrote:
>>>>
>>>>     I tried to condense your original email instructions down to
>>>> specifics for my machine,
>>>>     but I'm having no luck.  I'm using ugmeir's perl repo as you
>>>> suggested...I did not choose
>>>>     any particular branch, I just cloned it from github.
>>>>
>>>>
>>>> I'm Hugmeir, so :)
>>>> You want the configure-for-cross branch, not the main one. I think that
>>>> might be the issue.
>>>>
>>>
>>> Ahh, good to know.  And I fixed the spelling in my directory name :)
>>>
>>> It does a lot more now, but still has some issues.  I'll go poke
>>> at the run-adb-shell, I suspect it may be mis-behaving on my system...
>>>
>>
>> Ok, problem was that my /data/data/candela.lanforge/**local dir was owned
>> by root user and not writable by the 'shell' user.
>>
>> chmod 777 /data/data/candela.lanforge/**local
>>
>> fixed the problem.
>>
>> Continuing on....
>>
>
> Ok, now I see this error in the command:
>
> (I skiped 'make test', first try of it seemed to hang,
> or maybe it was just going to take a really long time).
>

It just takes a long time. You can check the progress by using 'adb shell',
then cd'ing to the target directory and using cat on output.stdout


>
> make DESTDIR=/tmp/android-perl install
>
> ....
>
> make[2]: Leaving directory `/home/greearb/android/perl-**
> cross-hugmeir/x2p'
>
>         Everything is up to date. Type 'make test' to run test suite.
> host/miniperl installperl --destdir=/tmp/android-perl
> WARNING: You've never run 'make test' or some tests failed! (Installing
> anyway.)
>   ...//perl5.18.0
> Use of uninitialized value $dev1 in numeric eq (==) at ./install_lib.plline 123.
> Use of uninitialized value $dev1 in numeric eq (==) at ./install_lib.plline 123.
>   ...//../lib/perl5/5.18.0/**linux-androideabi/encoding.pm
>   ...//../lib/perl5/5.18.0/subs.**pm <http://subs.pm>
>   ...//../lib/perl5/5.18.0/vars.**pm <http://vars.pm>
>
>
> ...
>
>   ...//../lib/perl5/5.18.0/pod/**perltooc.pod
>   ...//../lib/perl5/5.18.0/pod/**perltoot.pod
>   ...//../lib/perl5/5.18.0/pod/**a2p.pod
> host/miniperl installman --destdir=/tmp/android-perl
> Can't load module Encode, dynamic loading not available in this perl.
>   (You may need to build a new perl executable which either supports
>   dynamic loading or has the Encode module statically linked into it.)
>  at lib/Pod/Man.pm line 34.
> Compilation failed in require at lib/Pod/Man.pm line 34.
> BEGIN failed--compilation aborted at lib/Pod/Man.pm line 34.
> Compilation failed in require at installman line 13.
> BEGIN failed--compilation aborted at installman line 13.
> make[1]: *** [install.man] Error 255
> make[1]: Leaving directory `/home/greearb/android/perl-**cross-hugmeir'
> make: *** [install] Error 2
>
>
> I imagine I can get by with out this particular feature...is there any
> way to selectively disable this so the install can complete?
>
>
I just ran this locally and got the same error, but by that point
everything but a handful of docs should be installed; my DESTDIR has
everything in it (there's some configure option or another to get rid of
the usr/local bit):

$ ls /tmp/androidperl
usr
$ ls /tmp/androidperl/usr
local
$ ls /tmp/androidperl/usr/local
bin  lib

Thread Previous | 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