Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Martin Banky <martin.banky@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 21/21] BugFix - m4 - Fixed Missing wint_t typedef When There Is No WChar Support
Date: Mon, 13 Sep 2010 20:40:48 -0700	[thread overview]
Message-ID: <1284435648-15238-21-git-send-email-Martin.Banky@gmail.com> (raw)
In-Reply-To: <1284435648-15238-1-git-send-email-Martin.Banky@gmail.com>

Signed-off-by: Martin Banky <Martin.Banky@gmail.com>
---
 package/m4/m4-no-wchar/m4-no-wchar.patch |   20 ++++++++++++++++++++
 package/m4/m4.mk                         |    6 ++++++
 2 files changed, 26 insertions(+), 0 deletions(-)
 create mode 100644 package/m4/m4-no-wchar/m4-no-wchar.patch

diff --git a/package/m4/m4-no-wchar/m4-no-wchar.patch b/package/m4/m4-no-wchar/m4-no-wchar.patch
new file mode 100644
index 0000000..751d228
--- /dev/null
+++ b/package/m4/m4-no-wchar/m4-no-wchar.patch
@@ -0,0 +1,20 @@
+--- m4-1.4.9/lib/printf-args.h	2010-09-09 23:14:49.000000000 -0700
++++ m4-1.4.9.no.wchar/lib/printf-args.h	2010-09-09 19:09:09.000000000 -0700
+@@ -29,6 +29,7 @@
+ /* Get wint_t.  */
+ #if HAVE_WINT_T
+ # include <wchar.h>
++typedef unsigned int wint_t;
+ #endif
+ 
+ /* Get va_list.  */
+--- m4-1.4.9/lib/wctype_.h	2010-09-09 23:14:49.000000000 -0700
++++ m4-1.4.9.no.wchar/lib/wctype_.h	2010-09-09 19:09:09.000000000 -0700
+@@ -39,6 +39,7 @@
+ # include <stdio.h>
+ # include <time.h>
+ # include <wchar.h>
++typedef unsigned int wint_t;
+ typedef wint_t __wctype_wint_t;
+ #else
+ typedef int __wctype_wint_t;
diff --git a/package/m4/m4.mk b/package/m4/m4.mk
index a0b56c4..7392e9d 100644
--- a/package/m4/m4.mk
+++ b/package/m4/m4.mk
@@ -6,6 +6,11 @@
 M4_VERSION = 1.4.9
 M4_SOURCE = m4-$(M4_VERSION).tar.bz2
 M4_SITE = $(BR2_GNU_MIRROR)/m4
+M4_DIR = $(BUILD_DIR)/m4-$(M4_VERSION)
+
+define M4_NO_WCHAR_SUPPORT
+	toolchain/patch-kernel.sh $(M4_DIR) package/m4/m4-no-wchar/ \*.patch
+endef
 
 ifeq ($(BR2_ENABLE_DEBUG),y) # no install-exec
 M4_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) install
@@ -15,6 +20,7 @@ M4_CONF_ENV = gl_cv_func_gettimeofday_clobber=no
 
 ifneq ($(BR2_USE_WCHAR),y)
 M4_CONF_ENV += gt_cv_c_wchar_t=no gl_cv_absolute_wchar_h=__fpending.h
+M4_POST_CONFIGURE_HOOKS += M4_NO_WCHAR_SUPPORT
 endif
 
 HOST_M4_CONF_OPT = --disable-static
-- 
1.7.2.3

  parent reply	other threads:[~2010-09-14  3:40 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-14  3:40 [Buildroot] [PATCH 01/21] alsa-lib: bump to 1.0.23 Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 02/21] alsa-utils: " Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 03/21] autoconf: bump to 2.67 Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 04/21] automake: bump to 1.11.1 Martin Banky
2010-09-14  8:51   ` Lionel Landwerlin
2010-09-15  2:58     ` Martin Banky
2010-09-15  9:10       ` Lionel Landwerlin
2010-09-15 10:13         ` Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 05/21] bison: bump to 2.4.3 Martin Banky
2010-09-18 17:02   ` Thomas Petazzoni
2010-09-18 21:36     ` Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 06/21] ccache: bump to 3.0.1 Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 07/21] fakeroot: bump to 1.14.4 Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 08/21] genext2fs: bump to 1.4.1 Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 09/21] gmp: bump to 5.0.1 Martin Banky
2010-09-18 17:03   ` Thomas Petazzoni
2010-09-19  0:35     ` Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 10/21] libdeamon: bump to 0.14 Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 11/21] libelf: bump to 0.8.13 Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 12/21] libogg: bump to 1.2.0 Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 13/21] libvorbis: bump to 1.3.1 Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 14/21] make: bump to 3.82 Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 15/21] module-init-tools: bump to 3.12 Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 16/21] mpfr: bump to 3.0.0 Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 17/21] nano: bump to 2.2.5 Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 18/21] ntp: convert to autotargets and bump to 4.2.6p2 Martin Banky
2010-09-18 17:19   ` Thomas Petazzoni
2010-09-21 17:39     ` Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 19/21] openssl: bump to 1.0.0a Martin Banky
2010-09-14  3:40 ` [Buildroot] [PATCH 20/21] BugFix - Bison - Fixed Missing stddef.h Include In wchar.h Martin Banky
2010-09-14 19:54   ` Thomas Petazzoni
2010-09-15  1:45     ` Martin Banky
2010-09-14  3:40 ` Martin Banky [this message]
2010-09-19 20:45   ` [Buildroot] [PATCH 21/21] BugFix - m4 - Fixed Missing wint_t typedef When There Is No WChar Support Peter Korsgaard
2010-09-20  0:37     ` Martin Banky
2010-09-18 17:00 ` [Buildroot] [PATCH 01/21] alsa-lib: bump to 1.0.23 Thomas Petazzoni
2010-09-18 20:54   ` Martin Banky
  -- strict thread matches above, loose matches on Subject: below --
2010-09-19  2:53 [Buildroot] [PATCH 00/21] Resend package updates patch set Martin Banky
2010-09-19  2:53 ` [Buildroot] [PATCH 21/21] BugFix - m4 - Fixed Missing wint_t typedef When There Is No WChar Support Martin Banky
2010-09-19  9:58   ` Marcus Osdoba
2010-09-19 17:05     ` Martin Banky

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=1284435648-15238-21-git-send-email-Martin.Banky@gmail.com \
    --to=martin.banky@gmail.com \
    --cc=buildroot@busybox.net \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox