diff options
Diffstat (limited to 'debian/patches')
5 files changed, 313 insertions, 0 deletions
diff --git a/debian/patches/0001-debcherry-fixup-patch.patch b/debian/patches/0001-debcherry-fixup-patch.patch new file mode 100644 index 0000000..65a8872 --- /dev/null +++ b/debian/patches/0001-debcherry-fixup-patch.patch @@ -0,0 +1,75 @@ +From 4c141a0575624fc7e22435a23ebf3d5c41ae6e42 Mon Sep 17 00:00:00 2001 +From: Manoj Srivastava <srivasta@golden-gryphon.com> +Date: Wed, 9 Apr 2014 00:42:31 -0700 +Subject: [PATCH 1/4] debcherry fixup patch + +61112fc [topic--autoconf0files] Delete files create by autoconf + - extra changes or conflicts +91d57d4 Correct a few dependencies in Makefiles + - extra changes or conflicts +--- + tests/test-bison-nr/Makefile.am | 4 ++-- + tests/test-bison-yylloc/Makefile.am | 4 ++-- + tests/test-bison-yylval/Makefile.am | 4 ++-- + 3 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/tests/test-bison-nr/Makefile.am b/tests/test-bison-nr/Makefile.am +index 9bc8af3..f6e6de9 100644 +--- a/tests/test-bison-nr/Makefile.am ++++ b/tests/test-bison-nr/Makefile.am +@@ -29,12 +29,12 @@ CLEANFILES = scanner.c scanner.h parser.c parser.h $(testname)$(EXEEXT) $(OBJS) + OBJS = scanner.o parser.o main.o + + AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir) -I$(top_builddir) -I$(builddir) +-#LDFLAGS = $(top_srcdir)/libfl.a ++#LDFLAGS = $(top_srcdir)/libfl.a + YFLAGS = --defines --output=parser.c --name-prefix="test" + + testname = test-bison-nr + +-scanner.c: $(srcdir)/scanner.l ++scanner.c scanner.h: $(srcdir)/scanner.l + $(FLEX) $< + scanner.h: scanner.c + scanner.o: parser.h +diff --git a/tests/test-bison-yylloc/Makefile.am b/tests/test-bison-yylloc/Makefile.am +index dc41b0f..0070991 100644 +--- a/tests/test-bison-yylloc/Makefile.am ++++ b/tests/test-bison-yylloc/Makefile.am +@@ -29,12 +29,12 @@ CLEANFILES = scanner.c scanner.h parser.c parser.h $(testname)$(EXEEXT) $(OBJS) + OBJS = scanner.o parser.o main.o + + AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir) -I$(top_builddir) -I$(builddir) +-#LDFLAGS = $(top_srcdir)/libfl.a ++#LDFLAGS = $(top_srcdir)/libfl.a + YFLAGS = --defines --output=parser.c --name-prefix="test" + + testname = test-bison-yylloc + +-scanner.c: $(srcdir)/scanner.l ++scanner.c scanner.h: $(srcdir)/scanner.l + $(FLEX) $< + scanner.h: scanner.c + scanner.o: parser.h +diff --git a/tests/test-bison-yylval/Makefile.am b/tests/test-bison-yylval/Makefile.am +index d8e27f7..1937b34 100644 +--- a/tests/test-bison-yylval/Makefile.am ++++ b/tests/test-bison-yylval/Makefile.am +@@ -29,12 +29,12 @@ CLEANFILES = scanner.c scanner.h parser.c parser.h $(testname)$(EXEEXT) $(OBJS) + OBJS = parser.o scanner.o main.o + + AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir) -I$(top_builddir) -I$(builddir) +-#LDFLAGS = $(top_srcdir)/libfl.a ++#LDFLAGS = $(top_srcdir)/libfl.a + YFLAGS = --defines --output=parser.c --name-prefix="test" + + testname = test-bison-yylval + +-scanner.c: $(srcdir)/scanner.l ++scanner.c scanner.h: $(srcdir)/scanner.l + $(FLEX) $< + scanner.h: scanner.c + scanner.o: parser.h +-- +1.9.1 + diff --git a/debian/patches/0002-Finish-fixing-the-ia64-buffer-issue.patch b/debian/patches/0002-Finish-fixing-the-ia64-buffer-issue.patch new file mode 100644 index 0000000..28f9405 --- /dev/null +++ b/debian/patches/0002-Finish-fixing-the-ia64-buffer-issue.patch @@ -0,0 +1,81 @@ +From d4ba98f3f5ba3173e6f77faab6c85e5ee3d72bdc Mon Sep 17 00:00:00 2001 +From: Cyril Brulebois <kibi@debian.org> +Date: Fri, 2 Jan 2009 06:53:39 +0100 +Subject: [PATCH 2/4] Finish fixing the ia64 buffer issue. + +Previous commits increased YY_READ_BUF_SIZE (where __ia64__ is defined) but +left YY_BUF_SIZE unchanged, so that didn't fix the problem in the end. In the +general case, the latter is twice the former. Therefore set it to the same +ratio in the ia64 case. + +Signed-off-by: Cyril Brulebois <kibi@debian.org> +Signed-off-by: Manoj Srivastava <srivasta@debian.org> +--- + flex.skl | 8 ++++++++ + scan.c | 8 ++++++++ + skel.c | 8 ++++++++ + 3 files changed, 24 insertions(+) + +diff --git a/flex.skl b/flex.skl +index f878ff0..460cbf4 100644 +--- a/flex.skl ++++ b/flex.skl +@@ -447,7 +447,15 @@ m4_ifdef( [[M4_YY_NOT_IN_HEADER]], + + /* Size of default input buffer. */ + #ifndef YY_BUF_SIZE ++#ifdef __ia64__ ++/* On IA-64, the buffer size is 16k, not 8k. ++ * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. ++ * Ditto for the __ia64__ case accordingly. ++ */ ++#define YY_BUF_SIZE 32768 ++#else + #define YY_BUF_SIZE 16384 ++#endif /* __ia64__ */ + #endif + + m4_ifdef( [[M4_YY_NOT_IN_HEADER]], +diff --git a/scan.c b/scan.c +index 4bbbdcc..83bb6aa 100644 +--- a/scan.c ++++ b/scan.c +@@ -141,7 +141,15 @@ typedef unsigned int flex_uint32_t; + + /* Size of default input buffer. */ + #ifndef YY_BUF_SIZE ++#ifdef __ia64__ ++/* On IA-64, the buffer size is 16k, not 8k. ++ * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case. ++ * Ditto for the __ia64__ case accordingly. ++ */ ++#define YY_BUF_SIZE 32768 ++#else + #define YY_BUF_SIZE 16384 ++#endif /* __ia64__ */ + #endif + + /* The state buf must be large enough to hold one state per character in the main buffer. +diff --git a/skel.c b/skel.c +index 6dc7644..128cdb3 100644 +--- a/skel.c ++++ b/skel.c +@@ -514,7 +514,15 @@ const char *skel[] = { + "", + "/* Size of default input buffer. */", + "#ifndef YY_BUF_SIZE", ++ "#ifdef __ia64__", ++ "/* On IA-64, the buffer size is 16k, not 8k.", ++ " * Moreover, YY_BUF_SIZE is 2*YY_READ_BUF_SIZE in the general case.", ++ " * Ditto for the __ia64__ case accordingly.", ++ " */", ++ "#define YY_BUF_SIZE 32768", ++ "#else", + "#define YY_BUF_SIZE 16384", ++ "#endif /* __ia64__ */", + "#endif", + "", + "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],", +-- +1.9.1 + diff --git a/debian/patches/0003-ia64-buffer-fix-Some-more-fixes-for-the-ia64-buffer-.patch b/debian/patches/0003-ia64-buffer-fix-Some-more-fixes-for-the-ia64-buffer-.patch new file mode 100644 index 0000000..2c6fdf9 --- /dev/null +++ b/debian/patches/0003-ia64-buffer-fix-Some-more-fixes-for-the-ia64-buffer-.patch @@ -0,0 +1,75 @@ +From d5a900c9ea3ac0a1602422b9adfe29372d11e826 Mon Sep 17 00:00:00 2001 +From: Manoj Srivastava <srivasta@golden-gryphon.com> +Date: Fri, 2 Jan 2009 07:23:39 +0100 +Subject: [PATCH 3/4] [ia64-buffer-fix]]: Some more fixes for the ia64 buffer + issue. + +Signed-off-by: Manoj Srivastava <srivasta@golden-gryphon.com> +--- + flex.skl | 5 +++++ + scan.c | 8 +++++++- + skel.c | 5 +++++ + 3 files changed, 17 insertions(+), 1 deletion(-) + +diff --git a/flex.skl b/flex.skl +index 460cbf4..85eea18 100644 +--- a/flex.skl ++++ b/flex.skl +@@ -1104,7 +1104,12 @@ m4_define( [[M4_YY_NO_TOP_STATE]]) + + /* Amount of stuff to slurp up with each read. */ + #ifndef YY_READ_BUF_SIZE ++#ifdef __ia64__ ++/* On IA-64, the buffer size is 16k, not 8k */ ++#define YY_READ_BUF_SIZE 16384 ++#else + #define YY_READ_BUF_SIZE 8192 ++#endif /* __ia64__ */ + #endif + + m4_ifdef( [[M4_YY_NOT_IN_HEADER]], +diff --git a/scan.c b/scan.c +index 83bb6aa..30b4bf2 100644 +--- a/scan.c ++++ b/scan.c +@@ -1,5 +1,6 @@ ++#line 2 "scan.c" + +-#line 3 "scan.c" ++#line 4 "scan.c" + + #define YY_INT_ALIGNED short int + +@@ -2095,7 +2096,12 @@ static int input (void ); + + /* Amount of stuff to slurp up with each read. */ + #ifndef YY_READ_BUF_SIZE ++#ifdef __ia64__ ++/* On IA-64, the buffer size is 16k, not 8k */ ++#define YY_READ_BUF_SIZE 16384 ++#else + #define YY_READ_BUF_SIZE 8192 ++#endif /* __ia64__ */ + #endif + + /* Copy whatever the last rule matched to the standard output. */ +diff --git a/skel.c b/skel.c +index 128cdb3..4ef6e3a 100644 +--- a/skel.c ++++ b/skel.c +@@ -1171,7 +1171,12 @@ const char *skel[] = { + "", + "/* Amount of stuff to slurp up with each read. */", + "#ifndef YY_READ_BUF_SIZE", ++ "#ifdef __ia64__", ++ "/* On IA-64, the buffer size is 16k, not 8k */", ++ "#define YY_READ_BUF_SIZE 16384", ++ "#else", + "#define YY_READ_BUF_SIZE 8192", ++ "#endif /* __ia64__ */", + "#endif", + "", + "m4_ifdef( [[M4_YY_NOT_IN_HEADER]],", +-- +1.9.1 + diff --git a/debian/patches/0004-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch b/debian/patches/0004-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch new file mode 100644 index 0000000..466c75d --- /dev/null +++ b/debian/patches/0004-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch @@ -0,0 +1,77 @@ +From 20ab0512841996f895a43d4490f695206ad0e4a2 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 4/4] [bison-test-fixes] 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> +--- + 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/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..fa60392 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,5 @@ +# exported from git by git-debcherry +0001-debcherry-fixup-patch.patch +0002-Finish-fixing-the-ia64-buffer-issue.patch +0003-ia64-buffer-fix-Some-more-fixes-for-the-ia64-buffer-.patch +0004-bison-test-fixes-Do-not-use-obsolete-bison-construct.patch |