Package Details: tcptrack 1.4.3-1

Git Clone URL: https://aur.archlinux.org/tcptrack.git (read-only, click to copy)
Package Base: tcptrack
Description: A sniffer which displays information about TCP connections it sees on a network interface
Upstream URL: https://github.com/bchretien/tcptrack/
Licenses: GPL
Submitter: bchretien
Maintainer: bchretien
Last Packager: bchretien
Votes: 20
Popularity: 0.000011
First Submitted: 2016-02-11 13:13 (UTC)
Last Updated: 2016-02-11 13:18 (UTC)

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

Da_Coynul commented on 2022-12-15 16:31 (UTC) (edited on 2022-12-15 16:40 (UTC) by Da_Coynul)


From 1da89bc566798c2d55ff0aaf5bdc5dcf08a68871 Mon Sep 17 00:00:00 2001
From: jonathan <jonathan@noreply.localhost>
Date: Thu, 15 Dec 2022 11:27:41 -0500
Subject: [PATCH] Update 'PKGBUILD'

From https://stackoverflow.com/questions/12875571/format-d-expects-argument-of-type-int-but-argument-2-has-type-size-t-w

"strlen(3) returns size_t. Use %zu to print it"

---
 PKGBUILD | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/PKGBUILD b/PKGBUILD
index a91b4e5..4aeaa2f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -12,6 +12,9 @@ sha256sums=('8725205ecbeddc3f891e3345e70f150d87705b099eafd8780f4739ab14f8c862')
 prepare() {
   cd "${srcdir}/${pkgname}-${pkgver}"
   ./configure --prefix=/usr
+  sed -i 's/%ds/%zus/' src/TextUI.cc
+  sed -i 's/%dm/%zum/' src/TextUI.cc
+  sed -i 's/%dh/%zuh/' src/TextUI.cc
 }

 build() {

df8oe commented on 2022-01-24 11:43 (UTC)

Does not build because of "all warnings are treted as errors"...