[packages/tcprstat] - fix build on 32bit arch

glen glen at pld-linux.org
Sun Oct 28 21:31:50 CET 2012


commit ca415653700503f1a463c4004cb88f4063ca67fd
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sun Oct 28 22:31:37 2012 +0200

    - fix build on 32bit arch

 tcprstat.spec | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/tcprstat.spec b/tcprstat.spec
index 3bbf337..f4e6ff1 100644
--- a/tcprstat.spec
+++ b/tcprstat.spec
@@ -1,7 +1,5 @@
 # TODO
 # - fix bashism in configure.ac, and add --disable-static option
-# - fix non-x86_64 build:
-#   stats-hash.c:297:2: error: #error Cannot determine sizeof(unsigned long)
 Summary:	Passive TCP response time analysis tool — Read more
 Name:		tcprstat
 Version:	0.3.1
@@ -10,6 +8,8 @@ License:	GPL v2 or v3
 Group:		Applications/Networking
 Source0:	https://github.com/downloads/Lowercases/tcprstat/%{name}-%{version}.tar.gz
 # Source0-md5:	392ffc7a4bd676567728aee0b479c552
+Patch0:		https://github.com/Lowercases/tcprstat/commit/48e3b7923ffec28e584c0220c4e5bfa4be7fca79.patch
+# Patch0-md5:	02f14c2c919c5e0b7681194ad815fc30
 URL:		http://www.percona.com/docs/wiki/tcprstat:start
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -24,6 +24,7 @@ requests' response time in a server
 
 %prep
 %setup -q
+%patch0 -p1
 
 # the libpcap detect is broken (wants static pcap)
 %{__sed} -i -e 's/buildpcap == xyes/buildpcap = xno/' configure.ac
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tcprstat.git/commitdiff/ca415653700503f1a463c4004cb88f4063ca67fd



More information about the pld-cvs-commit mailing list