diff options
author | Juro Bystricky <jurobystricky@hotmail.com> | 2014-11-23 09:44:17 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-29 15:36:48 +0000 |
commit | c453597d44a1a2301f4be7bf7a0853ea12eb448c (patch) | |
tree | 42e66430978fdb02370100441151bd9dc54d771e /meta/recipes-core/glibc | |
parent | 2af94b0af6422862810acfc90f31fa659f31e46e (diff) | |
download | poky-c453597d44a1a2301f4be7bf7a0853ea12eb448c.tar.gz |
eglibc-use-option-groups.patch: Various fixups
Build suppport for mutibyte character handling only when
__OPTION_EGLIBC_LOCALE_CODE evaluates to 1.
Fixes missing .out suffix for several tests to be built.
Fixes building of locales needed for several tests. Do not use
cross-localedef to build locales. Use localedef built with the
newly built libgc instead.
Fixes:
[YOCTO #6809] [YOCTO #6796] [YOCTO #6797]
(From OE-Core rev: f01800d46de95f55d7a90d4a2523788368f7c025)
Signed-off-by: Juro Bystricky <jurobystricky@hotmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/glibc')
-rw-r--r-- | meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch | 43 |
1 files changed, 4 insertions, 39 deletions
diff --git a/meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch b/meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch index 332b8f73a6..f61d459e5c 100644 --- a/meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch +++ b/meta/recipes-core/glibc/glibc/eglibc-use-option-groups.patch | |||
@@ -2434,24 +2434,7 @@ Index: git/localedata/Makefile | |||
2434 | 2434 | ||
2435 | ifeq ($(run-built-tests),yes) | 2435 | ifeq ($(run-built-tests),yes) |
2436 | # We have to generate locales | 2436 | # We have to generate locales |
2437 | @@ -143,9 +161,13 @@ | 2437 | @@ -213,6 +231,11 @@ |
2438 | $(addprefix $(objpfx),$(CTYPE_FILES)): %: \ | ||
2439 | gen-locale.sh $(common-objpfx)locale/localedef Makefile \ | ||
2440 | $(addprefix charmaps/,$(CHARMAPS)) $(addprefix locales/,$(LOCALE_SRCS)) | ||
2441 | - @$(SHELL) gen-locale.sh $(common-objpfx) \ | ||
2442 | - '$(built-program-cmd-before-env)' '$(run-program-env)' \ | ||
2443 | - '$(built-program-cmd-after-env)' $@; \ | ||
2444 | + @$(SHELL) gen-locale.sh $(common-objpfx) \ | ||
2445 | + '$(if $(cross-localedef), \ | ||
2446 | + $(cross-localedef), \ | ||
2447 | + $(built-program-cmd-before-env) \ | ||
2448 | + $(run-program-env) \ | ||
2449 | + $(built-program-cmd-after-env))' \ | ||
2450 | + $@; \ | ||
2451 | $(evaluate-test) | ||
2452 | |||
2453 | $(addsuffix .out,$(addprefix $(objpfx),$(tests))): %: \ | ||
2454 | @@ -213,6 +235,11 @@ | ||
2455 | 2438 | ||
2456 | include SUPPORTED | 2439 | include SUPPORTED |
2457 | 2440 | ||
@@ -4784,7 +4767,7 @@ Index: git/posix/fnmatch.c | |||
4784 | # endif | 4767 | # endif |
4785 | 4768 | ||
4786 | -# if (HAVE_MBSTATE_T && HAVE_MBSRTOWCS) || _LIBC | 4769 | -# if (HAVE_MBSTATE_T && HAVE_MBSRTOWCS) || _LIBC |
4787 | +# if (HAVE_MBSTATE_T && HAVE_MBSRTOWCS) || (_LIBC && __OPTION_EGLIBC_LOCALE_CODE) | 4770 | +# if (HAVE_MBSTATE_T && HAVE_MBSRTOWCS && _LIBC && __OPTION_EGLIBC_LOCALE_CODE) |
4788 | /* In this case we are implementing the multibyte character handling. */ | 4771 | /* In this case we are implementing the multibyte character handling. */ |
4789 | # define HANDLE_MULTIBYTE 1 | 4772 | # define HANDLE_MULTIBYTE 1 |
4790 | # endif | 4773 | # endif |
@@ -5066,8 +5049,8 @@ Index: git/posix/Makefile | |||
5066 | $(objpfx)bug-glob2-mem.out $(objpfx)tst-vfork3-mem.out \ | 5049 | $(objpfx)bug-glob2-mem.out $(objpfx)tst-vfork3-mem.out \ |
5067 | $(objpfx)tst-fnmatch-mem.out $(objpfx)bug-regex36-mem.out | 5050 | $(objpfx)tst-fnmatch-mem.out $(objpfx)bug-regex36-mem.out |
5068 | +ifeq (y,$(OPTION_POSIX_REGEXP_GLIBC)) | 5051 | +ifeq (y,$(OPTION_POSIX_REGEXP_GLIBC)) |
5069 | +tests-special += $(objpfx)bug-regex14-mem $(objpfx)tst-rxspencer-no-utf8-mem \ | 5052 | +tests-special += $(objpfx)bug-regex14-mem.out $(objpfx)tst-rxspencer-no-utf8-mem.out \ |
5070 | + $(objpfx)tst-pcre-mem $(objpfx)tst-boost-mem | 5053 | + $(objpfx)tst-pcre-mem.out $(objpfx)tst-boost-mem.out |
5071 | +endif | 5054 | +endif |
5072 | + | 5055 | + |
5073 | xtests-special += $(objpfx)bug-ga2-mem.out | 5056 | xtests-special += $(objpfx)bug-ga2-mem.out |
@@ -16459,24 +16442,6 @@ Index: git/sysdeps/nptl/small-macros-fns.c | |||
16459 | +libc_hidden_def (__libc_lock_unlock_recursive_fn); | 16442 | +libc_hidden_def (__libc_lock_unlock_recursive_fn); |
16460 | + | 16443 | + |
16461 | +#endif /*defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread)*/ | 16444 | +#endif /*defined _LIBC && (!defined NOT_IN_libc || defined IS_IN_libpthread)*/ |
16462 | Index: git/include/libc-symbols.h | ||
16463 | =================================================================== | ||
16464 | --- git.orig/include/libc-symbols.h 2014-08-29 20:00:47.144070587 -0700 | ||
16465 | +++ git/include/libc-symbols.h 2014-08-29 20:01:15.248070587 -0700 | ||
16466 | @@ -60,8 +60,11 @@ | ||
16467 | /* Define these macros for the benefit of portable GNU code that wants to check | ||
16468 | them. Of course, STDC_HEADERS is never false when building libc! */ | ||
16469 | #define STDC_HEADERS 1 | ||
16470 | -#define HAVE_MBSTATE_T 1 | ||
16471 | -#define HAVE_MBSRTOWCS 1 | ||
16472 | + | ||
16473 | +#if __OPTION_EGLIBC_LOCALE_CODE | ||
16474 | +# define HAVE_MBSTATE_T 1 | ||
16475 | +# define HAVE_MBSRTOWCS 1 | ||
16476 | +#endif | ||
16477 | #define HAVE_LIBINTL_H 1 | ||
16478 | #define HAVE_WCTYPE_H 1 | ||
16479 | #define HAVE_ISWCTYPE 1 | ||
16480 | Index: git/crypt/crypt_common.c | 16445 | Index: git/crypt/crypt_common.c |
16481 | =================================================================== | 16446 | =================================================================== |
16482 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | 16447 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |