Hello Adam, At Imagination Technologies (http://imgtec.com/) Jurica Stanojkovic has found a solution to Debian bug #748228.
https://bugs.debian.org/748228 My NMU patch for kbtin_1.0.14-1.1 is below, at the end of this message. With the changes in the NMU patch grib-api builds successfully on mips, mipsel and amd64. Regards, Aníbal -- Aníbal Monsalve Salazar <anibal.monsalvesala...@imgtec.com> debdiff kbtin_1.0.14-1.dsc kbtin_1.0.14-1.1.dsc diff -Nru kbtin-1.0.14/debian/changelog kbtin-1.0.14/debian/changelog --- kbtin-1.0.14/debian/changelog 2012-12-23 17:13:35.000000000 +0000 +++ kbtin-1.0.14/debian/changelog 2014-05-16 11:31:36.000000000 +0100 @@ -1,3 +1,13 @@ +kbtin (1.0.14-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix FTBFS on big endian architectures. + Add big_endian.patch. + Patch by Jurica Stanojkovic <jurica.stanojko...@imgtec.com>. + Closes: #748228. + + -- Anibal Monsalve Salazar <ani...@debian.org> Fri, 16 May 2014 11:31:20 +0100 + kbtin (1.0.14-1) unstable; urgency=low * New upstream release. diff -Nru kbtin-1.0.14/debian/patches/big_endian.patch kbtin-1.0.14/debian/patches/big_endian.patch --- kbtin-1.0.14/debian/patches/big_endian.patch 1970-01-01 01:00:00.000000000 +0100 +++ kbtin-1.0.14/debian/patches/big_endian.patch 2014-05-16 11:17:57.000000000 +0100 @@ -0,0 +1,48 @@ +From: Jurica Stanojkovic <jurica.stanojko...@imgtec.com> +Subject: package kbtin_1.0.14-1 FTBS on big endian architectures +Date: Wed, 14 May 2014 06:13:10 -0700 + +http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=748228 + +Package is failing to build on all big endian architectures. + +mips build log: +https://buildd.debian.org/status/fetch.php?pkg=kbtin&arch=mips&ver=1.0.14-1&stamp=1383184670 + +I was able to build package kbtin_1.0.14-1 on mips (big endian) with +following patch. + +File big_endian.patch is attached. + +These changes are already in master branch for kbtin package on git. + +https://github.com/kilobyte/kbtin/commit/a5c0ef55f909ddc3487d355c25f40b3c18c93946 + +--- a/files.c ++++ b/files.c +@@ -273,7 +273,7 @@ void write_log(struct session *ses, char + if (ses->logtype==2) + { + ttyrec_timestamp(&th); +- th.len=n; ++ th.len=to_little_endian(n); + if (fwrite(&th, 1, sizeof(struct ttyrec_header), ses->logfile)< + sizeof(struct ttyrec_header)) + { +--- a/tintin.h ++++ b/tintin.h +@@ -363,10 +363,10 @@ typedef char pvars_t[10][BUFFER_SIZE]; + + #ifdef WORDS_BIGENDIAN + # define to_little_endian(x) ((uint32_t) ( \ +- (((uint32_t)(x) &((uint32_t)0x000000ffU) << 24)) | \ +- (((uint32_t)(x) &((uint32_t)0x0000ff00U) << 8)) | \ +- (((uint32_t)(x) &((uint32_t)0x00ff0000U) >> 8)) | \ +- (((uint32_t)(x) &((uint32_t)0xff000000U) >> 24)))) ++ ((uint32_t)(x) &(uint32_t)0x000000ffU) << 24 | \ ++ ((uint32_t)(x) &(uint32_t)0x0000ff00U) << 8 | \ ++ ((uint32_t)(x) &(uint32_t)0x00ff0000U) >> 8 | \ ++ ((uint32_t)(x) &(uint32_t)0xff000000U) >> 24)) + #else + # define to_little_endian(x) ((uint32_t)(x)) + #endif diff -Nru kbtin-1.0.14/debian/patches/series kbtin-1.0.14/debian/patches/series --- kbtin-1.0.14/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ kbtin-1.0.14/debian/patches/series 2014-05-15 10:03:07.000000000 +0100 @@ -0,0 +1 @@ +big_endian.patch
signature.asc
Description: Digital signature