[oe] perl-native fails on Ubuntu 11.04

Ulf Samuelsson ulf.samuelsson at atmel.com
Sun May 15 13:15:54 UTC 2011


2011-05-15 14:17, Gary Thomas skrev:
> On 05/14/2011 04:43 PM, Ulf Samuelsson wrote:
>>
>>> Skickat: lö 2011-05-14 16:32
>>> Till: openembedded-devel at lists.openembedded.org
>>> Ämne: Re: [oe] perl-native fails on Ubuntu 11.04
>>>
>>> On 05/14/2011 01:39 AM, Ulf Samuelsson wrote:
>>>> 2011-05-05 12:57, Gary Thomas skrev:
>>>>> On 05/05/2011 03:50 AM, Søren Holm wrote:
>>>>>> Please apply this patch to make perl-native build on Ubuntu 11.04
>>>>>>
>>>>>> https://gist.github.com/raw/925006/4217f358fb00b5b7f1dfbd1ce5f4afa4f64b0bb0/0001-perl-native-multilib-patch-for-ubuntu-11.04.patch 
>>>>>>
>>>>>>
>>>>> This patch only works for x86_64 systems. A corrected version
>>>>> replaces `uname -m` with * in
>>>>> ++test -f /usr/lib/*-linux-gnu/libc.so&&
>>>>> glibpth="/usr/lib/*-linux-gnu $glibpth"
>>>>>
>>>>
>>>> Yes , Just installed Ubuntu 11.04 on a machine and I tried that patch
>>>> and failed.
>>>> 'uname -m` returns i686 but the library is in i386-linux-gnu
>>>> I symlinked i686-linux-gnu to i386-linux-gnu, and then the build 
>>>> completes.
>>>>
>>>> `uname -i` will return i386 so that is an alternative as well.
>>> On my x86_64 ubuntu 10.04 box it returns unknown, so I think we'll have
>>> to use the glob.
>>>
>>
>> How about using:
>> dirname `find /usr/lib/*-linux-gnu/libc.so`
>
> That's no different than just the glob
>

I may be mistaken, but I think that with the glob,
glibpth will contain    "/usr/lib/*-linux-gnu"
with the proposed patch,
glibpth will contain (on my machine) "/usr/lib/i386-linux-gnu"

Not a big difference, I admit, but I think the latter is a tad more 
efficient.

BR
Ulf Samuelsson




More information about the Openembedded-devel mailing list