From: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
To: Martin Jansa <martin.jansa@gmail.com>, Khem Raj <raj.khem@gmail.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [PATCH] bison: split inttypes*.m4 into separate patch
Date: Fri, 5 Mar 2010 22:01:11 +0100 [thread overview]
Message-ID: <20100305210111.GF7868@mx.loc> (raw)
In-Reply-To: <1266766390-28915-1-git-send-email-rep.dot.nop@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 7443 bytes --]
On Sun, Feb 21, 2010 at 04:33:10PM +0100, Bernhard Reutner-Fischer wrote:
>..to avoid conflicts with bison-2.4.1
ping? Should i send the respective 2.4.1 bump too?
Attaching them, S-O-B is the same and i don't claim anything, please consider..
TIA,
>Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
>---
> recipes/bison/bison_2.0.bb | 4 ++-
> recipes/bison/bison_2.3.bb | 4 ++-
> recipes/bison/files/inttypes.patch | 70 ++++++++++++++++++++++++++++++++++++
> recipes/bison/files/m4.patch | 65 ---------------------------------
> 4 files changed, 76 insertions(+), 67 deletions(-)
> create mode 100644 recipes/bison/files/inttypes.patch
>
>diff --git a/recipes/bison/bison_2.0.bb b/recipes/bison/bison_2.0.bb
>index edf549f..db3db31 100644
>--- a/recipes/bison/bison_2.0.bb
>+++ b/recipes/bison/bison_2.0.bb
>@@ -5,6 +5,8 @@ SECTION = "devel"
> PRIORITY = "optional"
>
> SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \
>- file://m4.patch;patch=1"
>+ file://m4.patch;patch=1 \
>+ file://inttypes.patch;patch=1 \
>+ "
>
> inherit autotools
>diff --git a/recipes/bison/bison_2.3.bb b/recipes/bison/bison_2.3.bb
>index 729756b..66e5d58 100644
>--- a/recipes/bison/bison_2.3.bb
>+++ b/recipes/bison/bison_2.3.bb
>@@ -7,7 +7,9 @@ PRIORITY = "optional"
> PR = "r1"
>
> SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.gz \
>- file://m4.patch;patch=1"
>+ file://m4.patch;patch=1 \
>+ file://inttypes.patch;patch=1 \
>+ "
>
> inherit autotools
>
>diff --git a/recipes/bison/files/inttypes.patch b/recipes/bison/files/inttypes.patch
>new file mode 100644
>index 0000000..e583241
>--- /dev/null
>+++ b/recipes/bison/files/inttypes.patch
>@@ -0,0 +1,70 @@
>+
>+#
>+# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
>+#
>+
>+--- /dev/null
>++++ bison-1.875/m4/inttypes-pri.m4
>+@@ -0,0 +1,32 @@
>++# inttypes-pri.m4 serial 1 (gettext-0.11.4)
>++dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
>++dnl This file is free software, distributed under the terms of the GNU
>++dnl General Public License. As a special exception to the GNU General
>++dnl Public License, this file may be distributed as part of a program
>++dnl that contains a configuration script generated by Autoconf, under
>++dnl the same distribution terms as the rest of that program.
>++
>++dnl From Bruno Haible.
>++
>++# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
>++# macros to non-string values. This is the case on AIX 4.3.3.
>++
>++AC_DEFUN([gt_INTTYPES_PRI],
>++[
>++ AC_REQUIRE([gt_HEADER_INTTYPES_H])
>++ if test $gt_cv_header_inttypes_h = yes; then
>++ AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
>++ gt_cv_inttypes_pri_broken,
>++ [
>++ AC_TRY_COMPILE([#include <inttypes.h>
>++#ifdef PRId32
>++char *p = PRId32;
>++#endif
>++], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
>++ ])
>++ fi
>++ if test "$gt_cv_inttypes_pri_broken" = yes; then
>++ AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
>++ [Define if <inttypes.h> exists and defines unusable PRI* macros.])
>++ fi
>++])
>+--- /dev/null
>++++ bison-1.875/m4/inttypes.m4
>+@@ -0,0 +1,27 @@
>++# inttypes.m4 serial 1 (gettext-0.11.4)
>++dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
>++dnl This file is free software, distributed under the terms of the GNU
>++dnl General Public License. As a special exception to the GNU General
>++dnl Public License, this file may be distributed as part of a program
>++dnl that contains a configuration script generated by Autoconf, under
>++dnl the same distribution terms as the rest of that program.
>++
>++dnl From Paul Eggert.
>++
>++# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
>++# <sys/types.h>.
>++
>++AC_DEFUN([gt_HEADER_INTTYPES_H],
>++[
>++ AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
>++ [
>++ AC_TRY_COMPILE(
>++ [#include <sys/types.h>
>++#include <inttypes.h>],
>++ [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
>++ ])
>++ if test $gt_cv_header_inttypes_h = yes; then
>++ AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
>++ [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
>++ fi
>++])
>diff --git a/recipes/bison/files/m4.patch b/recipes/bison/files/m4.patch
>index b62fe89..b060532 100644
>--- a/recipes/bison/files/m4.patch
>+++ b/recipes/bison/files/m4.patch
>@@ -4,41 +4,6 @@
> #
>
> --- /dev/null
>-+++ bison-1.875/m4/inttypes-pri.m4
>-@@ -0,0 +1,32 @@
>-+# inttypes-pri.m4 serial 1 (gettext-0.11.4)
>-+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
>-+dnl This file is free software, distributed under the terms of the GNU
>-+dnl General Public License. As a special exception to the GNU General
>-+dnl Public License, this file may be distributed as part of a program
>-+dnl that contains a configuration script generated by Autoconf, under
>-+dnl the same distribution terms as the rest of that program.
>-+
>-+dnl From Bruno Haible.
>-+
>-+# Define PRI_MACROS_BROKEN if <inttypes.h> exists and defines the PRI*
>-+# macros to non-string values. This is the case on AIX 4.3.3.
>-+
>-+AC_DEFUN([gt_INTTYPES_PRI],
>-+[
>-+ AC_REQUIRE([gt_HEADER_INTTYPES_H])
>-+ if test $gt_cv_header_inttypes_h = yes; then
>-+ AC_CACHE_CHECK([whether the inttypes.h PRIxNN macros are broken],
>-+ gt_cv_inttypes_pri_broken,
>-+ [
>-+ AC_TRY_COMPILE([#include <inttypes.h>
>-+#ifdef PRId32
>-+char *p = PRId32;
>-+#endif
>-+], [], gt_cv_inttypes_pri_broken=no, gt_cv_inttypes_pri_broken=yes)
>-+ ])
>-+ fi
>-+ if test "$gt_cv_inttypes_pri_broken" = yes; then
>-+ AC_DEFINE_UNQUOTED(PRI_MACROS_BROKEN, 1,
>-+ [Define if <inttypes.h> exists and defines unusable PRI* macros.])
>-+ fi
>-+])
>---- /dev/null
> +++ bison-1.875/m4/lcmessage.m4
> @@ -0,0 +1,32 @@
> +# lcmessage.m4 serial 3 (gettext-0.11.3)
>@@ -529,36 +494,6 @@
> + rm -f conf.glibtest
> +])
> --- /dev/null
>-+++ bison-1.875/m4/inttypes.m4
>-@@ -0,0 +1,27 @@
>-+# inttypes.m4 serial 1 (gettext-0.11.4)
>-+dnl Copyright (C) 1997-2002 Free Software Foundation, Inc.
>-+dnl This file is free software, distributed under the terms of the GNU
>-+dnl General Public License. As a special exception to the GNU General
>-+dnl Public License, this file may be distributed as part of a program
>-+dnl that contains a configuration script generated by Autoconf, under
>-+dnl the same distribution terms as the rest of that program.
>-+
>-+dnl From Paul Eggert.
>-+
>-+# Define HAVE_INTTYPES_H if <inttypes.h> exists and doesn't clash with
>-+# <sys/types.h>.
>-+
>-+AC_DEFUN([gt_HEADER_INTTYPES_H],
>-+[
>-+ AC_CACHE_CHECK([for inttypes.h], gt_cv_header_inttypes_h,
>-+ [
>-+ AC_TRY_COMPILE(
>-+ [#include <sys/types.h>
>-+#include <inttypes.h>],
>-+ [], gt_cv_header_inttypes_h=yes, gt_cv_header_inttypes_h=no)
>-+ ])
>-+ if test $gt_cv_header_inttypes_h = yes; then
>-+ AC_DEFINE_UNQUOTED(HAVE_INTTYPES_H, 1,
>-+ [Define if <inttypes.h> exists and doesn't clash with <sys/types.h>.])
>-+ fi
>-+])
>---- /dev/null
> +++ bison-1.875/m4/isc-posix.m4
> @@ -0,0 +1,26 @@
> +# isc-posix.m4 serial 2 (gettext-0.11.2)
>--
>1.6.6
>
[-- Attachment #2: bison_2.4.1.bb --]
[-- Type: text/plain, Size: 483 bytes --]
DESCRIPTION = "GNU Project parser generator (yacc replacement)."
HOMEPAGE = "http://www.gnu.org/software/bison/"
LICENSE = "GPL"
SECTION = "devel"
PRIORITY = "optional"
DEFAULT_PREFERENCE = "-666"
SRC_URI = "${GNU_MIRROR}/bison/bison-${PV}.tar.bz2;name=bison \
file://m4.patch;patch=1 \
"
SRC_URI[bison.md5sum] = "84e80a2a192c1a4c02d43fbf2bcc4ca4"
SRC_URI[bison.sha256sum] = "2354469782149e36c644ae7c3e5105895424ed21cda5c05b591cb3dc17068e6b"
inherit autotools
[-- Attachment #3: bison-native_2.4.1.bb --]
[-- Type: text/plain, Size: 725 bytes --]
require bison_${PV}.bb
SECTION = "devel"
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/bison-${PV}"
S = "${WORKDIR}/bison-${PV}"
PR="r0"
DEFAULT_PREFERENCE = "-666"
inherit native autotools
do_stage() {
rm -f ${STAGING_BINDIR}/yacc
rm -f ${STAGING_BINDIR}/bison
install -m 0755 src/bison ${STAGING_BINDIR}/
cat >${STAGING_BINDIR}/yacc <<EOF
#!/bin/sh
exec ${STAGING_BINDIR}/bison -y "\$@"
EOF
chmod a+rx ${STAGING_BINDIR}/yacc
install -d ${STAGING_DATADIR}/bison/m4sugar
install -m 0755 data/c.m4 data/c++.m4 data/glr.c data/glr.cc data/lalr1.cc data/location.cc data/yacc.c ${STAGING_DATADIR}/bison/
install -m 0755 data/m4sugar/m4sugar.m4 ${STAGING_DATADIR}/bison/m4sugar/
}
next prev parent reply other threads:[~2010-03-05 20:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-21 15:33 [PATCH] bison: split inttypes*.m4 into separate patch Bernhard Reutner-Fischer
2010-03-05 21:01 ` Bernhard Reutner-Fischer [this message]
2010-03-05 21:03 ` Marcin Juszkiewicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100305210111.GF7868@mx.loc \
--to=rep.dot.nop@gmail.com \
--cc=martin.jansa@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
--cc=raj.khem@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.