Skip to contentSkip to conversation

pcmciautils: fix build to use flex from sysroots, not from host

DISCUSSION Khem Raj 2 participants 4 messages Jun 4, 2010 – Jun 6, 2010

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

Hi

This commit

commit c65ee13298e8c22274b5bcabe06f2116b8b7ebf2

Author:     Dmitry Eremin-Solenikov <[email protected]>
AuthorDate: Fri Jun 4 16:26:17 2010 +0400
Commit:     Dmitry Eremin-Solenikov <[email protected]>
CommitDate: Fri Jun 4 16:44:18 2010 +0400

pcmciautils: fix build to use flex from sysroots, not from host

breaks the build when I have flex-native in ASSUME_PROVIDED. It there any specific reason why one should use flex from hosted sysroot ? is the flex package on all distribution broken for some reason ?

Thanks
-Khem

#1 lore raw

Hello,

Quoted 10 lines · Khem Raj

Hi

This commit

commit c65ee13298e8c22274b5bcabe06f2116b8b7ebf2
Author:     Dmitry Eremin-Solenikov <[email protected]>
AuthorDate: Fri Jun 4 16:26:17 2010 +0400
Commit:     Dmitry Eremin-Solenikov <[email protected]>
CommitDate: Fri Jun 4 16:44:18 2010 +0400

Quoted 8 lines

   pcmciautils: fix build to use flex from sysroots, not from host

breaks the build when I have flex-native in ASSUME_PROVIDED. It there any specific reason why one should use flex from hosted sysroot ? is the flex package on all distribution broken for some reason ?

Then we either:
1) have to put flex in prerequisites, check it in sanity.bbclass (and drop flex-native)
2) have to fix pcmciautils to detect path to flex
3) expand some class to autodetect the flex/bison/etc. programs

Because currently pcmciautils just failed for me because I was building them on the box where I had no flex installed, but build (via some other dependancy) in OE sysroot.

Signature · 2 lines
With best wishes
Dmitry
author
#2 lore raw
Quoted 28 lines · Dmitry Eremin-Solenikov

Hello,

Quoted 10 lines · Khem Raj

Hi

This commit

commit c65ee13298e8c22274b5bcabe06f2116b8b7ebf2
Author:     Dmitry Eremin-Solenikov <[email protected]>
AuthorDate: Fri Jun 4 16:26:17 2010 +0400
Commit:     Dmitry Eremin-Solenikov <[email protected]>
CommitDate: Fri Jun 4 16:44:18 2010 +0400

Quoted 8 lines

   pcmciautils: fix build to use flex from sysroots, not from host

breaks the build when I have flex-native in ASSUME_PROVIDED. It there any specific reason why one should use flex from hosted sysroot ? is the flex package on all distribution broken for some reason ?

Then we either:
1) have to put flex in prerequisites, check it in sanity.bbclass (and drop flex-native)
2) have to fix pcmciautils to detect path to flex
3) expand some class to autodetect the flex/bison/etc. programs

Quoted 3 lines

Because currently pcmciautils just failed for me because I was building them on the box where I had no flex installed, but build (via some other dependancy) in OE sysroot.

Well then you only need it in DEPENDS of pcmciautils thats all and not hardcode it

Quoted 5 lines

--
With best wishes
Dmitry

#3 lore raw

Hello,

Quoted 30 lines · Khem Raj
Quoted 28 lines · Dmitry Eremin-Solenikov

Hello,

Quoted 10 lines · Khem Raj

Hi

This commit

commit c65ee13298e8c22274b5bcabe06f2116b8b7ebf2
Author:     Dmitry Eremin-Solenikov <[email protected]>
AuthorDate: Fri Jun 4 16:26:17 2010 +0400
Commit:     Dmitry Eremin-Solenikov <[email protected]>
CommitDate: Fri Jun 4 16:44:18 2010 +0400

Quoted 8 lines

   pcmciautils: fix build to use flex from sysroots, not from host

breaks the build when I have flex-native in ASSUME_PROVIDED. It there any specific reason why one should use flex from hosted sysroot ? is the flex package on all distribution broken for some reason ?

Then we either:
1) have to put flex in prerequisites, check it in sanity.bbclass (and drop flex-native)
2) have to fix pcmciautils to detect path to flex
3) expand some class to autodetect the flex/bison/etc. programs

Quoted 6 lines
Quoted 3 lines

Because currently pcmciautils just failed for me because I was building them on the box where I had no flex installed, but build (via some other dependancy) in OE sysroot.

Well then you only need it in DEPENDS of pcmciautils thats all and not hardcode it

Fine with me. I'm commiting a patch which will drop the hardcoded path and use just
LEX=flex. That should be fine for both our cases, shan't it?

Quoted 8 lines
Quoted 7 lines

--
With best wishes
Dmitry

Signature · 2 lines
With best wishes
Dmitry