Package: uswsusp Version: 0.8-1.1+b1 Severity: normal I'm attaching a simple&stupid patch.
-- System Information: Debian Release: squeeze/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: powerpc (ppc) Kernel: Linux 2.6.29-1-powerpc Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8) (ignored: LC_ALL set to fr_FR.UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages uswsusp depends on: ii debconf [debconf-2.0] 1.5.26 Debian configuration management sy ii libc6 2.9-12 GNU C Library: Shared libraries ii libdirectfb-1.2-0 1.2.7-2 direct frame buffer graphics - sha ii libgcc1 1:4.4.0-1 GCC support library ii libgcrypt11 1.4.4-2 LGPL Crypto library - runtime libr ii libglib2.0-0 2.20.1-1 The GLib library of C routines ii libgpg-error0 1.6-1 library for common error values an ii liblzo2-2 2.03-1 data compression library ii libsplashy1 0.3.13-5 Library to draw splash screen on b Versions of packages uswsusp recommends: ii initramfs-tools 0.93.2 tools for generating an initramfs ii mount 2.13.1.1-1 Tools for mounting and manipulatin Versions of packages uswsusp suggests: pn splashy <none> (no description available) -- debconf information: uswsusp/suspend_loglevel: uswsusp/no_swap: uswsusp/resume_offset: uswsusp/early_writeout: true uswsusp/image_size: 608602521 uswsusp/snapshot_device: uswsusp/max_loglevel: uswsusp/shutdown_method: platform * uswsusp/encrypt: false uswsusp/RSA_key_bits: 1024 uswsusp/continue_without_swap: true uswsusp/compute_checksum: false uswsusp/no_snapshot: uswsusp/compress: true uswsusp/create_RSA_key: false uswsusp/RSA_key_file: /etc/uswsusp.key * uswsusp/resume_device: /dev/hda4 * uswsusp/splash: false
diff -ur uswsusp-0.8.orig/s2ram-ppc.c uswsusp-0.8.new/s2ram-ppc.c --- uswsusp-0.8.orig/s2ram-ppc.c 2007-12-31 19:50:12.000000000 +0100 +++ uswsusp-0.8.new/s2ram-ppc.c 2009-05-14 01:27:09.000000000 +0200 @@ -23,6 +23,13 @@ void s2ram_add_flag(int opt, const char *arg) { /* We don't take any options */ + + switch (opt) { + case 1: + case 'f': + /* NOP */ + break; + } } int s2ram_prepare(void) diff -ur uswsusp-0.8.orig/s2ram-ppc.h uswsusp-0.8.new/s2ram-ppc.h --- uswsusp-0.8.orig/s2ram-ppc.h 2007-12-31 19:50:12.000000000 +0100 +++ uswsusp-0.8.new/s2ram-ppc.h 2009-05-14 01:27:09.000000000 +0200 @@ -1,2 +1,6 @@ /* No additional options for PPC */ -#define HACKS_LONG_OPTS +#define HACKS_LONG_OPTS \ + {\ + "force\0\tforce suspending, even on unknown machines.\n\nThe following options are only available with --force:",\ + no_argument, NULL, 1 \ + },