* [PATCH 0/3] libxml2-ptest: various fixes
@ 2017-09-25 23:33 Juro Bystricky
2017-09-25 23:33 ` [PATCH 1/3] libxml2-ptest: improve reproducibility Juro Bystricky
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Juro Bystricky @ 2017-09-25 23:33 UTC (permalink / raw)
To: openembedded-core; +Cc: jurobystricky
This patch-set contains three independent patches for libxml2-ptest.
The first one removes all build host references from the libxml2-ptest package.
While testing this patch, I noticed that some test were failing, but for
unrelated reasons. I added two fixes that address two different causes of
failures. With these fixes we get 133 tests passed, 0 failed.
(Previously it was 36 passed 3 failed, or something like that)
Juro Bystricky (3):
libxml2-ptest: improve reproducibility
libxml2-ptest: support for encoding ISO-8859-5
libxml2-ptest: set LC_ALL=en_US.UTF-8
meta/recipes-core/libxml/libxml2/run-ptest | 1 +
meta/recipes-core/libxml/libxml2_2.9.4.bb | 15 +++++++++++++--
2 files changed, 14 insertions(+), 2 deletions(-)
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/3] libxml2-ptest: improve reproducibility
2017-09-25 23:33 [PATCH 0/3] libxml2-ptest: various fixes Juro Bystricky
@ 2017-09-25 23:33 ` Juro Bystricky
2017-09-25 23:33 ` [PATCH 2/3] libxml2-ptest: support for encoding ISO-8859-5 Juro Bystricky
2017-09-25 23:33 ` [PATCH 3/3] libxml2-ptest: set LC_ALL=en_US.UTF-8 Juro Bystricky
2 siblings, 0 replies; 4+ messages in thread
From: Juro Bystricky @ 2017-09-25 23:33 UTC (permalink / raw)
To: openembedded-core; +Cc: jurobystricky
Remove various build host references from libxml-ptest package.
[YOCTO #11997]
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
---
meta/recipes-core/libxml/libxml2_2.9.4.bb | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/meta/recipes-core/libxml/libxml2_2.9.4.bb b/meta/recipes-core/libxml/libxml2_2.9.4.bb
index 107539b..15d5e36 100644
--- a/meta/recipes-core/libxml/libxml2_2.9.4.bb
+++ b/meta/recipes-core/libxml/libxml2_2.9.4.bb
@@ -89,6 +89,17 @@ do_install_ptest () {
grep -lrZ '#!/usr/bin/python' ${D}${PTEST_PATH}/python |
xargs -0 sed -i -e 's|/usr/bin/python|${USRBINPATH}/${PYTHON_PN}|'
fi
+ #Remove build host references from various Makefiles
+ find "${D}${PTEST_PATH}" -name Makefile -type f -exec \
+ sed -i \
+ -e 's,--sysroot=${STAGING_DIR_TARGET},,g' \
+ -e 's|${DEBUG_PREFIX_MAP}||g' \
+ -e 's:${HOSTTOOLS_DIR}/::g' \
+ -e 's:${RECIPE_SYSROOT_NATIVE}::g' \
+ -e 's:${RECIPE_SYSROOT}::g' \
+ -e 's:${BASE_WORKDIR}/${MULTIMACH_TARGET_SYS}::g' \
+ -e '/^RELDATE/d' \
+ {} +
}
do_install_append_class-native () {
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/3] libxml2-ptest: support for encoding ISO-8859-5
2017-09-25 23:33 [PATCH 0/3] libxml2-ptest: various fixes Juro Bystricky
2017-09-25 23:33 ` [PATCH 1/3] libxml2-ptest: improve reproducibility Juro Bystricky
@ 2017-09-25 23:33 ` Juro Bystricky
2017-09-25 23:33 ` [PATCH 3/3] libxml2-ptest: set LC_ALL=en_US.UTF-8 Juro Bystricky
2 siblings, 0 replies; 4+ messages in thread
From: Juro Bystricky @ 2017-09-25 23:33 UTC (permalink / raw)
To: openembedded-core; +Cc: jurobystricky
This fixes the error:
./test/errors/759398.xml:1: parser error : Unsupported encoding ISO-8859-5
<?xml version='1.0' encoding='ISO-8859-5' standalone='no'?>
^
./test/errors/759398.xml : failed to parse
FAIL: Error cases stream regression tests
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
---
meta/recipes-core/libxml/libxml2_2.9.4.bb | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/meta/recipes-core/libxml/libxml2_2.9.4.bb b/meta/recipes-core/libxml/libxml2_2.9.4.bb
index 15d5e36..ec2d25a 100644
--- a/meta/recipes-core/libxml/libxml2_2.9.4.bb
+++ b/meta/recipes-core/libxml/libxml2_2.9.4.bb
@@ -53,11 +53,11 @@ RDEPENDS_${PN}-ptest += "make ${@bb.utils.contains('PACKAGECONFIG', 'python', 'l
RDEPENDS_${PN}-python += "${@bb.utils.contains('PACKAGECONFIG', 'python', 'python3-core', '', d)}"
-RDEPENDS_${PN}-ptest_append_libc-glibc = " glibc-gconv-ebcdic-us glibc-gconv-ibm1141"
+RDEPENDS_${PN}-ptest_append_libc-glibc = " glibc-gconv-ebcdic-us glibc-gconv-ibm1141 glibc-gconv-iso8859-5"
export PYTHON_SITE_PACKAGES="${PYTHON_SITEPACKAGES_DIR}"
-# WARNING: zlib is require for RPM use
+# WARNING: zlib is required for RPM use
EXTRA_OECONF = "--without-debug --without-legacy --with-catalog --without-docbook --with-c14n --without-lzma --with-fexceptions"
EXTRA_OECONF_class-native = "--without-legacy --without-docbook --with-c14n --without-lzma --with-zlib"
EXTRA_OECONF_class-nativesdk = "--without-legacy --without-docbook --with-c14n --without-lzma --with-zlib"
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 3/3] libxml2-ptest: set LC_ALL=en_US.UTF-8
2017-09-25 23:33 [PATCH 0/3] libxml2-ptest: various fixes Juro Bystricky
2017-09-25 23:33 ` [PATCH 1/3] libxml2-ptest: improve reproducibility Juro Bystricky
2017-09-25 23:33 ` [PATCH 2/3] libxml2-ptest: support for encoding ISO-8859-5 Juro Bystricky
@ 2017-09-25 23:33 ` Juro Bystricky
2 siblings, 0 replies; 4+ messages in thread
From: Juro Bystricky @ 2017-09-25 23:33 UTC (permalink / raw)
To: openembedded-core; +Cc: jurobystricky
We need to specify UTF-8 in the environment to avoid an error
such as:
UnicodeEncodeError: 'ascii' codec can't encode character '\xe4'
Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
---
meta/recipes-core/libxml/libxml2/run-ptest | 1 +
1 file changed, 1 insertion(+)
diff --git a/meta/recipes-core/libxml/libxml2/run-ptest b/meta/recipes-core/libxml/libxml2/run-ptest
index 473d0b6..c313d83 100644
--- a/meta/recipes-core/libxml/libxml2/run-ptest
+++ b/meta/recipes-core/libxml/libxml2/run-ptest
@@ -1,3 +1,4 @@
#!/bin/sh
+export LC_ALL=en_US.UTF-8
make -k runtests
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2017-09-25 23:33 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-25 23:33 [PATCH 0/3] libxml2-ptest: various fixes Juro Bystricky
2017-09-25 23:33 ` [PATCH 1/3] libxml2-ptest: improve reproducibility Juro Bystricky
2017-09-25 23:33 ` [PATCH 2/3] libxml2-ptest: support for encoding ISO-8859-5 Juro Bystricky
2017-09-25 23:33 ` [PATCH 3/3] libxml2-ptest: set LC_ALL=en_US.UTF-8 Juro Bystricky
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.