* [gentoo-commits] gentoo-x86 commit in sys-apps/util-linux/files: util-linux-2.15-locale.patch
@ 2009-05-29 23:49 Mike Frysinger (vapier)
0 siblings, 0 replies; only message in thread
From: Mike Frysinger (vapier) @ 2009-05-29 23:49 UTC (permalink / raw
To: gentoo-commits
vapier 09/05/29 23:49:28
Added: util-linux-2.15-locale.patch
Log:
Add fix from upstream for locale build failure on uClibc #271154 by Gianluigi Tiesi.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Revision Changes Path
1.1 sys-apps/util-linux/files/util-linux-2.15-locale.patch
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
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
Index: util-linux-2.15-locale.patch
===================================================================
http://bugs.gentoo.org/271154
From a88057d9a329c11a5d4eaf7e15ce25b09be800e5 Mon Sep 17 00:00:00 2001
From: Tom Prince <tom.prince@ualberta.net>
Date: Thu, 14 May 2009 22:43:02 -0400
Subject: [PATCH] cal: uClibc has langinfo.h but not _NL_TIME_WEEK_1STDAY.
Signed-off-by: Tom Prince <cougar@hermes>
---
configure.ac | 2 ++
misc-utils/cal.c | 2 +-
2 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/configure.ac b/configure.ac
index 1abf688..af946a1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -105,6 +105,8 @@ AC_CHECK_HEADERS([linux/raw.h],
[AM_CONDITIONAL([HAVE_RAW], [true])],
[AM_CONDITIONAL([HAVE_RAW], [false])])
+AC_CHECK_DECLS([_NL_TIME_WEEK_1STDAY],[],[],[[#include <langinfo.h>]])
+
AC_CHECK_FUNCS(
[inet_aton \
fsync \
diff --git a/misc-utils/cal.c b/misc-utils/cal.c
index f2d52e8..a8534b8 100644
--- a/misc-utils/cal.c
+++ b/misc-utils/cal.c
@@ -291,7 +291,7 @@ main(int argc, char **argv) {
* the locale database, which can be overridden with the
* -s (Sunday) or -m (Monday) options.
*/
-#ifdef HAVE_LANGINFO_H
+#if HAVE_DECL__NL_TIME_WEEK_1STDAY
/*
* You need to use 2 locale variables to get the first day of the week.
* This is needed to support first_weekday=2 and first_workday=1 for
--
1.6.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-05-29 23:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-29 23:49 [gentoo-commits] gentoo-x86 commit in sys-apps/util-linux/files: util-linux-2.15-locale.patch Mike Frysinger (vapier)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox