diff options
author | 2009-05-29 23:49:28 +0000 | |
---|---|---|
committer | 2009-05-29 23:49:28 +0000 | |
commit | 14eaa385c38fd7510911ec460a107e02ef031207 (patch) | |
tree | 11210c4f4c8f050c20c8304a9b40c7c9ec758fd4 /sys-apps/util-linux/files | |
parent | old (diff) | |
download | gentoo-2-14eaa385c38fd7510911ec460a107e02ef031207.tar.gz gentoo-2-14eaa385c38fd7510911ec460a107e02ef031207.tar.bz2 gentoo-2-14eaa385c38fd7510911ec460a107e02ef031207.zip |
Add fix from upstream for locale build failure on uClibc #271154 by Gianluigi Tiesi.
(Portage version: 2.2_rc33/cvs/Linux x86_64)
Diffstat (limited to 'sys-apps/util-linux/files')
-rw-r--r-- | sys-apps/util-linux/files/util-linux-2.15-locale.patch | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/sys-apps/util-linux/files/util-linux-2.15-locale.patch b/sys-apps/util-linux/files/util-linux-2.15-locale.patch new file mode 100644 index 000000000000..43f5d9463e60 --- /dev/null +++ b/sys-apps/util-linux/files/util-linux-2.15-locale.patch @@ -0,0 +1,42 @@ +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 + |