summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alex.kanavin@gmail.com>2019-12-17 17:00:11 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-02 16:39:13 +0000
commitf622fb54bef2c59de7bc2c2851ea39fd1b9b8937 (patch)
treed9c7d2246de0f0cfb01cb80bb66f7b4ca3e2bbf4 /meta
parent698f11b2548f86270ee06801ebda8c569fa2f49e (diff)
downloadpoky-f622fb54bef2c59de7bc2c2851ea39fd1b9b8937.tar.gz
gettext: fix failing ptests
Results: pass 400 fail 0 skip 32 (From OE-Core rev: b3147117a32e2bfe851ffa00951dfb28af4ab7e6) Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-core/gettext/gettext_0.20.1.bb23
1 files changed, 21 insertions, 2 deletions
diff --git a/meta/recipes-core/gettext/gettext_0.20.1.bb b/meta/recipes-core/gettext/gettext_0.20.1.bb
index fc05ef2e0a..a6fc219568 100644
--- a/meta/recipes-core/gettext/gettext_0.20.1.bb
+++ b/meta/recipes-core/gettext/gettext_0.20.1.bb
@@ -44,6 +44,10 @@ EXTRA_OECONF += "--without-lispdir \
44 " 44 "
45EXTRA_OECONF_append_class-target = " \ 45EXTRA_OECONF_append_class-target = " \
46 --with-bisonlocaledir=${datadir}/locale \ 46 --with-bisonlocaledir=${datadir}/locale \
47 gt_cv_locale_fr_utf8=fr_FR \
48 gt_cv_locale_fr=fr_FR.ISO-8859-1 \
49 gt_cv_locale_de_utf8=de_DE \
50 gt_cv_locale_de=de_DE.ISO-8859-1 \
47" 51"
48 52
49PACKAGECONFIG ??= "croco glib libxml" 53PACKAGECONFIG ??= "croco glib libxml"
@@ -143,13 +147,17 @@ do_install_ptest() {
143 mkdir -p ${D}${PTEST_PATH}/src 147 mkdir -p ${D}${PTEST_PATH}/src
144 mkdir -p ${D}${PTEST_PATH}/po 148 mkdir -p ${D}${PTEST_PATH}/po
145 mkdir -p ${D}${PTEST_PATH}/misc 149 mkdir -p ${D}${PTEST_PATH}/misc
150 mkdir -p ${D}${PTEST_PATH}/its
151 mkdir -p ${D}${PTEST_PATH}/styles
152 cp -rf ${S}/gettext-tools/its/* ${D}${PTEST_PATH}/its
153 cp -rf ${S}/gettext-tools/styles/* ${D}${PTEST_PATH}/styles
146 cp -rf ${S}/gettext-tools/tests/* ${D}${PTEST_PATH}/tests 154 cp -rf ${S}/gettext-tools/tests/* ${D}${PTEST_PATH}/tests
147 cp -rf ${B}/gettext-tools/tests/.libs/* ${D}${PTEST_PATH}/tests 155 cp -rf ${B}/gettext-tools/tests/.libs/* ${D}${PTEST_PATH}/tests
148 cp -rf ${B}/gettext-runtime/intl/.libs/libgnuintl.so.8* ${D}${libdir}/ 156 cp -rf ${B}/gettext-runtime/intl/.libs/libgnuintl.so.8* ${D}${libdir}/
149 cp -rf ${B}/gettext-tools/tests/Makefile ${D}${PTEST_PATH}/tests 157 cp -rf ${B}/gettext-tools/tests/Makefile ${D}${PTEST_PATH}/tests
158 cp -rf ${B}/gettext-tools/tests/init-env ${D}${PTEST_PATH}/tests
150 sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile 159 sed -i '/^Makefile:/c Makefile:' ${D}${PTEST_PATH}/tests/Makefile
151 sed -i -e 's:CONFIG_SHELL=.*:& LOCALE_FR='fr_FR.iso88591' LOCALE_FR_UTF8='fr_FR.utf8' LOCALE_JA='ja_JP.eucjp':g' \ 160 sed -i -e 's:lang-c lang-c++:lang-c++:g' ${D}${PTEST_PATH}/tests/Makefile
152 -e 's:lang-c lang-c++:lang-c++:g' ${D}${PTEST_PATH}/tests/Makefile
153 install ${S}/gettext-tools/src/msgunfmt.tcl ${D}${PTEST_PATH}/src 161 install ${S}/gettext-tools/src/msgunfmt.tcl ${D}${PTEST_PATH}/src
154 install ${S}/gettext-tools/src/project-id ${D}${PTEST_PATH}/src 162 install ${S}/gettext-tools/src/project-id ${D}${PTEST_PATH}/src
155 install ${B}/gettext-runtime/src/gettext.sh ${D}${PTEST_PATH}/src 163 install ${B}/gettext-runtime/src/gettext.sh ${D}${PTEST_PATH}/src
@@ -177,8 +185,19 @@ RDEPENDS_${PN}-ptest_append_libc-glibc = "\
177 glibc-gconv-koi8-r \ 185 glibc-gconv-koi8-r \
178 glibc-gconv-iso8859-2 \ 186 glibc-gconv-iso8859-2 \
179 glibc-charmap-iso-8859-2 \ 187 glibc-charmap-iso-8859-2 \
188 glibc-gconv-iso8859-1 \
189 glibc-charmap-iso-8859-1 \
180 glibc-gconv-euc-kr \ 190 glibc-gconv-euc-kr \
181 glibc-charmap-euc-kr \ 191 glibc-charmap-euc-kr \
192 glibc-gconv-euc-jp \
193 glibc-charmap-euc-jp \
194 locale-base-de-de \
195 locale-base-fr-fr \
196"
197
198RRECOMMENDS_${PN}-ptest_append_libc-glibc = "\
199 locale-base-de-de.iso-8859-1 \
200 locale-base-fr-fr.iso-8859-1 \
182" 201"
183 202
184INSANE_SKIP_${PN}-ptest += "ldflags" 203INSANE_SKIP_${PN}-ptest += "ldflags"