Package: libscrypt / 1-2.2
Patch seriesview the series file
|fix_makefile | (download)||
15 11 + 4 - 0 !
|big endian.patch | (download)||
12 8 + 4 - 0 !
libscrypt: ftbfs on big endian architecture Date: Wed, 30 Oct 2013 00:09:08 +0100 Version: 1-2 Severity: important Tags: upstream patch Justification: fails to build from source libscrypt fails to build from source on big endian architectures, due to testsuite errors: | TEST EIGHT: Create an MCF format output | TEST EIGHT: SUCCESSFUL, calculated mcf | $s1$0e0801$U29kaXVtQ2hsb3JpZGU=$cCO9yzr9c0hGHAbNgf046/2o+7qQT44+qbVD9lRdofLVQylVYT8Pz2LUlwUkKpr55h6F3A1lHkDfzwF7RVdYhw== | TEST NINE: Password verify on given MCF | TEST NINE: FAILED, hash failed to calculate | make: *** [check] Error 1 This is due to code in modp_b64.c which is endianness dependent. A big and a little endian version of the code are provided, but the selection mechanism is supposed to be done by modifying the source code, which is not really compatible with a Debian source package. This leads to the little endian code to be always used. The patch below fixes the problem by getting the endianness from <endian.h>. It has been tested on mips, powerpc and s390x.