Your message dated Thu, 03 Apr 2014 15:34:56 +0000
with message-id <e1wvjfm-0002cz...@franck.debian.org>
and subject line Bug#743503: fixed in lnav 0.7.0-3
has caused the Debian Bug report #743503,
regarding package lnav FTBFS on big endian architectures
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 ow...@bugs.debian.org
immediately.)


-- 
743503: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743503
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: lnav
Version: 0.7.0-2
Severity: serious
Tags: sid
Justification: FTBFS

Hello,

Package zbackup FTBFS on all big-endian architectures.

build logs:
mips:
https://buildd.debian.org/status/fetch.php?pkg=lnav&arch=mips&ver=0.7.0-2&stamp=1396446363
powerpc:
https://buildd.debian.org/status/fetch.php?pkg=lnav&arch=powerpc&ver=0.7.0-2&stamp=1396439887
s390x:
https://buildd.debian.org/status/fetch.php?pkg=lnav&arch=s390x&ver=0.7.0-2&stamp=1396439366
sparc:
https://buildd.debian.org/status/fetch.php?pkg=lnav&arch=sparc&ver=0.7.0-2&stamp=1396440324

I have attached patch resolving this issue.
Patch was tested on mips and and package was built correctly.

Thanks!
Jurica
Description: patch for big-endian architectures 
Author: Jurica Stanojkovic <jurica.stanojko...@imgtec.com> 
--- lnav-0.7.0.orig/src/line_buffer.cc
+++ lnav-0.7.0/src/line_buffer.cc
@@ -182,7 +182,7 @@ throw (error)
                             throw error(errno);
                         }
                     }
-                    this->lb_file_time = *((int32_t *)&gz_id[4]);
+                    this->lb_file_time = le32toh(*((int32_t *)&gz_id[4]));
                     if (this->lb_file_time < 0)
                         this->lb_file_time = 0;
                     this->lb_gz_offset = lseek(this->lb_fd, 0, SEEK_CUR);
diff -upNr lnav-0.7.0-orig/debian/patches/big-endian.patch lnav-0.7.0/debian/patches/big-endian.patch
--- lnav-0.7.0-orig/debian/patches/big-endian.patch	1970-01-01 00:00:00.000000000 +0000
+++ lnav-0.7.0/debian/patches/big-endian.patch	2014-04-03 13:18:51.000000000 +0000
@@ -0,0 +1,13 @@
+Description: patch for big-endian architectures 
+Author: Jurica Stanojkovic <jurica.stanojko...@imgtec.com> 
+--- lnav-0.7.0.orig/src/line_buffer.cc
++++ lnav-0.7.0/src/line_buffer.cc
+@@ -182,7 +182,7 @@ throw (error)
+                             throw error(errno);
+                         }
+                     }
+-                    this->lb_file_time = *((int32_t *)&gz_id[4]);
++                    this->lb_file_time = le32toh(*((int32_t *)&gz_id[4]));
+                     if (this->lb_file_time < 0)
+                         this->lb_file_time = 0;
+                     this->lb_gz_offset = lseek(this->lb_fd, 0, SEEK_CUR);
diff -upNr lnav-0.7.0-orig/debian/patches/series lnav-0.7.0/debian/patches/series
--- lnav-0.7.0-orig/debian/patches/series	2014-04-02 11:12:27.000000000 +0000
+++ lnav-0.7.0/debian/patches/series	2014-04-03 12:58:52.000000000 +0000
@@ -1 +1,2 @@
 default-to-var-log-syslog-on-Debian.patch
+big-endian.patch

--- End Message ---
--- Begin Message ---
Source: lnav
Source-Version: 0.7.0-3

We believe that the bug you reported is fixed in the latest version of
lnav, 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 743...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Salvatore Bonaccorso <car...@debian.org> (supplier of updated lnav 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 ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 03 Apr 2014 16:59:44 +0200
Source: lnav
Binary: lnav
Architecture: source amd64
Version: 0.7.0-3
Distribution: unstable
Urgency: low
Maintainer: Salvatore Bonaccorso <car...@debian.org>
Changed-By: Salvatore Bonaccorso <car...@debian.org>
Description: 
 lnav       - ncurses-based log file viewer
Closes: 743503
Changes: 
 lnav (0.7.0-3) unstable; urgency=low
 .
   * Add 743503.patch patch.
     Correctly convert byte encoding for 32bit value from little-endian order
     to host byte order. Fixes FTBFS on big-endian architectures.
     Thanks to Jurica Stanojkovic and Patrick Baggett (Closes: #743503)
Checksums-Sha1: 
 c3a9e3b6e422983a3656293cef561b948499f4e5 1921 lnav_0.7.0-3.dsc
 f5bbc3bc76b931dba06b080534358331ede632cc 4684 lnav_0.7.0-3.debian.tar.xz
 b25ad238ff7719bd387f1ea8ec4db278dbdaf72c 285556 lnav_0.7.0-3_amd64.deb
Checksums-Sha256: 
 f6a1e5bd94cbff9ddbc6f2f4aca5591192a52de5845cfa7d169c2a181507d144 1921 
lnav_0.7.0-3.dsc
 00a7fa92feeab55225257589109823f8cafe588508b9dac834f9ff9c839c3f87 4684 
lnav_0.7.0-3.debian.tar.xz
 4012703abd5922c3bf0716806aacac01fa63cb0b4496d18e8ff9f61d6c0dd140 285556 
lnav_0.7.0-3_amd64.deb
Files: 
 2df602d24a22b9381598700e22c14f71 1921 admin optional lnav_0.7.0-3.dsc
 d765570fef3499913282a34aa8a8383e 4684 admin optional lnav_0.7.0-3.debian.tar.xz
 10ee027427f190972100d6a3bcea8837 285556 admin optional lnav_0.7.0-3_amd64.deb

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

iQIcBAEBCgAGBQJTPXjDAAoJEAVMuPMTQ89EedYP/RENA0Ho8nsqtjpMi+X6iLtF
WkNArOQAHrRFGKskaYqvEkWp5+HiCyN3v9eSQaGk1LT+PjcWjW47ZC/FNFCvWtrI
hVY9sHnxE6/jRmg1+awxM2MnhXZ6BhIy7vfOgHamEmwL7K+R57WW/TqZUNvTYOra
kQFdOmtuYEWI9k+ItaP/lE4l2zKNBiYVANe0/uTB0rTs5nxnSMUN8GILmN6YHYlz
1vw9NzVheiAZOr9HQrQUpO9qVwoNys1J+p2M7fygfPOQL/Lwor44OpvIE22b9tiM
IpmVoN2FkFVSIclIap+5xPu+UNQLGCJrb7CXhVh+uFy4sGyjwCegRQ1VZdMB9OYY
wa7UicqMiMn0BxVlvbsqqb3sdUxYLatbzHEhiylImUi/HPB/4v+ZIOan9MT/dqEf
WeG/zRuEwsqXFCEp9leTDTeoGAyP5+QnMNH1lpNjedlicZmx9Zij/7yQnpzwIV/B
qrwFf5MsElck0p6bOlF32nbZIjefK8+a7Y09IDptKBaqUbfSGWnWgzKY884NDvBP
cU4RpAwz0Z+5ULHePyHZHshQ56NqoVzsCP6b3Ql1Olb3Su51Iv2NTAYzUHA5YV73
N24wyxnAPnVXP5x0ett8GTW33i9fsL11iZGb7Zg/EwQeQuRUfgNN4v91NpRt1dDM
tQWMrFvc5bD4x40v30Yx
=Ye7C
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to