1 |
vapier 09/05/29 23:49:28 |
2 |
|
3 |
Added: util-linux-2.15-locale.patch |
4 |
Log: |
5 |
Add fix from upstream for locale build failure on uClibc #271154 by Gianluigi Tiesi. |
6 |
(Portage version: 2.2_rc33/cvs/Linux x86_64) |
7 |
|
8 |
Revision Changes Path |
9 |
1.1 sys-apps/util-linux/files/util-linux-2.15-locale.patch |
10 |
|
11 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/util-linux/files/util-linux-2.15-locale.patch?rev=1.1&view=markup |
12 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-apps/util-linux/files/util-linux-2.15-locale.patch?rev=1.1&content-type=text/plain |
13 |
|
14 |
Index: util-linux-2.15-locale.patch |
15 |
=================================================================== |
16 |
http://bugs.gentoo.org/271154 |
17 |
|
18 |
From a88057d9a329c11a5d4eaf7e15ce25b09be800e5 Mon Sep 17 00:00:00 2001 |
19 |
From: Tom Prince <tom.prince@××××××××.net> |
20 |
Date: Thu, 14 May 2009 22:43:02 -0400 |
21 |
Subject: [PATCH] cal: uClibc has langinfo.h but not _NL_TIME_WEEK_1STDAY. |
22 |
|
23 |
Signed-off-by: Tom Prince <cougar@hermes> |
24 |
--- |
25 |
configure.ac | 2 ++ |
26 |
misc-utils/cal.c | 2 +- |
27 |
2 files changed, 3 insertions(+), 1 deletions(-) |
28 |
|
29 |
diff --git a/configure.ac b/configure.ac |
30 |
index 1abf688..af946a1 100644 |
31 |
--- a/configure.ac |
32 |
+++ b/configure.ac |
33 |
@@ -105,6 +105,8 @@ AC_CHECK_HEADERS([linux/raw.h], |
34 |
[AM_CONDITIONAL([HAVE_RAW], [true])], |
35 |
[AM_CONDITIONAL([HAVE_RAW], [false])]) |
36 |
|
37 |
+AC_CHECK_DECLS([_NL_TIME_WEEK_1STDAY],[],[],[[#include <langinfo.h>]]) |
38 |
+ |
39 |
AC_CHECK_FUNCS( |
40 |
[inet_aton \ |
41 |
fsync \ |
42 |
diff --git a/misc-utils/cal.c b/misc-utils/cal.c |
43 |
index f2d52e8..a8534b8 100644 |
44 |
--- a/misc-utils/cal.c |
45 |
+++ b/misc-utils/cal.c |
46 |
@@ -291,7 +291,7 @@ main(int argc, char **argv) { |
47 |
* the locale database, which can be overridden with the |
48 |
* -s (Sunday) or -m (Monday) options. |
49 |
*/ |
50 |
-#ifdef HAVE_LANGINFO_H |
51 |
+#if HAVE_DECL__NL_TIME_WEEK_1STDAY |
52 |
/* |
53 |
* You need to use 2 locale variables to get the first day of the week. |
54 |
* This is needed to support first_weekday=2 and first_workday=1 for |
55 |
-- |
56 |
1.6.3 |