An Ubuntu user, Tapio Heiskanen, submitted the attached patch to make
cricket work on amd64. I haven't tested it myself, but massaged it into
dpatch format. See:

  https://bugs.launchpad.net/ubuntu/+source/cricket/+bug/64403

-- 
Colin Watson                                       [EMAIL PROTECTED]
#! /bin/sh /usr/share/dpatch/dpatch-run
## 09_amd64.dpatch by Colin Watson <[EMAIL PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Add support for amd64.

@DPATCH@
diff -urNad cricket-1.0.5~/lib/RRD/Format.pm cricket-1.0.5/lib/RRD/Format.pm
--- cricket-1.0.5~/lib/RRD/Format.pm    2004-01-21 02:11:09.000000000 +0000
+++ cricket-1.0.5/lib/RRD/Format.pm     2007-05-17 23:37:13.000000000 +0100
@@ -159,6 +159,16 @@
         $self->{'liveHead'} = "Q";
         $self->{'rraPtr'} = "Q";
         $self->{'element'} = "d";
+    } elsif ( $archname =~ /^x86_64-linux/ ) {
+        $self->{'statHead'} = "a4 a5 x7 d Q Q Q x80";
+        $self->{'dsDef'} = "a20 a20 Q d d x56";
+        $self->{'rraDef'} = "a20 x4 Q Q d x72";
+        $self->{'liveHead'} = "Q Q";
+        $self->{'liveHead3'} = "Q Q";
+        $self->{'pdpDef'} = "a30 x2 Q d x64";
+        $self->{'cdpDef'} = "d Q x64";
+        $self->{'rraPtr'} = "Q";
+        $self->{'element'} = "d";
     } elsif ( $archname eq 'sparc64-netbsd' ) {
         $self->{'statHead'} = "a4 a5 x7 d Q Q Q x80";
         $self->{'dsDef'} = "a20 a20 Q d d x56";

Reply via email to