Your message dated Sat, 27 Sep 2014 16:23:56 +0000
with message-id <[email protected]>
and subject line Bug#762958: fixed in liblucy-perl 0.3.3-3
has caused the Debian Bug report #762958,
regarding liblucy-perl FTBFS on testing for mips
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
762958: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=762958
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---

Package: liblucy-perl
Version: 0.3.3-2
Tags: sid patch
Severity: important
Justification: FTBFS
User: [email protected]
Usertags: mips-patch



While trying to build liblucy-perl on mips architecture,
build fails on testing with an error:
> Test Summary Report
> -------------------
> t/511-sort_spec.t                   (Wstat: 10 Tests: 0 Failed: 0)
>   Non-zero wait status: 10
>   Parse errors: Bad plan.  You planned 18 tests but ran 0.
> Files=173, Tests=12293, 143 wallclock secs ( 9.98 usr  1.56 sys + 117.80 cusr 
>  8.88 csys = 138.22 CPU)
> Result: FAIL

Here is full build log:
https://buildd.debian.org/status/fetch.php?pkg=liblucy-perl&arch=mips&ver=0.3.3-2&stamp=1403494561

The same test failed in the past for mipsel as well:
https://buildd.debian.org/status/fetch.php?pkg=liblucy-perl&arch=mipsel&ver=0.3.3-1&stamp=1401734413



Both failures had happened on Broadcom boards.
I run test manually and got a Bus Error,
which is caused by unaligned access.


A patch which fixes this issue is attached.

After applying this patch,
package builds successfully for mips and mipsel.


Could you please consider including this patch?


Best regards,
Dejan
diff -uNr liblucy-perl-0.3.3.orig/core/Lucy/Util/MemoryPool.c liblucy-perl-0.3.3/core/Lucy/Util/MemoryPool.c
--- liblucy-perl-0.3.3.orig/core/Lucy/Util/MemoryPool.c	2014-05-23 16:43:30.000000000 +0000
+++ liblucy-perl-0.3.3/core/Lucy/Util/MemoryPool.c	2014-09-25 15:37:28.000000000 +0000
@@ -24,12 +24,19 @@
 
 #define DEFAULT_BUF_SIZE 0x100000 // 1 MiB
 
+// On MIPS, access to double values need to be 8-bytes aligned.
+#if defined (__mips__)
+#define BYTE_ALIGNED sizeof(double);
+#else
+#define BYTE_ALIGNED sizeof(void*);
+#endif
+
 // Enlarge amount so pointers will always be aligned.
 #define INCREASE_TO_WORD_MULTIPLE(_amount) \
     do { \
-        const size_t _remainder = _amount % sizeof(void*); \
+        const size_t _remainder = _amount % BYTE_ALIGNED; \
         if (_remainder) { \
-            _amount += sizeof(void*); \
+            _amount += BYTE_ALIGNED; \
             _amount -= _remainder; \
         } \
     } while (0)

--- End Message ---
--- Begin Message ---
Source: liblucy-perl
Source-Version: 0.3.3-3

We believe that the bug you reported is fixed in the latest version of
liblucy-perl, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Damyan Ivanov <[email protected]> (supplier of updated liblucy-perl package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Sat, 27 Sep 2014 12:43:40 +0000
Source: liblucy-perl
Binary: liblucy-perl
Architecture: source amd64
Version: 0.3.3-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Perl Group <[email protected]>
Changed-By: Damyan Ivanov <[email protected]>
Description:
 liblucy-perl - search engine library
Closes: 762958
Changes:
 liblucy-perl (0.3.3-3) unstable; urgency=medium
 .
   * Team upload
 .
   [ Jonas Smedegaard ]
   * Add git-buildpackage config, enabling pristine-tar and tag signing.
 .
   [ Salvatore Bonaccorso ]
   * Update Vcs-Browser URL to cgit web frontend
 .
   [ Damyan Ivanov ]
   * add patch from Dejan Latinovic fixing misaligned double access on mips
     causing FTBFS (Closes: #762958)
Checksums-Sha1:
 d7437471be3e163fe34c3115d215fb7fe59649a3 2060 liblucy-perl_0.3.3-3.dsc
 f52e2b4b689b38916e131b1feb9e103e86f18c12 11608 
liblucy-perl_0.3.3-3.debian.tar.xz
Checksums-Sha256:
 2e0caa195566be7a6556b2613dcbbae7a33f14cf5e425917c467d6730a36d866 2060 
liblucy-perl_0.3.3-3.dsc
 441cbbfe6893804b960bbab36b8a80ec78c907cad28def0a6ba80ed2b6373e05 11608 
liblucy-perl_0.3.3-3.debian.tar.xz
Files:
 ab0c38337afd1496d990da80942330ee 2060 perl optional liblucy-perl_0.3.3-3.dsc
 e33f89aa72afd56d4b5427df685d2d9e 11608 perl optional 
liblucy-perl_0.3.3-3.debian.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJUJuJxAAoJENu+nU2Z0qAEhaoP/R7HkJT8Q8QQ3UnkaIwchxls
s/QclQdQeTbWD3UAGZR5XTIcPxOCnYtMY/HskhXgToKRj/FwRhaCFjt7WDUkW8xr
s/CCyiSH1j60jS8fbalp1HpGDVWMbmGicS3NGalp1q1fe+QqH4M2gYQtPYUkgxsD
o63qLRtPnpb5AXzjieQ1zK5LTMmojGNcsGVs1IHXBJd5JJSCMD6dRsm4TI01/tc9
ggfzVkhGj3ojqkuqM5sOKV3abwuAoUfYtkr9sauPXnvFmbwx3u+HrHbZ8gyvBUgN
Ztf4EqVPj23EdHS5zCVrnYuduO99fr6a+aLiIoe6YculHaY5vjefg4/KRWP2TYWg
E5q2KFLBaLVCzmiHaCUNrYKiCnf/cv9jBi7J2kIZINJbrGNylbp3VGoj0+6iVoft
TWtUf3DA5CUSFQcGKHPtTo8OZM1fvRr1qQ9TFfVEuHkXNmK+lJoY7lR2f0FxUKev
AmrnpKaLnHljyR/7oCOK3t5h0INvCJqfk166mVtck26TS8BaAGsLUNWjqYOe8vFy
DIStnyKcQhYrkReNkwjFIIaOa3EjyU7SVidgrBOPl/RdgPFFgJASMbWZYEeByx23
e4GmlHBO5RA2KRdrOhm7MqUJHGSPWkSZ1wE7TQfKQ9p39YSkFuDzB7dWWpimqxEm
5uKVMYUIM5S/yFDeiXSr
=AEKj
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to