Package: uswsusp
Version: 0.7-1
Severity: important
Tags: patch

swap-offset cannot be used on files >= 2 GiB, which is quite a common size for 
swap files imho.
Adding LFS constants (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS=64) to the build 
process resolves this issue.


-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (799, 'testing'), (700, 'testing'), (599, 'stable'), (500, 
'stable'), (200, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
diff -uNr a/debian/rules b/debian/rules
--- a/debian/rules      2007-11-14 13:58:35.000000000 +0100
+++ b/debian/rules      2007-11-14 13:59:36.435616155 +0100
@@ -20,7 +20,9 @@

 MANPAGES=s2disk.8 s2ram.8 swap-offset.8 uswsusp.conf.8 suspend-keygen.8

-CFLAGS = -Wall -g
+CFLAGS = -Wall -g `getconf LFS_CFLAGS`
+
+LDFLAGS = `getconf LFS_LDFLAGS`

 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
        CFLAGS += -O0

Reply via email to