Skip to contentSkip to conversation

Custom recipe not working with 1.7.0 any more

DISCUSSION Jens Lucius 2 participants 4 messages Dec 1, 2014

lore
Share & tools
lore
#0 lore raw

Hello,

I am building pjsip with a custom receipe and up until now everything worked fine.

I was building this layer in 1.5.x and 1.6.x, I tried to build my layer in 1.7.0 now and had to change a few minor things with other recipes, but my pjsip receipe is not working any more.

First problem are these lines:

do_configure_prepend () {
echo "#define PJMEDIA_AUDIO_DEV_HAS_ALSA 1" >
pjlib/include/pj/config_site.h
echo "#define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 0" >>
pjlib/include/pj/config_site.h
}

Does complain about not finding the directory. Seems the work is not done from within the work directory any more?

I fixed the path with a ${S} but then I ran into the next issue:

The content of the configure command is a "./aconfigure" which is also not working any more (because we are in the wrong dir?).

If I work around that, I get the next error. Does anyone know what change introduced this and how it can be fixed (or not)?

Thanks,

Jens Lucius

#1 lore raw
Quoted 7 lines · Jens Lucius

do_configure_prepend () {
echo "#define PJMEDIA_AUDIO_DEV_HAS_ALSA 1" >
pjlib/include/pj/config_site.h
echo "#define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 0" >>
pjlib/include/pj/config_site.h
}

Quoted 8 lines

Does complain about not finding the directory. Seems the work is not done from within the work directory any more?

I fixed the path with a ${S} but then I ran into the next issue:

The content of the configure command is a "./aconfigure" which is also not working any more (because we are in the wrong dir?).

My suspicion is that you're inheriting autotools. With the latest release, autotools.bbclass does out-of-tree builds by default (and provides autotools-brokensep.bbclass for recipes which are broken with respect to out-of-tree builds).

This means that many tasks are executed in $B which is not the same as $S anymore, so your configure task should be using ${S} in the paths.

That said you also say that your configure command is "./aconfigure", so it sounds like you shouldn't be inheriting autotools at all.

Ross

#2 lore raw

Am 01.12.2014 17:10, schrieb Burton, Ross:

Quoted 19 lines · On 1 December 2014 at 15:45, Jens Lucius <[email protected]…

do_configure_prepend () {
echo "#define PJMEDIA_AUDIO_DEV_HAS_ALSA 1" >
pjlib/include/pj/config_site.h
echo "#define PJMEDIA_AUDIO_DEV_HAS_PORTAUDIO 0" >>
pjlib/include/pj/config_site.h
}

Does complain about not finding the directory. Seems the work is not done from within the work directory any more?

I fixed the path with a ${S} but then I ran into the next issue:

The content of the configure command is a "./aconfigure" which is also not working any more (because we are in the wrong dir?).

Quoted 7 lines

My suspicion is that you're inheriting autotools. With the latest release, autotools.bbclass does out-of-tree builds by default (and provides autotools-brokensep.bbclass for recipes which are broken with respect to out-of-tree builds).

This means that many tasks are executed in $B which is not the same as $S anymore, so your configure task should be using ${S} in the paths.

That said you also say that your configure command is "./aconfigure", so it sounds like you shouldn't be inheriting autotools at all.

Ross

Thanks, using autotools-brokensep the build works again.

Right now I do

inherit autotools pkgconfig
(or autotools-brokensep now)

What should be used with aconfigure?

Jens

#3 lore raw
Quoted 2 lines · Jens Lucius

What should be used with aconfigure?

Well, what is aconfigure? Is it actually generated by autoconf, or something hand-coded? If it's not autoconf then you shouldn't be using the autotools classes.

Ross