Bug#743503: package lnav FTBFS on big endian architectures

2014-04-03 Thread Jurica Stanojkovic
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


Bug#743503: package lnav FTBFS on big endian architectures

2014-04-03 Thread Salvatore Bonaccorso
Control: tags -1 + confirmed pending

Hi Jurica,

On Thu, Apr 03, 2014 at 01:48:58PM +, Jurica Stanojkovic wrote:
 Package zbackup FTBFS on all big-endian architectures.

I suppose you mean lnav :)

I'm indeed already aware of it[1].

 [1] https://lists.debian.org/debian-s390/2014/04/msg0.html
 [2] https://github.com/tstack/lnav/issues/93

Thanks for your patch!

Regards,
Salvatore


signature.asc
Description: Digital signature


Processed: Re: Bug#743503: package lnav FTBFS on big endian architectures

2014-04-03 Thread Debian Bug Tracking System
Processing control commands:

 tags -1 + confirmed pending
Bug #743503 [lnav] package lnav FTBFS on big endian architectures
Added tag(s) confirmed and pending.

-- 
743503: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743503
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#743503: package lnav FTBFS on big endian architectures

2014-04-03 Thread Jurica Stanojkovic
Hi Salvatore,

Yes I meant lnav. 
(Saved template)
 Sorry!

Thanks!
Jurica

From: Salvatore Bonaccorso [salvatore.bonacco...@gmail.com] on behalf of 
Salvatore Bonaccorso [car...@debian.org]
Sent: 03 April 2014 16:11
To: Jurica Stanojkovic; 743...@bugs.debian.org
Subject: Re: Bug#743503: package lnav FTBFS on big endian architectures

Control: tags -1 + confirmed pending

Hi Jurica,

On Thu, Apr 03, 2014 at 01:48:58PM +, Jurica Stanojkovic wrote:
 Package zbackup FTBFS on all big-endian architectures.

I suppose you mean lnav :)

I'm indeed already aware of it[1].

 [1] https://lists.debian.org/debian-s390/2014/04/msg0.html
 [2] https://github.com/tstack/lnav/issues/93

Thanks for your patch!

Regards,
Salvatore


--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org