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=lnavarch=mipsver=0.7.0-2stamp=1396446363
powerpc:
https://buildd.debian.org/status/fetch.php?pkg=lnavarch=powerpcver=0.7.0-2stamp=1396439887
s390x:
https://buildd.debian.org/status/fetch.php?pkg=lnavarch=s390xver=0.7.0-2stamp=1396439366
sparc:
https://buildd.debian.org/status/fetch.php?pkg=lnavarch=sparcver=0.7.0-2stamp=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.0 +
+++ lnav-0.7.0/debian/patches/big-endian.patch 2014-04-03 13:18:51.0 +
@@ -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.0 +
+++ lnav-0.7.0/debian/patches/series 2014-04-03 12:58:52.0 +
@@ -1 +1,2 @@
default-to-var-log-syslog-on-Debian.patch
+big-endian.patch