Package: splix
Version: 2.0.0-2
Severity: important
Tags: patch

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

splix prints only blank pages on armel, because of an unaligned typecast.
The attached patch forces the compiler to align the offending variable. 
Please note that compiling with -Wcast-align warns about other possible
problems; I have not seen them triggering any alignment trap on my system
though.
Cheers,

Luca

- -- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: armel (armv5tel)

Kernel: Linux 2.6.32-2-kirkwood
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages splix depends on:
ii  cups                         1.4.2-5     Common UNIX Printing System(tm) - 
ii  cups-client                  1.4.2-5     Common UNIX Printing System(tm) - 
ii  ghostscript-cups             8.71~dfsg-2 The GPL Ghostscript PostScript/PDF
ii  libc6                        2.10.2-6    Embedded GNU C Library: Shared lib
ii  libcups2                     1.4.2-5     Common UNIX Printing System(tm) - 
ii  libcupsimage2                1.4.2-5     Common UNIX Printing System(tm) - 
ii  libgcc1                      1:4.4.3-1   GCC support library
ii  libstdc++6                   4.4.3-1     The GNU Standard C++ Library v3

splix recommends no packages.

splix suggests no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkug6EwACgkQ+AQB36CPPloSNQCgj40HhOknOKll/VijBBtUXWpr
V1UAn1wmwdbgE0f3aDm8s90y8xo/HTIG
=oldV
-----END PGP SIGNATURE-----
diff -ruN splix-2.0.0/debian/rules splix-2.0.0.new/debian/rules
--- splix-2.0.0/debian/rules	2010-03-17 15:06:53.000000000 +0100
+++ splix-2.0.0.new/debian/rules	2010-03-17 13:22:56.847982486 +0100
@@ -19,7 +19,7 @@
 	dh_testroot
 	rm -f build-stamp configure-stamp
 	$(MAKE) clean
-	dh_clean 
+	dh_clean optimized/rastertoqpdl optimized/pstoqpdl
 
 install: build
 	dh_testdir
diff -ruN splix-2.0.0/optimized/src/qpdl.d splix-2.0.0.new/optimized/src/qpdl.d
--- splix-2.0.0/optimized/src/qpdl.d	2009-02-06 13:16:12.000000000 +0100
+++ splix-2.0.0.new/optimized/src/qpdl.d	2010-03-17 14:14:05.357987895 +0100
@@ -1,6 +1,6 @@
 $(DEPDIR)/src/qpdl.d 	$(BUILDDIR)/src/qpdl.o: src/qpdl.cpp include/qpdl.h \
-  include/page.h include/band.h include/errlog.h include/request.h \
-  include/printer.h include/bandplane.h
+ include/page.h include/band.h include/errlog.h include/request.h \
+ include/printer.h include/bandplane.h
 
 include/qpdl.h:
 
diff -ruN splix-2.0.0/src/qpdl.cpp splix-2.0.0.new/src/qpdl.cpp
--- splix-2.0.0/src/qpdl.cpp	2009-02-06 12:49:10.000000000 +0100
+++ splix-2.0.0.new/src/qpdl.cpp	2010-03-17 14:13:56.507981287 +0100
@@ -33,7 +33,7 @@
 {
     unsigned long version, subVersion, size, dataSize, checkSum;
     bool color, headerSent=false;
-    unsigned char header[0x20];
+    unsigned char header[0x20] __attribute__((aligned(4)));
     const BandPlane *plane;
 
     version = request.printer()->qpdlVersion();

Reply via email to