diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-02-05 18:46:16 -0600 |
---|---|---|
committer | William Pitcock <nenolod@dereferenced.org> | 2018-02-07 08:13:38 +0000 |
commit | d95409f62bc4fb680095b9bbbc164b609d4b3ccd (patch) | |
tree | 5897774fe1f7d210ba4bfcd0f24cc3f2b1a037bf /main/gettext/skip-tests-musl.patch | |
parent | 5a2c13d37ad3b12a8b115cd2c88b3dab5b5ada2a (diff) | |
download | aports-d95409f62bc4fb680095b9bbbc164b609d4b3ccd.tar.bz2 aports-d95409f62bc4fb680095b9bbbc164b609d4b3ccd.tar.xz |
main/gettext: add tests, fix license
Diffstat (limited to 'main/gettext/skip-tests-musl.patch')
-rw-r--r-- | main/gettext/skip-tests-musl.patch | 95 |
1 files changed, 95 insertions, 0 deletions
diff --git a/main/gettext/skip-tests-musl.patch b/main/gettext/skip-tests-musl.patch new file mode 100644 index 0000000000..2ed677f72c --- /dev/null +++ b/main/gettext/skip-tests-musl.patch @@ -0,0 +1,95 @@ +--- gettext-0.19.8.1/gettext-tools/tests/msgconv-2.old 2016-06-09 22:56:00.000000000 +0000 ++++ gettext-0.19.8.1/gettext-tools/tests/msgconv-2 2017-08-11 17:54:55.677206381 +0000 +@@ -4,6 +4,8 @@ + # Test conversion from UTF-8 to BIG5. + # Test that encoding names are case insensitive. + ++Exit 77 ++ + cat <<\EOF > mco-test2.po + # Chinese translation for GNU gettext messages. + # +--- gettext-0.19.8.1/gettext-tools/tests/msgmerge-compendium-6.old 2016-06-09 22:56:00.000000000 +0000 ++++ gettext-0.19.8.1/gettext-tools/tests/msgmerge-compendium-6 2017-08-11 17:55:41.440408716 +0000 +@@ -7,6 +7,8 @@ + # mm-ko.ascii.pot mm-ko.euc-kr.po mm-ko-comp.euc-kr.po + # mm-ko.utf-8.pot mm-ko.utf-8.po mm-ko-comp.utf-8.po + ++Exit 77 ++ + : ${MSGCONV=msgconv} + ${MSGCONV} --to-code=UTF-8 -o mm-ko.utf-8.pot "$abs_srcdir"/mm-ko.ascii.pot + +--- gettext-0.19.8.1/gettext-tools/tests/xgettext-python-3.old 2016-06-09 22:56:00.000000000 +0000 ++++ gettext-0.19.8.1/gettext-tools/tests/xgettext-python-3 2017-08-11 17:54:26.533956530 +0000 +@@ -1,6 +1,8 @@ + #!/bin/sh + . "${srcdir=.}/init.sh"; path_prepend_ . ../src + ++Exit 77 ++ + # Test Python support: --from-code option and encoding recognition. + + cat <<\EOF > xg-py-3a.py +--- gettext-0.19.8.1/gettext-tools/gnulib-tests/test-striconveha.c.old 2016-06-11 13:00:04.000000000 +0000 ++++ gettext-0.19.8.1/gettext-tools/gnulib-tests/test-striconveha.c 2017-08-11 18:12:12.294469761 +0000 +@@ -308,6 +308,7 @@ + + /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2. */ + # if defined _LIBICONV_VERSION || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun) ++ if (iconv_open("ISO-2022-JP-2", "UTF-8") != -1) { + /* Test conversions from autodetect_jp to UTF-8. */ + for (h = 0; h < SIZEOF (handlers); h++) + { +@@ -399,6 +400,7 @@ + free (result); + } + } ++ } + # endif + + # if (((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) && !defined __UCLIBC__) || _LIBICONV_VERSION >= 0x0105 +@@ -547,6 +547,7 @@ + /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2. */ + # if defined _LIBICONV_VERSION || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun) + /* Test conversions from autodetect_jp to UTF-8. */ ++ if (iconv_open("ISO-2022-JP-2", "UTF-8") != -1) { + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; +@@ -577,6 +578,7 @@ + ASSERT (strcmp (result, expected) == 0); + free (result); + } ++ } + # endif + + # if (((__GLIBC__ == 2 && __GLIBC_MINOR__ >= 2) || __GLIBC__ > 2) && !defined __UCLIBC__) || _LIBICONV_VERSION >= 0x0105 +--- gettext-0.19.8.1/gettext-tools/gnulib-tests/test-mbrtowc5.sh.old 2016-12-31 13:54:43.000000000 +0000 ++++ gettext-0.19.8.1/gettext-tools/gnulib-tests/test-mbrtowc5.sh 2017-07-30 17:29:50.879924130 +0000 +@@ -1,6 +1,2 @@ + #!/bin/sh +-# Test whether the POSIX locale has encoding errors. +-LC_ALL=C \ +-./test-mbrtowc${EXEEXT} 5 || exit +-LC_ALL=POSIX \ +-./test-mbrtowc${EXEEXT} 5 ++exit 77 +--- gettext-0.19.8.1/gettext-tools/gnulib-tests/uniconv/test-u8-conv-from-enc.c.old 2016-06-11 13:00:04.000000000 +0000 ++++ gettext-0.19.8.1/gettext-tools/gnulib-tests/uniconv/test-u8-conv-from-enc.c 2017-08-11 18:26:43.888920845 +0000 +@@ -113,6 +113,7 @@ + /* autodetect_jp is only supported when iconv() support ISO-2022-JP-2. */ + # if defined _LIBICONV_VERSION || !(defined _AIX || defined __sgi || defined __hpux || defined __osf__ || defined __sun) + /* Test conversions from autodetect_jp to UTF-8. */ ++ if (iconv_open("ISO-2022-JP-2", "UTF-8") != -1) { + for (h = 0; h < SIZEOF (handlers); h++) + { + enum iconv_ilseq_handler handler = handlers[h]; +@@ -197,6 +198,7 @@ + free (result); + } + } ++ } + # endif + + #endif |