package/dropwatch: bump to version 1.5.3
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sun, 21 Jun 2020 19:03:05 +0000 (21:03 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sun, 21 Jun 2020 21:04:49 +0000 (23:04 +0200)
- Drop patch (already in version)
- Update indentation in hash file (two spaces)

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
package/dropwatch/0001-Fix-build-on-32-bit-systems.patch [deleted file]
package/dropwatch/dropwatch.hash
package/dropwatch/dropwatch.mk

diff --git a/package/dropwatch/0001-Fix-build-on-32-bit-systems.patch b/package/dropwatch/0001-Fix-build-on-32-bit-systems.patch
deleted file mode 100644 (file)
index 355a01c..0000000
+++ /dev/null
@@ -1,87 +0,0 @@
-From 3004f23d38400cd4a8619bcacd55a625d3bd7e1f Mon Sep 17 00:00:00 2001
-From: Alexander Dahl <post@lespocky.de>
-Date: Fri, 13 Mar 2020 13:20:27 +0100
-Subject: [PATCH] Fix build on 32-bit systems
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Because -Werror is set, some printf statements caused build errors on
-32-bit systems when printing uint64_t. This can be handled in a portable
-way by using the macros from inttypes.h …
-
-Fixes: #12
-Signed-off-by: Alexander Dahl <post@lespocky.de>
----
-PR upstream: https://github.com/nhorman/dropwatch/pull/24
----
- src/dwdump.c | 3 ++-
- src/main.c   | 9 +++++----
- 2 files changed, 7 insertions(+), 5 deletions(-)
-
-diff --git a/src/dwdump.c b/src/dwdump.c
-index 0c3ba6f..0ea9fd0 100644
---- a/src/dwdump.c
-+++ b/src/dwdump.c
-@@ -3,6 +3,7 @@
-  */
- #include <errno.h>
-+#include <inttypes.h>
- #include <getopt.h>
- #include <pcap.h>
- #include <signal.h>
-@@ -246,7 +247,7 @@ static void dwdump_nested_stats_print(struct nlattr *attr)
-               return;
-       if (attrs[NET_DM_ATTR_STATS_DROPPED])
--              printf("Tail dropped: %lu\n",
-+              printf("Tail dropped: %" PRIu64 "\n",
-                      nla_get_u64(attrs[NET_DM_ATTR_STATS_DROPPED]));
- }
-diff --git a/src/main.c b/src/main.c
-index 1a1515c..bd87085 100644
---- a/src/main.c
-+++ b/src/main.c
-@@ -10,6 +10,7 @@
- #include <stdlib.h>
- #include <stdio.h>
- #include <errno.h>
-+#include <inttypes.h>
- #include <signal.h>
- #include <stdint.h>
- #include <stdbool.h>
-@@ -486,9 +487,9 @@ void handle_dm_packet_alert_msg(struct netlink_message *msg, int err)
-               goto out_free;
-       if (attrs[NET_DM_ATTR_PC] && attrs[NET_DM_ATTR_SYMBOL])
--              printf("drop at: %s (%p)\n",
-+              printf("drop at: %s (0x%" PRIx64 ")\n",
-                      nla_get_string(attrs[NET_DM_ATTR_SYMBOL]),
--                     (void *) nla_get_u64(attrs[NET_DM_ATTR_PC]));
-+                     nla_get_u64(attrs[NET_DM_ATTR_PC]));
-       else if (attrs[NET_DM_ATTR_HW_TRAP_GROUP_NAME] &&
-                attrs[NET_DM_ATTR_HW_TRAP_NAME])
-               printf("drop at: %s (%s)\n",
-@@ -524,7 +525,7 @@ void handle_dm_packet_alert_msg(struct netlink_message *msg, int err)
-               tstr = asctime(tm);
-               tstr[strlen(tstr) - 1] = 0;
--              printf("timestamp: %s %09ld nsec\n", tstr, ts % 1000000000);
-+              printf("timestamp: %s %09" PRId64 " nsec\n", tstr, ts % 1000000000);
-       }
-       if (attrs[NET_DM_ATTR_PROTO])
-@@ -599,7 +600,7 @@ void print_nested_stats(struct nlattr *attr)
-               return;
-       if (attrs[NET_DM_ATTR_STATS_DROPPED])
--              printf("Tail dropped: %lu\n",
-+              printf("Tail dropped: %" PRIu64 "\n",
-                      nla_get_u64(attrs[NET_DM_ATTR_STATS_DROPPED]));
- }
--- 
-2.20.1
-
index e4b687ae75f541192073106f53de0e4e353ee939..867a7f12fb58aeb6d3e50b49ace419d87bdd72e7 100644 (file)
@@ -1,3 +1,3 @@
 # Locally calculated
-sha256 a2049a68d2cc2f81df977c7a732f50de3ec71283bc7bd94389ba33574af9aaa6  dropwatch-1.5.2.tar.gz
-sha256 e6d6a009505e345fe949e1310334fcb0747f28dae2856759de102ab66b722cb4  COPYING
+sha256  b748b66a816c1f94531446c0451da5461a4a31b0949244bb867d741c6ac0148b  dropwatch-1.5.3.tar.gz
+sha256  e6d6a009505e345fe949e1310334fcb0747f28dae2856759de102ab66b722cb4  COPYING
index 4cebe041db097355c2290541a95b29df6fdd622d..36608ad8b36f6c07779ae1344a82643b513ba25f 100644 (file)
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-DROPWATCH_VERSION = 1.5.2
+DROPWATCH_VERSION = 1.5.3
 DROPWATCH_SITE = $(call github,nhorman,dropwatch,v$(DROPWATCH_VERSION))
 DROPWATCH_DEPENDENCIES = libnl readline libpcap host-pkgconf $(TARGET_NLS_DEPENDENCIES)
 DROPWATCH_LICENSE = GPL-2.0+