All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] flex: fix test-bison-yylval and test-bison-yylloc failed
@ 2015-11-11  6:58 Hongxu Jia
  2015-11-11  6:58 ` [PATCH 1/1] " Hongxu Jia
  0 siblings, 1 reply; 3+ messages in thread
From: Hongxu Jia @ 2015-11-11  6:58 UTC (permalink / raw)
  To: openembedded-core, richard.purdie

The following changes since commit fc45deac89ef63ca1c44e763c38ced7dfd72cbe1:

  build-appliance-image: Update to jethro head revision (2015-11-03 14:03:03 +0000)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib hongxu/flex
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/flex

Hongxu Jia (1):
  flex: fix test-bison-yylval and test-bison-yylloc failed

 ...fixes-Do-not-use-obsolete-bison-construct.patch | 81 ++++++++++++++++++++++
 meta/recipes-devtools/flex/flex.inc                |  1 +
 2 files changed, 82 insertions(+)
 create mode 100644 meta/recipes-devtools/flex/files/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch

-- 
1.9.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] flex: fix test-bison-yylval and test-bison-yylloc failed
  2015-11-11  6:58 [PATCH 0/1] flex: fix test-bison-yylval and test-bison-yylloc failed Hongxu Jia
@ 2015-11-11  6:58 ` Hongxu Jia
  2015-11-12  9:17   ` Hongxu Jia
  0 siblings, 1 reply; 3+ messages in thread
From: Hongxu Jia @ 2015-11-11  6:58 UTC (permalink / raw)
  To: openembedded-core, richard.purdie

The tests in flex test-bison-yylval and test-bison-yylloc
failed, so we backport a patch from upstream to fix it.

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
---
 ...fixes-Do-not-use-obsolete-bison-construct.patch | 81 ++++++++++++++++++++++
 meta/recipes-devtools/flex/flex.inc                |  1 +
 2 files changed, 82 insertions(+)
 create mode 100644 meta/recipes-devtools/flex/files/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch

diff --git a/meta/recipes-devtools/flex/files/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch b/meta/recipes-devtools/flex/files/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch
new file mode 100644
index 0000000..20c0a7b
--- /dev/null
+++ b/meta/recipes-devtools/flex/files/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch
@@ -0,0 +1,81 @@
+From 7fbc074901129ffaff9e18fadacae62d8053ad95 Mon Sep 17 00:00:00 2001
+From: Manoj Srivastava <srivasta@golden-gryphon.com>
+Date: Wed, 9 Apr 2014 00:23:07 -0700
+Subject: [PATCH] Do not use obsolete bison constructs in tests.
+
+In Bison 3.0, support for YYLEX_PARAM and YYPARSE_PARAM has been
+removed (deprecated in Bison 1.875): use %lex-param, %parse-param, or
+%param. This commit fixes the tests so they still work.
+
+Signed-off-by: Manoj Srivastava <srivasta@golden-gryphon.com>
+
+Upstream-Status:  Backport from upstream
+http://sourceforge.net/p/flex/bugs/169/
+
+Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
+---
+ tests/test-bison-yylloc/parser.y | 4 ++--
+ tests/test-bison-yylval/parser.y | 4 ++--
+ 2 files changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/tests/test-bison-yylloc/parser.y b/tests/test-bison-yylloc/parser.y
+index e8f4e56..224d252 100644
+--- a/tests/test-bison-yylloc/parser.y
++++ b/tests/test-bison-yylloc/parser.y
+@@ -22,6 +22,7 @@
+  */
+ 
+ %parse-param { void* scanner }
++%lex-param { void* scanner }
+ 
+ /* 
+    How to compile:
+@@ -34,7 +35,6 @@
+ #include "config.h"
+ 
+ #define YYERROR_VERBOSE 1
+-#define YYLEX_PARAM   scanner
+ 
+ extern int testget_lineno(void*);
+ 
+@@ -52,7 +52,7 @@ int process_text(char* s) {
+ 
+ %}
+ 
+-%pure_parser
++%pure-parser
+ 
+ %union  {
+     int  lineno;
+diff --git a/tests/test-bison-yylval/parser.y b/tests/test-bison-yylval/parser.y
+index 0ffdb89..626c5e7 100644
+--- a/tests/test-bison-yylval/parser.y
++++ b/tests/test-bison-yylval/parser.y
+@@ -26,6 +26,7 @@
+    bison --defines --output-file="parser.c" --name-prefix="test" parser.y
+  */
+ %parse-param { void* scanner }
++%lex-param { void* scanner }
+ %{
+ #include <stdio.h>
+ #include <stdlib.h>
+@@ -33,7 +34,6 @@
+ #include "config.h"
+ 
+ #define YYERROR_VERBOSE 1
+-#define YYLEX_PARAM   scanner
+ 
+ 
+ /* A dummy function. A check against seg-faults in yylval->str. */
+@@ -49,7 +49,7 @@ int process_text(char* s) {
+ 
+ %}
+ 
+-%pure_parser
++%pure-parser
+ 
+ %union  {
+     long unused;
+-- 
+1.9.1
+
diff --git a/meta/recipes-devtools/flex/flex.inc b/meta/recipes-devtools/flex/flex.inc
index a4a26e2..fbe921b 100644
--- a/meta/recipes-devtools/flex/flex.inc
+++ b/meta/recipes-devtools/flex/flex.inc
@@ -8,6 +8,7 @@ LICENSE = "BSD"
 DEPENDS += "${@'bison-native flex-native' if '${PTEST_ENABLED}' == '1' else ''}"
 
 SRC_URI = "${SOURCEFORGE_MIRROR}/flex/flex-${PV}.tar.bz2 \
+           file://0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch \
            file://run-ptest \
 "
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] flex: fix test-bison-yylval and test-bison-yylloc failed
  2015-11-11  6:58 ` [PATCH 1/1] " Hongxu Jia
