Package: icon
Version: 9.4.3-3
Severity: important
Tags: patch
Justification: fails to build from source
User: [email protected]
Usertags: s390x
icon fails to build on s390x with errors in the testsuite, as the code
is wrong compiled by GCC. The problem is not in GCC itself, but by the
fact that the code uses type-punning, which is not allowed (and reported
as warnings).
Currently the problem is workaround by compiling with -O0 on a set of
architectures that is virtually all architectures, except the new ones
being developed. The patch below removes the test on the architecture,
and only disable the optimisations that breaks the code. That way the
resulting code is still optimised, but it works. The real solution would
be to remove type-punning though.
Would it be possible to add the following patch in your next upload?
Thanks in advance.
diff -u icon-9.4.3/debian/rules icon-9.4.3/debian/rules
--- icon-9.4.3/debian/rules
+++ icon-9.4.3/debian/rules
@@ -21,13 +21,8 @@
endif
endif
-CFLAGS_OPT = -O2
-
-ifneq (, $(filter $(DEB_HOST_ARCH_CPU), alpha hppa ia64 mips mipsel \
- powerpc s390 sparc amd64 i386 \
-
arm armel armeb ppc64 ))
- CFLAGS_OPT = -O0
-endif
+# The current code use type-punning and signed overflow
+CFLAGS_OPT = -O2 -fno-strict-aliasing -fno-strict-overflow
ifneq (, $(filter $(DEB_HOST_ARCH_OS), linux kfreebsd knetbsd))
system = linux
-- System Information:
Debian Release: wheezy/sid
APT prefers unreleased
APT policy: (500, 'unreleased'), (500, 'unstable')
Architecture: s390x
Kernel: Linux 3.0.0-1-s390x (SMP w/2 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]