• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/gettext/0002-Update-after-gnulib-changed.patch
Bernd KuhlsBernd Kuhls committed b9563ebecf225 May 2017
Raw file
Source viewDiff to previous
 
1
From a6f9caf8cc7614665d1be694485dd7bc30399e0f Mon Sep 17 00:00:00 2001
2
From: Bruno Haible <bruno@clisp.org>
3
Date: Tue, 16 May 2017 00:27:57 +0200
4
Subject: [PATCH] Update after gnulib changed.
5
​
6
For buildroot we only need to update wint_t.m4 to fix autoreconf with
7
certain packages which already contain the updated version of this file.
8
Otherwise autoreconf will break:
9
​
10
http://git.net/ml/bug-gnulib-gnu/2017-01/msg00067.html
11
https://git.busybox.net/buildroot/commit/package/wget?id=c36f0d65ad63589f1b21833ef53d429c018b6f8a
12
​
13
Patch backported from upstream commit:
14
http://git.savannah.gnu.org/cgit/gettext.git/commit/?id=a6f9caf8cc7614665d1be694485dd7bc30399e0f
15
​
16
Needed for coreutils bump to 8.27
17
​
18
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
19
​
20
diff --git a/gettext-runtime/m4/wint_t.m4 b/gettext-runtime/m4/wint_t.m4
21
index 8ff2a5b5a..d30b8bcf8 100644
22
--- a/gettext-runtime/m4/wint_t.m4
23
+++ b/gettext-runtime/m4/wint_t.m4
24
@@ -1,11 +1,12 @@
25
-# wint_t.m4 serial 5 (gettext-0.18.2)
26
-dnl Copyright (C) 2003, 2007-2016 Free Software Foundation, Inc.
27
+# wint_t.m4 serial 7
28
+dnl Copyright (C) 2003, 2007-2017 Free Software Foundation, Inc.
29
 dnl This file is free software; the Free Software Foundation
30
 dnl gives unlimited permission to copy and/or distribute it,
31
 dnl with or without modifications, as long as this notice is preserved.
32
 
33
 dnl From Bruno Haible.
34
-dnl Test whether <wchar.h> has the 'wint_t' type.
35
+dnl Test whether <wchar.h> has the 'wint_t' type and whether gnulib's
36
+dnl <wchar.h> or <wctype.h> would, if present, override 'wint_t'.
37
 dnl Prerequisite: AC_PROG_CC
38
 
39
 AC_DEFUN([gt_TYPE_WINT_T],
40
@@ -28,5 +29,46 @@ AC_DEFUN([gt_TYPE_WINT_T],
41
        [gt_cv_c_wint_t=no])])
42
   if test $gt_cv_c_wint_t = yes; then
43
     AC_DEFINE([HAVE_WINT_T], [1], [Define if you have the 'wint_t' type.])
44
+
45
+    dnl Determine whether gnulib's <wchar.h> or <wctype.h> would, if present,
46
+    dnl override 'wint_t'.
47
+    AC_CACHE_CHECK([whether wint_t is too small],
48
+      [gl_cv_type_wint_t_too_small],
49
+      [AC_COMPILE_IFELSE(
50
+           [AC_LANG_PROGRAM([[
51
+/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
52
+   <wchar.h>.
53
+   BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
54
+   included before <wchar.h>.  */
55
+#if !(defined __GLIBC__ && !defined __UCLIBC__)
56
+# include <stddef.h>
57
+# include <stdio.h>
58
+# include <time.h>
59
+#endif
60
+#include <wchar.h>
61
+              int verify[sizeof (wint_t) < sizeof (int) ? -1 : 1];
62
+              ]])],
63
+           [gl_cv_type_wint_t_too_small=no],
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.