[packages/tcprstat] - rel 3, fix building on x32

baggins baggins at pld-linux.org
Thu Jun 4 09:28:29 CEST 2026


commit d8bb39be9bc6fc8c042146bf81159c396cb826b4
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Thu Jun 4 09:28:14 2026 +0200

    - rel 3, fix building on x32

 tcprstat.spec |  4 +++-
 x32.patch     | 14 ++++++++++++++
 2 files changed, 17 insertions(+), 1 deletion(-)
---
diff --git a/tcprstat.spec b/tcprstat.spec
index 759dc82..6b9410e 100644
--- a/tcprstat.spec
+++ b/tcprstat.spec
@@ -3,13 +3,14 @@
 Summary:	Passive TCP response time analysis tool — Read more
 Name:		tcprstat
 Version:	0.3.1
-Release:	2
+Release:	3
 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
+Patch1:		x32.patch
 URL:		http://www.percona.com/docs/wiki/tcprstat:start
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -25,6 +26,7 @@ requests' response time in a server
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 # the libpcap detect is broken (wants static pcap)
 %{__sed} -i -e 's/buildpcap == xyes/buildpcap = xno/' configure.ac
diff --git a/x32.patch b/x32.patch
new file mode 100644
index 0000000..6132afa
--- /dev/null
+++ b/x32.patch
@@ -0,0 +1,14 @@
+--- tcprstat-0.3.1/src/output.c~	2010-08-12 05:10:28.000000000 +0200
++++ tcprstat-0.3.1/src/output.c	2026-06-04 09:26:25.761562041 +0200
+@@ -184,7 +184,11 @@
+             else if (c[0] == 'I')
+                 printf("%lu", iterations);
+             else if (c[0] == 't' || c[0] == 'T')
++#if defined(__x86_64__) && defined(__ILP32__)
++                printf("%llu", current - (c[0] == 't' ? timestamp : 0));
++#else
+                 printf("%lu", current - (c[0] == 't' ? timestamp : 0));
++#endif
+             
+             // Actual %
+             else if (c[0] == '%')
================================================================

---- gitweb:

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



More information about the pld-cvs-commit mailing list