Skip to contentSkip to conversation

pcre staging (was: Re: new staging breaks apache2)

DISCUSSION Frans Meulenbroeks 1 participant 1 message Dec 13, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I've dived into this problem.
The root cause is that pcre-config is not staged properly for package pcre No idea why, maybe because it is part of the -dev package.
I tried to dive into this and peeked at classes/autotools.bbclass but didn't manage to find the cause
(or maybe I did, but in that case I didn't find the fix).

What I saw were three references to STAGE_TEMP_PREFIX . However a grep -r on my openembedded dir did not deliver an indication on where this var is set.
so either this is the problem, or I am totally lost wrt this issue.

Anyway, I've fixed things for now by re-adding do_stage and explicitly stage pcre-config.
This works and solves the breakage I had introduced by this. Apache2 builds fine with this fix.

Looking for an expert opinion on how to really fix this

Frans.

PS: probably I would prefer it if the STAGE_TEMP dir remains and is not removed. This could help diagnosing things.

2009/12/13 Frans Meulenbroeks <[email protected]>:

Quoted 36 lines

Hi,

I changed apache to use libpcre and also moved libpcre to the new staging. (effectively removing do_stage)
However, apparently things do not work as the should.

apparently things seemed to work so I committed my work.
However after changing one more thing in apache, it does not build any more. I get an error in configure stating:
configure: error: Did not find pcre-config script at /home/frans/oe/tmp_angstrom/staging/armv7a-angstrom-linux-gnueabi/usr/bin/..

In the libpcre work dir it creates:
./package/usr/bin/pcre-config

would expect this to end up in staging too with the new staging.

However, if I run a find for pcre-config in staging I get:
./i686-linux/usr/bin/armv5te-angstrom-linux-gnueabi/pcre-config ./i686-linux/usr/bin/armv7a-angstrom-linux-gnueabi/pcre-config ./armv7a-angstrom-linux-gnueabi/usr/share/doc/pcre/pcre-config.txt ./armv7a-angstrom-linux-gnueabi/usr/share/doc/pcre/html/pcre-config.html

no ./armv7a-angstrom-linux-gnueabi/usr/bin/pcre-config

What did I do wrong/what went wrong?????

Totally puzzled.
Will dig into this tomorrow (it is now 1 am here so little chance I can find a decent solution, need some sleep first).
Any suggestions/help is appreciated (and apologies for breaking the apache2 build (and yes, I could revert but actually the old version was not really sound either).

Frans