Re: [PATCH] pseudo: fix sqlite path and package missing files

Saul Wold
2013-02-05T19:52:58Z

On 02/05/2013 11:15 AM, Peter Seebach wrote:
> On Tue, 5 Feb 2013 09:37:50 +0200
> Constantin Musca <constantinx.musca@intel.com> wrote:
>
>> On 02/05/2013 01:50 AM, Peter Seebach wrote:
>>> On Mon, 4 Feb 2013 23:37:59 +0000
>>> Richard Purdie <richard.purdie@linuxfoundation.org> wrote:
>>>
>>>> Agreed. Can someone send me a patch which makes it all work
>>>> please? :)
>>> I probably can. I think the 1.4.3 patch I sent out recently (sgw was
>>> looking at it, but the binaries weren't up on the downloads server
>>> yet) probably covers most of it, but not the case where
>>> sqlite-libdir isn't lib, which is probably (??) a target-only case.
>>>
>>> Can someone show me a test case where it fails, so I can add that
>>> to my pile of pseudo test cases, and then stare at it for a while?
>>>
>>> -s
>> Here's a test case:
>> 1. local.conf:
>> MACHINE = "qemux86-64"
>> require conf/multilib.conf
>> MULTILIBS = "multilib:lib32"
>> DEFAULTTUNE_virtclass-multilib-lib32 = "x86"
>>
>> 2. build pseudo
>
> *pulls off mask, revealing he was the pseudo maintainer all along*
>
> And I would have gotten away with it, too, if it hadn't been for you
> meddling multilibs!
>
> Okay, got a tentative fix for this in my tree, will probably resend my
> pseudo 1.4.3 patch with this changed, once it makes it through my
> ever-growing collection of pseudo tests.
>
> The guts of the change:
>
> [...]
> +SQLITE_LIB = "${baselib}"
> +SQLITE_LIB_native = "lib"
> +
Do you really mean _class-native here?

Sau!

> # Compile for the local machine arch...
> do_compile () {
> if [ "${SITEINFO_BITS}" = "64" ]; then
> - ${S}/configure --prefix=${prefix} --libdir=${prefix}/lib/pseudo/lib${SITEINFO_BITS} --with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --cflags="${CFLAGS}" --bits=${SITEINFO_BITS} --enable-static-sqlite --without-rpath
> + ${S}/configure --prefix=${prefix} --libdir=${prefix}/lib/pseudo/lib${SITEINFO_BITS} --with-sqlite-lib=${SQLITE_LIB} --with-sqlite=${STAGING_DIR_TARGET}${exec_prefix} --cflags="${CFLAGS}" --bits=${SITEINFO_BITS} --enable-static-sqlite --without-rpath
> else
>
> This appears to be working for all the cases I've tried.
>
> -s
>