Package: csmash
Version: 0.6.6-1
tag: patch -1
Severity: normal

The package csmash ftbfs  on mips64el for lacking mips64 support, I updated
the 01-loadparts.patch, and it build success on mips64.

Regards,
Sphinx
From 715bb929a5bee69b6ec3e7016bf2ffce79c10fbe Mon Sep 17 00:00:00 2001
From: Jari Aalto <jari.aa...@cante.net>
Date: Sun, 9 May 2010 21:26:04 +0300
Subject: [PATCH] loadparts.cpp: add  architechture check by Bartosz Fenski <fe...@debian.org>
Organization: Private
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit


Signed-off-by: Jari Aalto <jari.aa...@cante.net>
---
 loadparts.cpp |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Index: csmash-0.6.6/loadparts.cpp
===================================================================
--- csmash-0.6.6.orig/loadparts.cpp     2014-06-29 18:37:08.471548776 +0800
+++ csmash-0.6.6/loadparts.cpp  2014-06-29 18:40:08.506712744 +0800
@@ -245,7 +245,11 @@

        while ('\\' == line[l-1]) {
             // concat next line(s)
+#if (defined __ia64__) || (defined __alpha__) || (defined __powerpc64__) || (defined __s390__) || (defined __x86_64__) || (defined __mips64)
+           int bufsize = clamp((u_long) 0, sizeof(line)-l, sizeof(line)-1);
+#else
            int bufsize = clamp(0U, sizeof(line)-l, sizeof(line)-1);
+#endif
            fgets(&line[l-2], bufsize, fp);
            if (feof((FILE*)fp)) break;
            l = strlen(line);

Reply via email to