Skip to contentSkip to conversation

bison: add flex dependency

PATCH In review Jason Kridner 3 participants 7 messages Aug 16, 2010 – Aug 18, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 bison: add flex dependency

It seems that bison was missing this dependency. I'm not 100% certain this is the right way to add it, so I'm leaving off my signed-off-by in hopes that someone will ack this who really knows.

---
 recipes/bison/bison.inc |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
recipes/bison/bison.inc +2 -2
index 22672e2..d32f454 100644
@@ -3,12 +3,12 @@ HOMEPAGE = "http://www.gnu.org/software/bison/"
 LICENSE = "GPL"
 SECTION = "devel"
 PRIORITY = "optional"
-DEPENDS = "virtual/libintl"
+DEPENDS = "virtual/libintl virtual/flex"
 
 SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \
 	   file://m4.patch"
 
-INC_PR = "r7"
+INC_PR = "r8"
 
 inherit autotools gettext
 
Signature · 1 line
1.5.6.4
#1 lore raw

2010/8/16 Jason Kridner <[email protected]>:

Quoted 25 lines

It seems that bison was missing this dependency.  I'm not 100% certain this is the right way to add it, so I'm leaving off my signed-off-by in hopes that someone will ack this who really knows.

---
 recipes/bison/bison.inc |    4 ++--

 1 files changed, 2 insertions(+), 2 deletions(-)
recipes/bison/bison.inc +0 -0
index 22672e2..d32f454 100644
@@ -3,12 +3,12 @@ HOMEPAGE = "http://www.gnu.org/software/bison/"

 LICENSE = "GPL"
 SECTION = "devel"
 PRIORITY = "optional"

recipes/bison/bison.inc +1 -1
-DEPENDS = "virtual/libintl"
+DEPENDS = "virtual/libintl virtual/flex"

 SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \
          file://m4.patch"

recipes/bison/bison.inc +1 -1
-INC_PR = "r7"
+INC_PR = "r8"
Quoted 3 lines

 inherit autotools gettext

--

It is my impression that virtual is only to be used if there can be different packages acting as source (so different providers) (e.g. for gcc, libc, u-boot, kernel etc)
AFAIK that is not the case for flex so I would just have written DEPENDS = "virtual/libintl flex-native"

Anyway, I peeked in the code and I can confirm that a dependency on flex exists. This went unnoticed until now as normally flex was already dragged in by another package.
Either the change from Jason or the line I give above can have my ack.

Frans

#2 lore raw
In reply to Jason Kridner

recipes/bison/bison.inc HOMEPAGE = "http://www.gnu.org/software/bison/" · line 6

Quoted 2 lines · Jason Kridner
recipes/bison/bison.inc +1 -1
-DEPENDS = "virtual/libintl"
+DEPENDS = "virtual/libintl virtual/flex"

Does this actually work? I couldn't immediately spot any obvious package which PROVIDES virtual/flex, and that sounds like a strange kind of virtual to have since I don't think there are any alternative implementations of flex. (But if bison actually depends on lex generically, rather than flex specifically, it might make some sense to introduce a virtual/lex and have flex PROVIDE it.)

p.

#3 lore raw

2010/8/17 Phil Blundell <[email protected]>:

Quoted 11 lines · Jason Kridner

recipes/bison/bison.inc HOMEPAGE = "http://www.gnu.org/software/bison/" · line 6

Quoted 2 lines
recipes/bison/bison.inc +1 -1
-DEPENDS = "virtual/libintl"
+DEPENDS = "virtual/libintl virtual/flex"

Does this actually work?  I couldn't immediately spot any obvious package which PROVIDES virtual/flex, and that sounds like a strange kind of virtual to have since I don't think there are any alternative implementations of flex.  (But if bison actually depends on lex generically, rather than flex specifically, it might make some sense to introduce a virtual/lex and have flex PROVIDE it.)

is there another popular lexer apart from flex?
And will bison build with it?
We build flex-native anyway, so suggest doing the depends as I suggested.

Frans

#4 lore raw
Quoted 13 lines · Frans Meulenbroeks

2010/8/17 Phil Blundell <[email protected]>:

Quoted 11 lines · Jason Kridner

recipes/bison/bison.inc HOMEPAGE = "http://www.gnu.org/software/bison/" · line 6

Quoted 2 lines
recipes/bison/bison.inc +1 -1
-DEPENDS = "virtual/libintl"
+DEPENDS = "virtual/libintl virtual/flex"

Does this actually work? I couldn't immediately spot any obvious package which PROVIDES virtual/flex, and that sounds like a strange kind of virtual to have since I don't think there are any alternative implementations of flex. (But if bison actually depends on lex generically, rather than flex specifically, it might make some sense to introduce a virtual/lex and have flex PROVIDE it.)

Quoted 2 lines

is there another popular lexer apart from flex?
And will bison build with it?

Well, there's lex itself obviously. I'm not sure whether bison will actually work with it, and I guess the majority of lex afficionados will probably be using yacc rather than bison in any case, so it probably isn't all that big a deal. But if bison does indeed support non-flex implementations of lex then it would be nice to expose that in the metadata.

p.

#5 lore raw

2010/8/17 Phil Blundell <[email protected]>:

Quoted 17 lines · Frans Meulenbroeks
Quoted 13 lines

2010/8/17 Phil Blundell <[email protected]>:

Quoted 11 lines · Jason Kridner

recipes/bison/bison.inc HOMEPAGE = "http://www.gnu.org/software/bison/" · line 6

Quoted 2 lines
recipes/bison/bison.inc +1 -1
-DEPENDS = "virtual/libintl"
+DEPENDS = "virtual/libintl virtual/flex"

Does this actually work?  I couldn't immediately spot any obvious package which PROVIDES virtual/flex, and that sounds like a strange kind of virtual to have since I don't think there are any alternative implementations of flex.  (But if bison actually depends on lex generically, rather than flex specifically, it might make some sense to introduce a virtual/lex and have flex PROVIDE it.)

Quoted 2 lines

is there another popular lexer apart from flex?
And will bison build with it?

Quoted 8 lines

Well, there's lex itself obviously.  I'm not sure whether bison will actually work with it, and I guess the majority of lex afficionados will probably be using yacc rather than bison in any case, so it probably isn't all that big a deal.  But if bison does indeed support non-flex implementations of lex then it would be nice to expose that in the metadata.

Guess other packages then also start to depend on a new-to-be-introduced virtual/lex
As I think it is pretty pointless to have this, and as it requires some time to introduce it elsewhere (time that I do not have now), I added a dependency on flex-native and pushed that one

Frans.

#6 lore raw
In reply to Phil Blundell
Quoted 5 lines · Phil Blundell

recipes/bison/bison.inc HOMEPAGE = "http://www.gnu.org/software/bison/" · line 6

Quoted 2 lines · Jason Kridner
recipes/bison/bison.inc +1 -1
-DEPENDS = "virtual/libintl"
+DEPENDS = "virtual/libintl virtual/flex"

Does this actually work?

No. Sorry for the bad patch.

Quoted 16 lines

 I couldn't immediately spot any obvious
package which PROVIDES virtual/flex, and that sounds like a strange kind of virtual to have since I don't think there are any alternative implementations of flex.  (But if bison actually depends on lex generically, rather than flex specifically, it might make some sense to introduce a virtual/lex and have flex PROVIDE it.)

p.

_______________________________________________
Openembedded-devel mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel