diff options
| author | Richard Purdie <richard@openedhand.com> | 2006-05-09 18:38:19 +0000 |
|---|---|---|
| committer | Richard Purdie <richard@openedhand.com> | 2006-05-09 18:38:19 +0000 |
| commit | b4cb437c6595ff8ac13506e502fe04b1a60c4e04 (patch) | |
| tree | f529de217094f1a49049f90c49d779a49e19cd7c /openembedded/packages/flex | |
| parent | 3baacb49c13a48798d45e30a0a0076ca0b8c9e6a (diff) | |
| download | poky-b4cb437c6595ff8ac13506e502fe04b1a60c4e04.tar.gz | |
Merge packages changes from OE into poky.
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@386 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'openembedded/packages/flex')
| -rw-r--r-- | openembedded/packages/flex/files/flex-lvalue.diff | 36 | ||||
| -rw-r--r-- | openembedded/packages/flex/flex.inc | 1 |
2 files changed, 37 insertions, 0 deletions
diff --git a/openembedded/packages/flex/files/flex-lvalue.diff b/openembedded/packages/flex/files/flex-lvalue.diff new file mode 100644 index 0000000000..56ae539a6c --- /dev/null +++ b/openembedded/packages/flex/files/flex-lvalue.diff | |||
| @@ -0,0 +1,36 @@ | |||
| 1 | Patch from http://bugs.debian.org/cgi-bin/bugreport.cgi/flex-lvalue.diff?bug=194844;msg=10;att=1 | ||
| 2 | |||
| 3 | according to posix 0,1,2 are already setup and this avoids | ||
| 4 | the issues with | ||
| 5 | | filter.c: In function 'filter_apply_chain': | ||
| 6 | | filter.c:161: error: invalid lvalue in assignment | ||
| 7 | | filter.c:163: error: invalid lvalue in assignment | ||
| 8 | | filter.c:184: error: invalid lvalue in assignment | ||
| 9 | |||
| 10 | |||
| 11 | diff -ur flex-2.5.31.ORIG/filter.c flex-2.5.31/filter.c | ||
| 12 | --- flex-2.5.31.ORIG/filter.c 2003-03-25 16:39:08.000000000 +0000 | ||
| 13 | +++ flex-2.5.31/filter.c 2003-05-27 17:00:26.000000000 +0000 | ||
| 14 | @@ -157,11 +157,8 @@ | ||
| 15 | if (chain->filter_func) { | ||
| 16 | int r; | ||
| 17 | |||
| 18 | - /* setup streams again */ | ||
| 19 | - if ((stdin = fdopen (0, "r")) == NULL) | ||
| 20 | - flexfatal (_("fdopen(0) failed")); | ||
| 21 | - if ((stdout = fdopen (1, "w")) == NULL) | ||
| 22 | - flexfatal (_("fdopen(1) failed")); | ||
| 23 | + /* POSIX says we inherit fd[0-2], so we don't need | ||
| 24 | + to do anything to them here */ | ||
| 25 | |||
| 26 | if ((r = chain->filter_func (chain)) == -1) | ||
| 27 | flexfatal (_("filter_func failed")); | ||
| 28 | @@ -181,8 +178,6 @@ | ||
| 29 | if (dup2 (pipes[1], 1) == -1) | ||
| 30 | flexfatal (_("dup2(pipes[1],1)")); | ||
| 31 | close (pipes[1]); | ||
| 32 | - if ((stdout = fdopen (1, "w")) == NULL) | ||
| 33 | - flexfatal (_("fdopen(1) failed")); | ||
| 34 | |||
| 35 | return true; | ||
| 36 | } | ||
diff --git a/openembedded/packages/flex/flex.inc b/openembedded/packages/flex/flex.inc index 6e605ac9be..d6affad226 100644 --- a/openembedded/packages/flex/flex.inc +++ b/openembedded/packages/flex/flex.inc | |||
| @@ -3,6 +3,7 @@ SECTION = "devel" | |||
| 3 | LICENSE = "BSD" | 3 | LICENSE = "BSD" |
| 4 | 4 | ||
| 5 | SRC_URI = "${SOURCEFORGE_MIRROR}/lex/flex-2.5.31.tar.bz2 \ | 5 | SRC_URI = "${SOURCEFORGE_MIRROR}/lex/flex-2.5.31.tar.bz2 \ |
| 6 | file://flex-lvalue.diff;patch=1 \ | ||
| 6 | file://fix-gen.patch;patch=1" | 7 | file://fix-gen.patch;patch=1" |
| 7 | S = "${WORKDIR}/flex-${PV}" | 8 | S = "${WORKDIR}/flex-${PV}" |
| 8 | 9 | ||
