diff options
| -rw-r--r-- | meta-gnome/recipes-gnome/gnome/libgnomeprint/bison3-support.patch | 30 | ||||
| -rw-r--r-- | meta-gnome/recipes-gnome/gnome/libgnomeprint_2.18.8.bb | 5 |
2 files changed, 33 insertions, 2 deletions
diff --git a/meta-gnome/recipes-gnome/gnome/libgnomeprint/bison3-support.patch b/meta-gnome/recipes-gnome/gnome/libgnomeprint/bison3-support.patch new file mode 100644 index 0000000000..29d410a0ab --- /dev/null +++ b/meta-gnome/recipes-gnome/gnome/libgnomeprint/bison3-support.patch | |||
| @@ -0,0 +1,30 @@ | |||
| 1 | Index: libgnomeprint-2.18.8/libgnomeprint/grammar.y | ||
| 2 | =================================================================== | ||
| 3 | --- libgnomeprint-2.18.8.orig/libgnomeprint/grammar.y | ||
| 4 | +++ libgnomeprint-2.18.8/libgnomeprint/grammar.y | ||
| 5 | @@ -99,7 +99,7 @@ gnome_print_filter_parse_prop (GnomePrin | ||
| 6 | } | ||
| 7 | |||
| 8 | static int yylex (void *lvalp); | ||
| 9 | -static int yyerror (const char *s); | ||
| 10 | +static int yyerror (graph_t *g, const char *s); | ||
| 11 | %} | ||
| 12 | |||
| 13 | %union { | ||
| 14 | @@ -117,6 +117,7 @@ static int yyerror (const char *s); | ||
| 15 | %type <p> pool | ||
| 16 | |||
| 17 | %pure_parser | ||
| 18 | +%parse-param { graph_t *graph } | ||
| 19 | |||
| 20 | %start graph | ||
| 21 | %% | ||
| 22 | @@ -185,7 +186,7 @@ graph: filter { | ||
| 23 | %% | ||
| 24 | |||
| 25 | static int | ||
| 26 | -yyerror (const char *s) | ||
| 27 | +yyerror (graph_t *g, const char *s) | ||
| 28 | { | ||
| 29 | return -1; | ||
| 30 | } | ||
diff --git a/meta-gnome/recipes-gnome/gnome/libgnomeprint_2.18.8.bb b/meta-gnome/recipes-gnome/gnome/libgnomeprint_2.18.8.bb index 15e513a78d..b17062bebf 100644 --- a/meta-gnome/recipes-gnome/gnome/libgnomeprint_2.18.8.bb +++ b/meta-gnome/recipes-gnome/gnome/libgnomeprint_2.18.8.bb | |||
| @@ -1,15 +1,16 @@ | |||
| 1 | LICENSE = "GPLv2" | 1 | LICENSE = "GPLv2" |
| 2 | SECTION = "x11/gnome/libs" | 2 | SECTION = "x11/gnome/libs" |
| 3 | 3 | ||
| 4 | DEPENDS = "libxml2 libgnomecups glib-2.0 pango libart-lgpl fontconfig popt gnome-common freetype" | 4 | DEPENDS = "bison-native flex-native libxml2 libgnomecups glib-2.0 pango libart-lgpl fontconfig popt gnome-common freetype" |
| 5 | 5 | ||
| 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" | 6 | LIC_FILES_CHKSUM = "file://COPYING;md5=94d55d512a9ba36caa9b7df079bae19f" |
| 7 | 7 | ||
| 8 | inherit pkgconfig gnomebase | 8 | inherit gnomebase |
| 9 | 9 | ||
| 10 | SRC_URI += "file://fix.includes.patch \ | 10 | SRC_URI += "file://fix.includes.patch \ |
| 11 | file://freetype.patch \ | 11 | file://freetype.patch \ |
| 12 | file://0001-configure-use-pkgconfig-for-freetype.patch \ | 12 | file://0001-configure-use-pkgconfig-for-freetype.patch \ |
| 13 | file://bison3-support.patch \ | ||
| 13 | " | 14 | " |
| 14 | SRC_URI[archive.md5sum] = "63b05ffb5386e131487c6af30f4c56ac" | 15 | SRC_URI[archive.md5sum] = "63b05ffb5386e131487c6af30f4c56ac" |
| 15 | SRC_URI[archive.sha256sum] = "1034ec8651051f84d2424e7a1da61c530422cc20ce5b2d9e107e1e46778d9691" | 16 | SRC_URI[archive.sha256sum] = "1034ec8651051f84d2424e7a1da61c530422cc20ce5b2d9e107e1e46778d9691" |
