Control: tags -1 + pending Hello Dariusz,
At Imagination Technologies (http://imgtec.com/) Jurica Stanojkovic has found a solution to Debian bug #766171. https://bugs.debian.org/766171 My NMU debdiff for profanity_0.4.4-1.1 is below, at the end of this message. With the changes in the NMU debdiff, profanity builds successfully on mips. Regards, Aníbal -- Aníbal Monsalve Salazar <[email protected]> debdiff profanity_0.4.4-1.dsc profanity_0.4.4-1.1.dsc diff -Nru profanity-0.4.4/debian/changelog profanity-0.4.4/debian/changelog --- profanity-0.4.4/debian/changelog 2014-08-29 14:01:53.000000000 +0100 +++ profanity-0.4.4/debian/changelog 2014-10-21 11:37:50.000000000 +0100 @@ -1,3 +1,13 @@ +profanity (0.4.4-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Fix FTBFS on big endian architectures. + Add big-endian.patch. + Patch by Jurica Stanojkovic <[email protected]>. + Closes: #766171. + + -- Anibal Monsalve Salazar <[email protected]> Tue, 21 Oct 2014 11:37:37 +0100 + profanity (0.4.4-1) unstable; urgency=medium * Initial release (Closes: #745872) diff -Nru profanity-0.4.4/debian/patches/big-endian.patch profanity-0.4.4/debian/patches/big-endian.patch --- profanity-0.4.4/debian/patches/big-endian.patch 1970-01-01 01:00:00.000000000 +0100 +++ profanity-0.4.4/debian/patches/big-endian.patch 2014-10-21 11:36:20.000000000 +0100 @@ -0,0 +1,31 @@ +Date: Mon, 20 Oct 2014 14:04:12 +0100 +From: Jurica Stanojkovic <[email protected]> +Subject: package profanity FTBFS on big endian + +https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=766171 + +Package profanity_0.4.4-1 FTBFS on big endian architectures. + +https://buildd.debian.org/status/fetch.php?pkg=profanity&arch=mips&ver=0.4.4-1&stamp=1411744877 + +I have attached a patch resolving this issue. + +Index: profanity-0.4.4/src/tools/p_sha1.c +=================================================================== +--- profanity-0.4.4.orig/src/tools/p_sha1.c ++++ profanity-0.4.4/src/tools/p_sha1.c +@@ -107,13 +107,7 @@ void P_SHA1_Transform(uint32_t state[5], + + /* blk0() and blk() perform the initial expand. */ + /* I got the idea of expanding during the round function from SSLeay */ +-/* FIXME: can we do this in an endian-proof way? */ +-#ifdef WORDS_BIGENDIAN +-#define blk0(i) block->l[i] +-#else +-#define blk0(i) (block->l[i] = (rol(block->l[i],24)&0xFF00FF00) \ +- |(rol(block->l[i],8)&0x00FF00FF)) +-#endif ++#define blk0(i) (block->l[i] = (ntohl(block->l[i]))) + #define blk(i) (block->l[i&15] = rol(block->l[(i+13)&15]^block->l[(i+8)&15] \ + ^block->l[(i+2)&15]^block->l[i&15],1)) + diff -Nru profanity-0.4.4/debian/patches/series profanity-0.4.4/debian/patches/series --- profanity-0.4.4/debian/patches/series 2014-08-29 14:01:53.000000000 +0100 +++ profanity-0.4.4/debian/patches/series 2014-10-21 07:42:41.000000000 +0100 @@ -1,2 +1,3 @@ fix-spelling.patch add-cflags-linking.patch +big-endian.patch
signature.asc
Description: Digital signature

