bison: add flex dependency
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
@@ -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
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@@ -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
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.
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
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.
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.
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