diff options
author | minskim <minskim@pkgsrc.org> | 2004-06-22 14:05:39 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2004-06-22 14:05:39 +0000 |
commit | 51a394a2068e4276262e59f74457aa45d48f4115 (patch) | |
tree | 269efde7ac68f8084fca6dc7cac0dc266d98e693 /shells/bash2/patches | |
parent | a3f722e4a38d61521c93c0d0b7869dd017b9640a (diff) | |
download | pkgsrc-51a394a2068e4276262e59f74457aa45d48f4115.tar.gz |
Disable multibyte support only when wctype_t is not available. The
previous patches disabled it on NetBSD unconditionally. Bump PKGREVISION.
Pointed out by Kibum Han. Thanks to junyoung@ for testing.
OK'ed by schmonz@ and wiz@.
Diffstat (limited to 'shells/bash2/patches')
-rw-r--r-- | shells/bash2/patches/patch-aa | 4 | ||||
-rw-r--r-- | shells/bash2/patches/patch-ac | 4 | ||||
-rw-r--r-- | shells/bash2/patches/patch-ad | 4 | ||||
-rw-r--r-- | shells/bash2/patches/patch-ah | 79 | ||||
-rw-r--r-- | shells/bash2/patches/patch-ai | 14 | ||||
-rw-r--r-- | shells/bash2/patches/patch-aj | 21 |
6 files changed, 120 insertions, 6 deletions
diff --git a/shells/bash2/patches/patch-aa b/shells/bash2/patches/patch-aa index dff38aaab92..22ba73eb5f0 100644 --- a/shells/bash2/patches/patch-aa +++ b/shells/bash2/patches/patch-aa @@ -1,4 +1,4 @@ -$NetBSD: patch-aa,v 1.10 2002/12/17 14:45:13 drochner Exp $ +$NetBSD: patch-aa,v 1.11 2004/06/22 14:05:39 minskim Exp $ --- config-bot.h.orig Tue Apr 16 23:01:03 2002 +++ config-bot.h Tue Dec 17 15:34:52 2002 @@ -7,7 +7,7 @@ $NetBSD: patch-aa,v 1.10 2002/12/17 14:45:13 drochner Exp $ # include <wchar.h> # include <wctype.h> -# if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */ -+# if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */ && !defined(__NetBSD__) ++# if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */ && defined (HAVE_WCTYPE_T) # define HANDLE_MULTIBYTE 1 # endif #endif diff --git a/shells/bash2/patches/patch-ac b/shells/bash2/patches/patch-ac index 793c6f7f53a..a272ec14a86 100644 --- a/shells/bash2/patches/patch-ac +++ b/shells/bash2/patches/patch-ac @@ -1,4 +1,4 @@ -$NetBSD: patch-ac,v 1.8 2002/12/17 14:45:13 drochner Exp $ +$NetBSD: patch-ac,v 1.9 2004/06/22 14:05:39 minskim Exp $ --- include/shmbutil.h.orig Mon May 6 19:58:39 2002 +++ include/shmbutil.h Tue Dec 17 15:27:20 2002 @@ -7,7 +7,7 @@ $NetBSD: patch-ac,v 1.8 2002/12/17 14:45:13 drochner Exp $ # include <wchar.h> # include <wctype.h> -# if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */ -+# if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */ && !defined(__NetBSD__) ++# if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */ && defined (HAVE_WCTYPE_T) # define HANDLE_MULTIBYTE 1 # endif #endif /* HAVE_WCTYPE_H && HAVE_WCHAR_H */ diff --git a/shells/bash2/patches/patch-ad b/shells/bash2/patches/patch-ad index 4283edb99a7..ce05784c945 100644 --- a/shells/bash2/patches/patch-ad +++ b/shells/bash2/patches/patch-ad @@ -1,4 +1,4 @@ -$NetBSD: patch-ad,v 1.4 2002/12/17 14:45:13 drochner Exp $ +$NetBSD: patch-ad,v 1.5 2004/06/22 14:05:39 minskim Exp $ --- lib/readline/rlmbutil.h.orig Thu Dec 20 15:54:38 2001 +++ lib/readline/rlmbutil.h Tue Dec 17 15:35:45 2002 @@ -7,7 +7,7 @@ $NetBSD: patch-ad,v 1.4 2002/12/17 14:45:13 drochner Exp $ # include <wchar.h> # include <wctype.h> -# if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */ -+# if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */ && !defined(__NetBSD__) ++# if defined (HAVE_MBSRTOWCS) /* system is supposed to support XPG5 */ && defined (HAVE_WCTYPE_T) # define HANDLE_MULTIBYTE 1 # endif #endif diff --git a/shells/bash2/patches/patch-ah b/shells/bash2/patches/patch-ah new file mode 100644 index 00000000000..12059aaf4a6 --- /dev/null +++ b/shells/bash2/patches/patch-ah @@ -0,0 +1,79 @@ +$NetBSD: patch-ah,v 1.1 2004/06/22 14:05:39 minskim Exp $ + +--- configure.orig 2002-07-16 08:31:47.000000000 -0500 ++++ configure +@@ -10752,6 +10752,74 @@ EOF + + fi + ++echo "$as_me:10755: checking for wctype_t" >&5 ++echo $ECHO_N "checking for wctype_t... $ECHO_C" >&6 ++if test "${ac_cv_type_wctype_t+set}" = set; then ++ echo $ECHO_N "(cached) $ECHO_C" >&6 ++else ++ cat >conftest.$ac_ext <<_ACEOF ++/* confdefs.h. */ ++_ACEOF ++cat confdefs.h >>conftest.$ac_ext ++cat >>conftest.$ac_ext <<_ACEOF ++/* end confdefs.h. */ ++#ifdef HAVE_WCHAR_H ++#include <wchar.h> ++#endif ++#ifdef HAVE_WCTYPE_H ++#include <wctype.h> ++#endif ++ ++int ++main () ++{ ++if ((wctype_t *) 0) ++ return 0; ++if (sizeof (wctype_t)) ++ return 0; ++ ; ++ return 0; ++} ++_ACEOF ++rm -f conftest.$ac_objext ++if { (eval echo "$as_me:10785: \"$ac_compile\"") >&5 ++ (eval $ac_compile) 2>conftest.er1 ++ ac_status=$? ++ grep -v '^ *+' conftest.er1 >conftest.err ++ rm -f conftest.er1 ++ cat conftest.err >&5 ++ echo "$as_me:10791: \$? = $ac_status" >&5 ++ (exit $ac_status); } && ++ { ac_try='test -z "$ac_c_werror_flag" ++ || test ! -s conftest.err' ++ { (eval echo "$as_me:10795: \"$ac_try\"") >&5 ++ (eval $ac_try) 2>&5 ++ ac_status=$? ++ echo "$as_me:10798: \$? = $ac_status" >&5 ++ (exit $ac_status); }; } && ++ { ac_try='test -s conftest.$ac_objext' ++ { (eval echo "$as_me:10801: \"$ac_try\"") >&5 ++ (eval $ac_try) 2>&5 ++ ac_status=$? ++ echo "$as_me:10804: \$? = $ac_status" >&5 ++ (exit $ac_status); }; }; then ++ ac_cv_type_wctype_t=yes ++else ++ echo "$as_me: failed program was:" >&5 ++sed 's/^/| /' conftest.$ac_ext >&5 ++ ++ac_cv_type_wctype_t=no ++fi ++rm -f conftest.err conftest.$ac_objext conftest.$ac_ext ++fi ++echo "$as_me:10815: result: $ac_cv_type_wctype_t" >&5 ++echo "${ECHO_T}$ac_cv_type_wctype_t" >&6 ++if test $ac_cv_type_wctype_t = yes; then ++ cat >>confdefs.h <<\_ACEOF ++#define HAVE_WCTYPE_T 1 ++_ACEOF ++fi ++ + if test "$ac_cv_sizeof_short" = 2; then + echo "$as_me:10756: checking for bits16_t" >&5 + echo $ECHO_N "checking for bits16_t... $ECHO_C" >&6 diff --git a/shells/bash2/patches/patch-ai b/shells/bash2/patches/patch-ai new file mode 100644 index 00000000000..2b560548c45 --- /dev/null +++ b/shells/bash2/patches/patch-ai @@ -0,0 +1,14 @@ +$NetBSD: patch-ai,v 1.1 2004/06/22 14:05:39 minskim Exp $ + +--- config.h.in.orig 2004-06-21 09:46:10.000000000 -0500 ++++ config.h.in +@@ -221,6 +221,9 @@ + /* Define if you have <alloca.h> and it should be used (not on Ultrix). */ + #undef HAVE_ALLOCA_H + ++/* Define if you have wctype_t, as a type. */ ++#undef HAVE_WCTYPE_T ++ + + /* SYSTEM TYPES */ + diff --git a/shells/bash2/patches/patch-aj b/shells/bash2/patches/patch-aj new file mode 100644 index 00000000000..3268b3d5c5c --- /dev/null +++ b/shells/bash2/patches/patch-aj @@ -0,0 +1,21 @@ +$NetBSD: patch-aj,v 1.1 2004/06/22 14:05:39 minskim Exp $ + +--- configure.in.orig 2002-07-16 08:31:25.000000000 -0500 ++++ configure.in +@@ -678,6 +678,16 @@ AC_CHECK_SIZEOF([long long], 8) + + AC_CHECK_TYPE(u_int, [unsigned int]) + AC_CHECK_TYPE(u_long, [unsigned long]) ++AC_CHECK_TYPE(wctype_t, ++[ cat >>confdefs.h <<\_ACEOF ++#define HAVE_WCTYPE_T 1 ++_ACEOF],, ++[#ifdef HAVE_WCHAR_H ++#include <wchar.h> ++#endif ++#ifdef HAVE_WCTYPE_H ++#include <wctype.h> ++#endif]) + + BASH_TYPE_BITS16_T + BASH_TYPE_U_BITS16_T |