Bug#764904: apophenia: FTBFS - test suite times out or has unexpected failures

Jerome BENOIT calculus at rezozer.net
Tue Nov 11 20:34:17 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

On 11/11/14 18:40, Edmund Grimley Evans wrote:
> Some good news: the code doesn't seem to need a lot of changes to make
> it work on arm64. I did this:
>
> * Changed the type of the local variables to which the value returned
>   from fgetc, getopt or get_next is assigned from char to int.
>
> * Made get_next return int instead of char, and, to make it return EOF
>   when it should, set buffer[len] to (char)-1 when len < bs and
>   instead of returning buffer[(*ptr)++] assign that to a new local
>   variable r and return (r == (char)-1 ? EOF : r). (In a
>   ISO-8859-1-encoded file 'ÿ' will be interpreted as EOF, but that was
>   presumably already the case. If you really want all characters to be
>   correctly distinguished then you will have to add an out-of-band way
>   of denoting EOF.)
>
> With those changes, apophenia passed its tests on arm64.

Perfect. Can you send a patch or the modified source in such a way I can submit it to the upstream maintainer.
Of course, you can do it yourself directly.

Thanks for your contribution,
Jerome

>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQEcBAEBAgAGBQJUYnK6AAoJEIC/w4IMSybjIkEH/22I8BLcdQ8d2Qp7GxHbtWFd
KPEqXOCIPLVXuBTMtbdXUY+Zo+8MMiKL2YE3exjW68HvRQODPIsHUmOMy3/NCtft
wIsQFtduAq9saOMhymz9amPzdUiJW2GEPKXnRTkt0okfIb1km3X8f6EOv3u77nLA
tzQMNfsEAqGiWGwsAbZ9HZ98t9QQbv1Cr+HI4wuQQzfvdQ9EdVtBVm7GaW4gbeJd
f4KId9ilQGrcyhMe8SfMlPfw7B+Lsz+5qAeTsQIkx/RU2W+8iGYBRwd+ZduqslaE
Sdu710Crd+4PItwuCAaZKebrpCtYYplj6w8mLe2tZ6lQPhMZJw6m2U0zEdVRvIk=
=Tq5/
-----END PGP SIGNATURE-----



More information about the debian-science-maintainers mailing list