Source: xsd Version: 3.3.0.1-1 Severity: wishlist Tags: patch User: debian-...@superh.org Usertags: sh4 X-Debbugs-CC: debian-sup...@lists.debian.org
Hi, SH4 of xsd FTBFS. Because When we use float on sh4, we need to set -mieee option. Handling of NaN fails in the build and becomes the error. http://buildd.debian-ports.org/fetch.php?pkg=xsd&arch=sh4&ver=3.3.0.1-1&stamp=1291137602&file=log&as=raw ----- test /build/buildd-xsd_3.3.0.1-1-sh4-ZIMypf/xsd-3.3.0.1/xsd-srcdir/xsd/tests/cxx/tree/default/general/driver --- /build/buildd-xsd_3.3.0.1-1-sh4-ZIMypf/xsd-3.3.0.1/xsd-srcdir/xsd/tests/cxx/tree/default/general/output 2010-04-28 06:58:09.000000000 +0000 +++ - 2010-11-30 17:04:53.539102273 +0000 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8" standalone="no" ?> -<t:root xmlns:t="test" base64_bin1="" base64_bin2="YmFzZTY0IGJpbmFyeQ==
" bool1="true" bool2="true" bool3="false" bool4="false" byte="-99" decimal1="1.12345" decimal2="-0.456" double1="1.12345" double2="1123.45" double3="-0.00012345" double4="NaN" double5="-INF" fix1="123" fix2="123" fix3="abc" fix4="abc" fix5="aaa bbb ccc" fix6="aaa bbb ccc" float1="1.123" float2="1123" float3="-0.000123" float4="NaN" float5="-INF" hex_bin1="" hex_bin2="6865782052696E617279" id="this" idref="this" idrefs="this" int="-99999" integer="-99999" language="en-us" long="-99999" ncname="abcd" ninteger="-99999" nmtoken="ab:cd" nmtokens1="a:b efg aaa" nmtokens2="abc" nninteger="99999" npinteger="-99999" nstring=" a b " pinteger="99999" qname1="foo" qname2="t:bar" short="-999" string1="" string2=" a b " token="a b" ubyte="99" uint="99999" ulong="99999" uri="http://example.com" ushort="999"> make[1]: *** [/build/buildd-xsd_3.3.0.1-1-sh4-ZIMypf/xsd-3.3.0.1/xsd-srcdir/xsd/tests/cxx/tree/default/general/.test] Error 1 +<t:root xmlns:t="test" base64_bin1="" base64_bin2="YmFzZTY0IGJpbmFyeQ==
" bool1="true" bool2="true" bool3="false" bool4="false" byte="-99" decimal1="1.12345" decimal2="-0.456" double1="1.12345" double2="1123.45" double3="-0.00012345" double4="nan" double5="-INF" fix1="123" fix2="123" fix3="abc" fix4="abc" fix5="aaa bbb ccc" fix6="aaa bbb ccc" float1="1.123" float2="1123" float3="-0.000123" float4="nan" float5="-INF" hex_bin1="" hex_bin2="6865782052696E617279" id="this" idref="this" idrefs="this" int="-99999" integer="-99999" language="en-us" long="-99999" ncname="abcd" ninteger="-99999" nmtoken="ab:cd" nmtokens1="a:b efg aaa" nmtokens2="abc" nninteger="99999" npinteger="-99999" nstring=" a b " pinteger="99999" qname1="foo" qname2="t:bar" short="-999" string1="" string2=" a b " token="a b" ubyte="99" uint="99999" ulong="99999" uri="http://example.com" ushort="999"> <union a="abc"/> make[1]: Leaving directory `/build/buildd-xsd_3.3.0.1-1-sh4-ZIMypf/xsd-3.3.0.1/xsd-srcdir' ----- I made a patch which revised this problem. Could you check this patch? -- Nobuhiro Iwamatsu iwamatsu at {nigauri.org / debian.org} GPG ID: 40AD1FA6
diff --git a/debian/rules b/debian/rules index 1fca6fa..7af87a1 100755 --- a/debian/rules +++ b/debian/rules @@ -24,6 +24,11 @@ ORIGTARGZ=../$(SRCPKGNAME)_$(SRCPKGVERS).orig.tar.gz XSD_ARCHIVE:=$(shell ls -1 xsd-*+dep.tar.bz2) XSD_SRCDIR:=$(CWD)/$(shell ls -1 xsd-*+dep.tar.bz2 | sed -e 's,\.tar.*,,g') +# Renesas SH4 needs -mieee option. +ifeq ($(DEB_HOST_ARCH_CPU),sh4) + export CXXFLAGS += -mieee +endif + maintainer_origtargz: $(XSD_ARCHIVE) tar -czf $(ORIGTARGZ) *.tar*