pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/sysutils/file Some OSes have locale_t in xlocale.h (pa...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/64a9f0768185
branches:  trunk
changeset: 641414:64a9f0768185
user:      schmonz <schmonz%pkgsrc.org@localhost>
date:      Fri Nov 07 11:17:12 2014 +0000

description:
Some OSes have locale_t in xlocale.h (patch from upstream).

diffstat:

 sysutils/file/distinfo                   |   7 ++++++-
 sysutils/file/patches/patch-config.h.in  |  26 ++++++++++++++++++++++++++
 sysutils/file/patches/patch-configure    |  24 ++++++++++++++++++++++++
 sysutils/file/patches/patch-configure.ac |  24 ++++++++++++++++++++++++
 sysutils/file/patches/patch-src_file.c   |  16 ++++++++++++++++
 sysutils/file/patches/patch-src_file.h   |  16 ++++++++++++++++
 6 files changed, 112 insertions(+), 1 deletions(-)

diffs (143 lines):

diff -r 2d27e5ccdd97 -r 64a9f0768185 sysutils/file/distinfo
--- a/sysutils/file/distinfo    Fri Nov 07 11:08:26 2014 +0000
+++ b/sysutils/file/distinfo    Fri Nov 07 11:17:12 2014 +0000
@@ -1,7 +1,12 @@
-$NetBSD: distinfo,v 1.19 2014/10/26 06:04:34 ryoon Exp $
+$NetBSD: distinfo,v 1.20 2014/11/07 11:17:12 schmonz Exp $
 
 SHA1 (file-5.20.tar.gz) = 4e93e9ae915f1812b05cc6012ae968fdb6416f8f
 RMD160 (file-5.20.tar.gz) = a584dc0d254585c0f7a2cebab10b4115d88a3293
 Size (file-5.20.tar.gz) = 725937 bytes
 SHA1 (patch-aa) = d3aa3667e3d28ac1268b83de2de372ba083705fc
+SHA1 (patch-config.h.in) = 0b1b675715aba1a8a5a9827ff676c83857a23a93
+SHA1 (patch-configure) = 02bcdc6eda7816e02bd98457372cba34dc2e19f4
+SHA1 (patch-configure.ac) = 72b48d2e1b62d0bf3adc7c489a12c53901ef073d
+SHA1 (patch-src_file.c) = a9b6467125816a9a803083c7ccac6707e36b5fd2
+SHA1 (patch-src_file.h) = 258ba7b1c0e0c6e3a4571088ac91d20440c4dff6
 SHA1 (patch-src_getline.c) = 23365ae99c8c5a4c4ff4e0d94b83798d12335112
diff -r 2d27e5ccdd97 -r 64a9f0768185 sysutils/file/patches/patch-config.h.in
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/file/patches/patch-config.h.in   Fri Nov 07 11:17:12 2014 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-config.h.in,v 1.1 2014/11/07 11:17:12 schmonz Exp $
+
+Some OSes have locale_t in xlocale.h (patch from upstream).
+
+--- config.h.in.orig   2014-11-07 11:11:41.000000000 +0000
++++ config.h.in
+@@ -104,6 +104,9 @@
+ /* Define to 1 if you have the `pread' function. */
+ #undef HAVE_PREAD
+ 
++/* Define to 1 if you have the `setlocale' function. */
++#undef HAVE_SETLOCALE
++
+ /* Define to 1 if you have the <stddef.h> header file. */
+ #undef HAVE_STDDEF_H
+ 
+@@ -228,6 +231,9 @@
+ /* Define to 1 if `vfork' works. */
+ #undef HAVE_WORKING_VFORK
+ 
++/* Define to 1 if you have the <xlocale.h> header file. */
++#undef HAVE_XLOCALE_H
++
+ /* Define to 1 if you have the <zlib.h> header file. */
+ #undef HAVE_ZLIB_H
+ 
diff -r 2d27e5ccdd97 -r 64a9f0768185 sysutils/file/patches/patch-configure
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/file/patches/patch-configure     Fri Nov 07 11:17:12 2014 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-configure,v 1.1 2014/11/07 11:17:12 schmonz Exp $
+
+Some OSes have locale_t in xlocale.h (patch from upstream).
+
+--- configure.orig     2014-11-07 10:49:37.000000000 +0000
++++ configure
+@@ -12785,7 +12785,7 @@ fi
+ 
+ done
+ 
+-for ac_header in getopt.h err.h
++for ac_header in getopt.h err.h xlocale.h
+ do :
+   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+@@ -14191,7 +14191,7 @@ fi
+ fi
+ 
+ 
+-for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale
++for ac_func in strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale
+ do :
+   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
+ ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
diff -r 2d27e5ccdd97 -r 64a9f0768185 sysutils/file/patches/patch-configure.ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/file/patches/patch-configure.ac  Fri Nov 07 11:17:12 2014 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-configure.ac,v 1.1 2014/11/07 11:17:12 schmonz Exp $
+
+Some OSes have locale_t in xlocale.h (patch from upstream).
+
+--- configure.ac.orig  2014-10-10 18:56:21.000000000 +0000
++++ configure.ac
+@@ -82,7 +82,7 @@ AC_HEADER_MAJOR
+ AC_HEADER_SYS_WAIT
+ AC_CHECK_HEADERS(stdint.h fcntl.h locale.h stdint.h inttypes.h unistd.h)
+ AC_CHECK_HEADERS(stddef.h utime.h wchar.h wctype.h limits.h)
+-AC_CHECK_HEADERS(getopt.h err.h)
++AC_CHECK_HEADERS(getopt.h err.h xlocale.h)
+ AC_CHECK_HEADERS(sys/mman.h sys/stat.h sys/types.h sys/utime.h sys/time.h)
+ AC_CHECK_HEADERS(zlib.h)
+ 
+@@ -138,7 +138,7 @@ else
+ fi])
+ 
+ dnl Checks for functions
+-AC_CHECK_FUNCS(strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale)
++AC_CHECK_FUNCS(strerror strndup strtoul mkstemp mkostemp utimes utime wcwidth strtof newlocale uselocale freelocale setlocale)
+ 
+ dnl Provide implementation of some required functions if necessary
+ AC_REPLACE_FUNCS(getopt_long asprintf vasprintf strlcpy strlcat getline ctime_r asctime_r pread strcasestr fmtcheck)
diff -r 2d27e5ccdd97 -r 64a9f0768185 sysutils/file/patches/patch-src_file.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/file/patches/patch-src_file.c    Fri Nov 07 11:17:12 2014 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_file.c,v 1.1 2014/11/07 11:17:12 schmonz Exp $
+
+Some OSes have locale_t in xlocale.h (patch from upstream).
+
+--- src/file.c.orig    2014-09-11 15:05:33.000000000 +0000
++++ src/file.c
+@@ -142,7 +142,9 @@ main(int argc, char *argv[])
+       const char *magicfile = NULL;           /* where the magic is   */
+ 
+       /* makes islower etc work for other langs */
++#ifdef HAVE_SETLOCALE
+       (void)setlocale(LC_CTYPE, "");
++#endif
+ 
+ #ifdef __EMX__
+       /* sh-like wildcard expansion! Shouldn't hurt at least ... */
diff -r 2d27e5ccdd97 -r 64a9f0768185 sysutils/file/patches/patch-src_file.h
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/file/patches/patch-src_file.h    Fri Nov 07 11:17:12 2014 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_file.h,v 1.1 2014/11/07 11:17:12 schmonz Exp $
+
+Some OSes have locale_t in xlocale.h (patch from upstream).
+
+--- src/file.h.orig    2014-09-11 15:05:33.000000000 +0000
++++ src/file.h
+@@ -474,6 +474,9 @@ protected int file_os2_apptype(struct ma
+ #if defined(HAVE_LOCALE_H)
+ #include <locale.h>
+ #endif
++#if defined(HAVE_XLOCALE_H)
++#include <xlocale.h>
++#endif
+ 
+ typedef struct {
+       const char *pat;



Home | Main Index | Thread Index | Old Index