Package: libscrypt / 1-2.2


Package Version Patches format
libscrypt 1-2.2 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
fix_makefile | (download)

Makefile | 15 11 + 4 - 0 !
1 file changed, 11 insertions(+), 4 deletions(-)

big endian.patch | (download)

modp_b64.c | 12 8 + 4 - 0 !
1 file changed, 8 insertions(+), 4 deletions(-)

 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[1]: *** [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

It has been tested on mips, powerpc and s390x.