diff options
Diffstat (limited to 'meta/packages/bison')
-rw-r--r-- | meta/packages/bison/bison/fix_cross_manpage_building.patch | 18 | ||||
-rw-r--r-- | meta/packages/bison/bison/m4.patch (renamed from meta/packages/bison/bison-2.3/m4.patch) | 105 | ||||
-rw-r--r-- | meta/packages/bison/bison_2.3.bb | 15 | ||||
-rw-r--r-- | meta/packages/bison/bison_2.4.2.bb | 22 |
4 files changed, 70 insertions, 90 deletions
diff --git a/meta/packages/bison/bison/fix_cross_manpage_building.patch b/meta/packages/bison/bison/fix_cross_manpage_building.patch new file mode 100644 index 0000000000..850ec06aa7 --- /dev/null +++ b/meta/packages/bison/bison/fix_cross_manpage_building.patch | |||
@@ -0,0 +1,18 @@ | |||
1 | help2man is looking at the generated binary for help output. This does not work for cross compilations. So taking out the local PREPATH (../src) directory from path so that help2 man can find the native version of the bison in the native sysroot directory. | ||
2 | |||
3 | Date: 2010/06/28 | ||
4 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
5 | |||
6 | Index: bison-2.4.2/doc/Makefile.am | ||
7 | =================================================================== | ||
8 | --- bison-2.4.2.orig/doc/Makefile.am | ||
9 | +++ bison-2.4.2/doc/Makefile.am | ||
10 | @@ -77,7 +77,7 @@ PREPATH = $(top_builddir)/src | ||
11 | (cd $$dir && $(MAKE) $(AM_MAKEFLAGS) $$program) || exit; \ | ||
12 | done | ||
13 | @echo "Updating man page $@" | ||
14 | - PATH="$(PREPATH)$(PATH_SEPARATOR)$$PATH"; \ | ||
15 | +# PATH="$(PREPATH)$(PATH_SEPARATOR)$$PATH"; | ||
16 | export PATH; \ | ||
17 | $(HELP2MAN) \ | ||
18 | --include=$*.x \ | ||
diff --git a/meta/packages/bison/bison-2.3/m4.patch b/meta/packages/bison/bison/m4.patch index b62fe89d04..9332354b50 100644 --- a/meta/packages/bison/bison-2.3/m4.patch +++ b/meta/packages/bison/bison/m4.patch | |||
@@ -3,43 +3,10 @@ | |||
3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher | 3 | # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher |
4 | # | 4 | # |
5 | 5 | ||
6 | Index: bison-2.4.2/m4/lcmessage.m4 | ||
7 | =================================================================== | ||
6 | --- /dev/null | 8 | --- /dev/null |
7 | +++ bison-1.875/m4/inttypes-pri.m4 | 9 | +++ bison-2.4.2/m4/lcmessage.m4 |
8 | @@ -0,0 +1,32 @@ | ||
9 | +# inttypes-pri.m4 serial 1 (gettext-0.11.4) | ||
10 | +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. | ||
11 | +dnl This file is free software, distributed under the terms of the GNU | ||
12 | +dnl General Public License. As a special exception to the GNU General | ||
13 | +dnl Public License, this file may be distributed as part of a program | ||
14 | +dnl that contains a configuration script generated by Autoconf, under | ||
15 | +dnl the same distribution terms as the rest of that program. | ||
16 | + | ||
17 | +dnl From Bruno Haible. | ||
18 | + | ||
19 | +# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI* | ||
20 | +# macros to non-string values. This is the case on AIX 4.3.3. | ||
21 | + | ||
22 | +AC_DEFUN([gt_INTTYPES_PRI], | ||
23 | +[ | ||
24 | + AC_REQUIRE([gt_HEADER_INTTYPES_H]) | ||
25 | + if test $gt_cv_header_inttypes_h = yes; then | ||
26 | + AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken], | ||
27 | + gt_cv_inttypes_pri_broken, | ||
28 | + [ | ||
29 | + AC_TRY_COMPILE([#include <inttypes.h> | ||
30 | +#ifdef PRId32 | ||
31 | +char *p = PRId32; | ||
32 | +#endif | ||
33 | +], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes) | ||
34 | + ]) | ||
35 | + fi | ||
36 | + if test "$gt_cv_inttypes_pri_broken" = yes; then | ||
37 | + AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1, | ||
38 | + [Define if <inttypes.h> exists and defines unusable PRI* macros.]) | ||
39 | + fi | ||
40 | +]) | ||
41 | --- /dev/null | ||
42 | +++ bison-1.875/m4/lcmessage.m4 | ||
43 | @@ -0,0 +1,32 @@ | 10 | @@ -0,0 +1,32 @@ |
44 | +# lcmessage.m4 serial 3 (gettext-0.11.3) | 11 | +# lcmessage.m4 serial 3 (gettext-0.11.3) |
45 | +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. | 12 | +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. |
@@ -73,8 +40,10 @@ | |||
73 | + [Define if your <locale.h> file defines LC_MESSAGES.]) | 40 | + [Define if your <locale.h> file defines LC_MESSAGES.]) |
74 | + fi | 41 | + fi |
75 | +]) | 42 | +]) |
43 | Index: bison-2.4.2/m4/uintmax_t.m4 | ||
44 | =================================================================== | ||
76 | --- /dev/null | 45 | --- /dev/null |
77 | +++ bison-1.875/m4/uintmax_t.m4 | 46 | +++ bison-2.4.2/m4/uintmax_t.m4 |
78 | @@ -0,0 +1,29 @@ | 47 | @@ -0,0 +1,29 @@ |
79 | +# uintmax_t.m4 serial 6 (gettext-0.11) | 48 | +# uintmax_t.m4 serial 6 (gettext-0.11) |
80 | +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. | 49 | +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. |
@@ -105,8 +74,10 @@ | |||
105 | + if <inttypes.h> and <stdint.h> don't define.]) | 74 | + if <inttypes.h> and <stdint.h> don't define.]) |
106 | + fi | 75 | + fi |
107 | +]) | 76 | +]) |
77 | Index: bison-2.4.2/m4/glibc21.m4 | ||
78 | =================================================================== | ||
108 | --- /dev/null | 79 | --- /dev/null |
109 | +++ bison-1.875/m4/glibc21.m4 | 80 | +++ bison-2.4.2/m4/glibc21.m4 |
110 | @@ -0,0 +1,32 @@ | 81 | @@ -0,0 +1,32 @@ |
111 | +# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40) | 82 | +# glibc21.m4 serial 2 (fileutils-4.1.3, gettext-0.10.40) |
112 | +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. | 83 | +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. |
@@ -140,8 +111,10 @@ | |||
140 | + GLIBC21="$ac_cv_gnu_library_2_1" | 111 | + GLIBC21="$ac_cv_gnu_library_2_1" |
141 | + ] | 112 | + ] |
142 | +) | 113 | +) |
114 | Index: bison-2.4.2/m4/stdint_h.m4 | ||
115 | =================================================================== | ||
143 | --- /dev/null | 116 | --- /dev/null |
144 | +++ bison-1.875/m4/stdint_h.m4 | 117 | +++ bison-2.4.2/m4/stdint_h.m4 |
145 | @@ -0,0 +1,28 @@ | 118 | @@ -0,0 +1,28 @@ |
146 | +# stdint_h.m4 serial 2 (gettext-0.11.4) | 119 | +# stdint_h.m4 serial 2 (gettext-0.11.4) |
147 | +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. | 120 | +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. |
@@ -171,8 +144,10 @@ | |||
171 | + and declares uintmax_t. ]) | 144 | + and declares uintmax_t. ]) |
172 | + fi | 145 | + fi |
173 | +]) | 146 | +]) |
147 | Index: bison-2.4.2/m4/inttypes_h.m4 | ||
148 | =================================================================== | ||
174 | --- /dev/null | 149 | --- /dev/null |
175 | +++ bison-1.875/m4/inttypes_h.m4 | 150 | +++ bison-2.4.2/m4/inttypes_h.m4 |
176 | @@ -0,0 +1,28 @@ | 151 | @@ -0,0 +1,28 @@ |
177 | +# inttypes_h.m4 serial 4 (gettext-0.11.4) | 152 | +# inttypes_h.m4 serial 4 (gettext-0.11.4) |
178 | +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. | 153 | +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. |
@@ -202,8 +177,10 @@ | |||
202 | + and declares uintmax_t. ]) | 177 | + and declares uintmax_t. ]) |
203 | + fi | 178 | + fi |
204 | +]) | 179 | +]) |
180 | Index: bison-2.4.2/m4/ulonglong.m4 | ||
181 | =================================================================== | ||
205 | --- /dev/null | 182 | --- /dev/null |
206 | +++ bison-1.875/m4/ulonglong.m4 | 183 | +++ bison-2.4.2/m4/ulonglong.m4 |
207 | @@ -0,0 +1,23 @@ | 184 | @@ -0,0 +1,23 @@ |
208 | +# ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40) | 185 | +# ulonglong.m4 serial 2 (fileutils-4.0.32, gettext-0.10.40) |
209 | +dnl Copyright (C) 1999-2002 Free Software Foundation, Inc. | 186 | +dnl Copyright (C) 1999-2002 Free Software Foundation, Inc. |
@@ -228,8 +205,10 @@ | |||
228 | + [Define if you have the unsigned long long type.]) | 205 | + [Define if you have the unsigned long long type.]) |
229 | + fi | 206 | + fi |
230 | +]) | 207 | +]) |
208 | Index: bison-2.4.2/m4/codeset.m4 | ||
209 | =================================================================== | ||
231 | --- /dev/null | 210 | --- /dev/null |
232 | +++ bison-1.875/m4/codeset.m4 | 211 | +++ bison-2.4.2/m4/codeset.m4 |
233 | @@ -0,0 +1,23 @@ | 212 | @@ -0,0 +1,23 @@ |
234 | +# codeset.m4 serial AM1 (gettext-0.10.40) | 213 | +# codeset.m4 serial AM1 (gettext-0.10.40) |
235 | +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. | 214 | +dnl Copyright (C) 2000-2002 Free Software Foundation, Inc. |
@@ -254,8 +233,10 @@ | |||
254 | + [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) | 233 | + [Define if you have <langinfo.h> and nl_langinfo(CODESET).]) |
255 | + fi | 234 | + fi |
256 | +]) | 235 | +]) |
236 | Index: bison-2.4.2/m4/intdiv0.m4 | ||
237 | =================================================================== | ||
257 | --- /dev/null | 238 | --- /dev/null |
258 | +++ bison-1.875/m4/intdiv0.m4 | 239 | +++ bison-2.4.2/m4/intdiv0.m4 |
259 | @@ -0,0 +1,72 @@ | 240 | @@ -0,0 +1,72 @@ |
260 | +# intdiv0.m4 serial 1 (gettext-0.11.3) | 241 | +# intdiv0.m4 serial 1 (gettext-0.11.3) |
261 | +dnl Copyright (C) 2002 Free Software Foundation, Inc. | 242 | +dnl Copyright (C) 2002 Free Software Foundation, Inc. |
@@ -329,8 +310,10 @@ | |||
329 | + AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, | 310 | + AC_DEFINE_UNQUOTED(INTDIV0_RAISES_SIGFPE, $value, |
330 | + [Define if integer division by zero raises signal SIGFPE.]) | 311 | + [Define if integer division by zero raises signal SIGFPE.]) |
331 | +]) | 312 | +]) |
313 | Index: bison-2.4.2/m4/glib.m4 | ||
314 | =================================================================== | ||
332 | --- /dev/null | 315 | --- /dev/null |
333 | +++ bison-1.875/m4/glib.m4 | 316 | +++ bison-2.4.2/m4/glib.m4 |
334 | @@ -0,0 +1,196 @@ | 317 | @@ -0,0 +1,196 @@ |
335 | +# Configure paths for GLIB | 318 | +# Configure paths for GLIB |
336 | +# Owen Taylor 97-11-3 | 319 | +# Owen Taylor 97-11-3 |
@@ -528,38 +511,10 @@ | |||
528 | + AC_SUBST(GLIB_LIBS) | 511 | + AC_SUBST(GLIB_LIBS) |
529 | + rm -f conf.glibtest | 512 | + rm -f conf.glibtest |
530 | +]) | 513 | +]) |
514 | Index: bison-2.4.2/m4/isc-posix.m4 | ||
515 | =================================================================== | ||
531 | --- /dev/null | 516 | --- /dev/null |
532 | +++ bison-1.875/m4/inttypes.m4 | 517 | +++ bison-2.4.2/m4/isc-posix.m4 |
533 | @@ -0,0 +1,27 @@ | ||
534 | +# inttypes.m4 serial 1 (gettext-0.11.4) | ||
535 | +dnl Copyright (C) 1997-2002 Free Software Foundation, Inc. | ||
536 | +dnl This file is free software, distributed under the terms of the GNU | ||
537 | +dnl General Public License. As a special exception to the GNU General | ||
538 | +dnl Public License, this file may be distributed as part of a program | ||
539 | +dnl that contains a configuration script generated by Autoconf, under | ||
540 | +dnl the same distribution terms as the rest of that program. | ||
541 | + | ||
542 | +dnl From Paul Eggert. | ||
543 | + | ||
544 | +# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with | ||
545 | +# <sys/types.h>. | ||
546 | + | ||
547 | +AC_DEFUN([gt_HEADER_INTTYPES_H], | ||
548 | +[ | ||
549 | + AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h, | ||
550 | + [ | ||
551 | + AC_TRY_COMPILE( | ||
552 | + [#include <sys/types.h> | ||
553 | +#include <inttypes.h>], | ||
554 | + [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no) | ||
555 | + ]) | ||
556 | + if test $gt_cv_header_inttypes_h = yes; then | ||
557 | + AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1, | ||
558 | + [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.]) | ||
559 | + fi | ||
560 | +]) | ||
561 | --- /dev/null | ||
562 | +++ bison-1.875/m4/isc-posix.m4 | ||
563 | @@ -0,0 +1,26 @@ | 518 | @@ -0,0 +1,26 @@ |
564 | +# isc-posix.m4 serial 2 (gettext-0.11.2) | 519 | +# isc-posix.m4 serial 2 (gettext-0.11.2) |
565 | +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. | 520 | +dnl Copyright (C) 1995-2002 Free Software Foundation, Inc. |
diff --git a/meta/packages/bison/bison_2.3.bb b/meta/packages/bison/bison_2.3.bb deleted file mode 100644 index 2f351f81c3..0000000000 --- a/meta/packages/bison/bison_2.3.bb +++ /dev/null | |||
@@ -1,15 +0,0 @@ | |||
1 | DESCRIPTION = "GNU Project parser generator (yacc replacement)." | ||
2 | HOMEPAGE = "http://www.gnu.org/software/bison/" | ||
3 | LICENSE = "GPL" | ||
4 | SECTION = "devel" | ||
5 | PRIORITY = "optional" | ||
6 | DEPENDS = "gettext" | ||
7 | |||
8 | SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \ | ||
9 | file://m4.patch;patch=1" | ||
10 | |||
11 | PR = "r3" | ||
12 | |||
13 | inherit autotools | ||
14 | |||
15 | BBCLASSEXTEND = "native" | ||
diff --git a/meta/packages/bison/bison_2.4.2.bb b/meta/packages/bison/bison_2.4.2.bb new file mode 100644 index 0000000000..1d053cf5e4 --- /dev/null +++ b/meta/packages/bison/bison_2.4.2.bb | |||
@@ -0,0 +1,22 @@ | |||
1 | DESCRIPTION = "GNU Project parser generator (yacc replacement)." | ||
2 | HOMEPAGE = "http://www.gnu.org/software/bison/" | ||
3 | LICENSE = "GPL" | ||
4 | SECTION = "devel" | ||
5 | PRIORITY = "optional" | ||
6 | DEPENDS = "gettext bison-native" | ||
7 | |||
8 | PR = "r0" | ||
9 | |||
10 | BASE_SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \ | ||
11 | file://m4.patch;patch=1" | ||
12 | |||
13 | SRC_URI = "${BASE_SRC_URI} \ | ||
14 | file://fix_cross_manpage_building.patch " | ||
15 | |||
16 | DEPENDS_virtclass-native = "gettext-native" | ||
17 | SRC_URI_virtclass-native = "${BASE_SRC_URI}" | ||
18 | |||
19 | inherit autotools | ||
20 | acpaths = "-I ${S}/m4" | ||
21 | |||
22 | BBCLASSEXTEND = "native" | ||