@ 2015-11-12  9:17   ` Hongxu Jia
  0 siblings, 0 replies; 3+ messages in thread
From: Hongxu Jia @ 2015-11-12  9:17 UTC (permalink / raw)
  To: openembedded-core, richard.purdie

On 11/11/2015 02:58 PM, Hongxu Jia wrote:
> The tests in flex test-bison-yylval and test-bison-yylloc
> failed, so we backport a patch from upstream to fix it.
>
> Signed-off-by: Hongxu Jia<hongxu.jia@windriver.com>
> ---
>   ...fixes-Do-not-use-obsolete-bison-construct.patch | 81 ++++++++++++++++++++++
>   meta/recipes-devtools/flex/flex.inc                |  1 +
>   2 files changed, 82 insertions(+)
>   create mode 100644 meta/recipes-devtools/flex/files/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch
>
> diff --git a/meta/recipes-devtools/flex/files/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch b/meta/recipes-devtools/flex/files/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch
> new file mode 100644
> index 0000000..20c0a7b
> --- /dev/null
> +++ b/meta/recipes-devtools/flex/files/0001-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch
> @@ -0,0 +1,81 @@
> +From 7fbc074901129ffaff9e18fadacae62d8053ad95 Mon Sep 17 00:00:00 2001
> +From: Manoj Srivastava<srivasta@golden-gryphon.com>
> +Date: Wed, 9 Apr 2014 00:23:07 -0700
> +Subject: [PATCH] Do not use obsolete bison constructs in tests.
> +
> +In Bison 3.0, support for YYLEX_PARAM and YYPARSE_PARAM has been
> +removed (deprecated in Bison 1.875): use %lex-param, %parse-param, or
> +%param. This commit fixes the tests so they still work.
> +
> +Signed-off-by: Manoj Srivastava<srivasta@golden-gryphon.com>
> +
> +Upstream-Status:  Backport from upstream
> +http://sourceforge.net/p/flex/bugs/169/
Use format with 'Upstream-Status [foo]' to instead

+Upstream-Status: Backport[from http://sourceforge.net/p/flex/bugs/169/]

Update git repo

   git://git.pokylinux.org/poky-contrib hongxu/flex
   http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=hongxu/flex

//Hongxu



> +
> +Signed-off-by: Hongxu Jia<hongxu.jia@windriver.com>



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-11-12  9:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-11-11  6:58 [PATCH 0/1] flex: fix test-bison-yylval and test-bison-yylloc failed Hongxu Jia
2015-11-11  6:58 ` [PATCH 1/1] " Hongxu Jia
2015-11-12  9:17   ` Hongxu Jia

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.