Package: pidgin-sipe Version: 1.16.0-1 Severity: wishlist Tags: patch upstream User: debian-powerpc...@breakpoint.cc Usertags: powerpcspe
Hi! pidgin-sipe currently FTBFS on powerpcspe like this: ... libtool: compile: powerpc-linux-gnuspe-gcc -DHAVE_CONFIG_H -I. -I../.. -D_FORTIFY_SOURCE=2 -Werror -Wall -Wextra -Waggregate-return -Wcast-align -Wdeclaration-after-statement -Wdeprecated-declarations -Winit-self -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wundef -Wunused-but-set-variable -I/usr/include/glib-2.0 -I/usr/lib/powerpc-linux-gnuspe/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib/powerpc-linux-gnuspe/glib-2.0/include -I/usr/include/libpurple -I./../api -DLOCALEDIR=\"/usr/share/locale\" -pthread -I/usr/include/glib-2.0 -I/usr/lib/powerpc-linux-gnuspe/glib-2.0/include -I/usr/include/nice -pthread -I/usr/include/gstreamer-0.10 -I/usr/include/glib-2.0 -I/usr/lib/powerpc-linux-gnuspe/glib-2.0/include -I/usr/include/libxml2 -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -MT libsipe_backend_vv_la-purple-media.lo -MD -MP -MF .deps/libsipe_backend_vv_la-purple-media.Tpo -c purple-media.c -fPIC -DPI C -o .li bs/libsipe_backend_vv_la-purple-media.o In file included from /usr/include/gstreamer-0.10/gst/gstpad.h:30:0, from /usr/include/gstreamer-0.10/gst/gstelement.h:57, from /usr/include/gstreamer-0.10/gst/gstbin.h:27, from /usr/include/gstreamer-0.10/gst/gst.h:35, from /usr/include/libpurple/media-gst.h:33, from purple-media.c:61: /usr/include/gstreamer-0.10/gst/gstbuffer.h: In function 'gst_buffer_ref': /usr/include/gstreamer-0.10/gst/gstbuffer.h:349:10: error: cast increases required alignment of target type [-Werror=cast-align] /usr/include/gstreamer-0.10/gst/gstbuffer.h: In function 'gst_buffer_copy': /usr/include/gstreamer-0.10/gst/gstbuffer.h:387:10: error: cast increases required alignment of target type [-Werror=cast-align] ... I prepared and attached a new disable-w-cast-align.patch which fixes this. The issue was previously fixed and fixed-upstream for some arches, but not yet for powerpcspe. This patch extends the respective change. Thanks, Roland -- System Information: Debian Release: 7.0 APT prefers unreleased APT policy: (500, 'unreleased'), (500, 'unstable') Architecture: powerpcspe (ppc) Kernel: Linux 3.9.0-dirty (SMP w/2 CPU cores) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to en_GB.UTF-8) Shell: /bin/sh linked to /bin/dash
Index: pidgin-sipe-1.16.0/src/purple/purple-media.c =================================================================== --- pidgin-sipe-1.16.0.orig/src/purple/purple-media.c 2013-06-19 18:46:16.000000000 +0200 +++ pidgin-sipe-1.16.0/src/purple/purple-media.c 2013-06-28 11:14:32.954974070 +0200 @@ -53,7 +53,7 @@ * Diagnostic #pragma was added in GCC 4.2.0 */ #if defined(__GNUC__) && (__GNUC__ >= 4) && (__GNUC_MINOR__ >= 2) -#if defined(__ARMEL__) || defined(__ARMEB__) || defined(__mips__) || defined(__sparc__) +#if defined(__ARMEL__) || defined(__ARMEB__) || defined(__mips__) || defined(__sparc__) || (defined(__powerpc__) && defined(__NO_FPRS__)) #pragma GCC diagnostic ignored "-Wcast-align" #endif #endif