dropwatch (1.5.1-2+rpi1) bullseye-staging; urgency=medium
authorPeter Michael Green <plugwash@raspbian.org>
Tue, 25 Feb 2020 01:49:54 +0000 (01:49 +0000)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 25 Feb 2020 01:49:54 +0000 (01:49 +0000)
  * Disable testsuite, it seems to hang on some of our autobuilders.

[dgit import unpatched dropwatch 1.5.1-2+rpi1]

13 files changed:
1  2 
debian/changelog
debian/clean
debian/compat
debian/control
debian/copyright
debian/docs
debian/manpages
debian/patches/0001-spelling-corrections.patch
debian/patches/series
debian/rules
debian/source/format
debian/upstream/metadata
debian/watch

index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..b2cecb45ccb72858fd7da1a774c5b8b926c578aa
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,17 @@@
++dropwatch (1.5.1-2+rpi1) bullseye-staging; urgency=medium
++
++  * Disable testsuite, it seems to hang on some of our autobuilders.
++
++ -- Peter Michael Green <plugwash@raspbian.org>  Tue, 25 Feb 2020 01:49:54 +0000
++
++dropwatch (1.5.1-2) unstable; urgency=medium
++
++  * Upload to unstable.
++
++ -- Dmitry Smirnov <onlyjob@debian.org>  Sun, 01 Dec 2019 22:16:03 +1100
++
++dropwatch (1.5.1-1) unstable; urgency=medium
++
++  * Initial release (Closes: #914577).
++
++ -- Dmitry Smirnov <onlyjob@debian.org>  Mon, 04 Nov 2019 04:11:01 +1100
diff --cc debian/clean
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..bcaae98df1afef9fb22498917577f01f875fa92b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,2 @@@
++## Debian CI:
++debian/.gitlab-ci.yml
diff --cc debian/compat
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..48082f72f087ce7e6fa75b9c41d7387daecd447b
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++12
diff --cc debian/control
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..9e67fe3171118f2cf6dde2cb51736be0cdca7aec
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,49 @@@
++Source: dropwatch
++Section: net
++Priority: optional
++Standards-Version: 4.4.1
++Maintainer: Dmitry Smirnov <onlyjob@debian.org>
++Build-Depends: debhelper (>= 12~)
++    ,automake
++    ,binutils-dev
++    ,libnl-genl-3-dev
++    ,libreadline-dev
++    ,pkgconf | pkg-config
++Rules-Requires-Root: no
++Homepage: https://github.com/nhorman/dropwatch
++Vcs-Git: https://salsa.debian.org/debian/dropwatch.git
++Vcs-Browser: https://salsa.debian.org/debian/dropwatch
++
++Package: dropwatch
++Architecture: any
++Depends: ${misc:Depends}, ${shlibs:Depends}
++Description: tool for detecting and diagnosing dropped network packets
++ Dropwatch is a utility to help developers and system administrators to
++ diagnose problems in the Linux Networking stack, specifically their
++ ability to diagnose where packets are getting dropped. Dropwatch aims to
++ improve on the following shortcomings:
++ .
++  1) Consolidation, or lack thereof. Currently, to check the status of
++  dropped packets in the kernel, one needs to check at least 3 places, and
++  possibly more: The /proc/net/snmp file, the netstat utility, the tc
++  utility, and ethtool. Dropwatch aims to consolidate several of those
++  checks into one tool, making it easier for a sysadmin or developer to
++  detect lost packets
++ .
++  2) Clarity of information.  Dropped packets are not obvious. A sysadmin
++  needs to be intimately familiar with each of the above tools to
++  understand which events or statistics correlate to a dropped packet and
++  which do not. While that is often self evident, it is also often not.
++  Dropwatch aims to improve that clarity.
++ .
++  3) Ambiguity. Even when a dropped packet is detected, the causes for
++  those dropped packets are not always clear. Does a UDPInError mean the
++  application receive buffer was full, or does it mean its checksum was
++  bad? Dropwatch attempts to disambiguate the causes for dropped packets.
++ .
++  4) Performance. Utilities can be written to aggregate the data in the
++  various other utilities to solve some of these problems, but such
++  solutions require periodic polling of several interfaces, which is far
++  from optimal, especially when lost packets are rare. This solution
++  improves on the performance aspect by implementing a kernel feature which
++  allows asynchronous notification of dropped packets when they happen.
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..4a72357583df4803059f170e24964c8df9aea699
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,69 @@@
++Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
++Upstream-Name: dropwatch
++Source: https://github.com/nhorman/dropwatch
++
++Files: *
++Copyright:
++    2009-2018 Neil Horman <nhorman@redhat.com>
++License: GPL-2
++
++Files:
++    Makefile.am
++Copyright:
++    2009-2018 Neil Horman <nhorman@redhat.com>
++License: LGPL-2.1+
++
++Files: debian/*
++Copyright:
++    2019 Dmitry Smirnov <onlyjob@debian.org>
++License: Expat
++
++License: Expat
++ Permission is hereby granted, free of charge, to any person obtaining a
++ copy of this software and associated documentation files (the "Software"),
++ to deal in the Software without restriction, including without limitation
++ the rights to use, copy, modify, merge, publish, distribute, sublicense,
++ and/or sell copies of the Software, and to permit persons to whom the
++ Software is furnished to do so, subject to the following conditions:
++ .
++ The above copyright notice and this permission notice shall be included
++ in all copies or substantial portions of the Software.
++ .
++ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
++ OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
++ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
++ NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
++ DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
++ OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
++ USE OR OTHER DEALINGS IN THE SOFTWARE.
++Comment:
++ This license also known as "MIT" or "MIT X11" however FSF considers
++ "MIT" labelling ambiguous and copyright-format specification recommend
++ to mark such license as "Expat".
++
++License: GPL-2
++ This program is free software; you can redistribute it and/or modify it
++ under the terms of the GNU General Public License as published by the Free
++ Software Foundation, version 2 of the License.
++ ․
++ This program is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
++ GNU General Public License for more details.
++ ․
++ On Debian systems, the complete text of the GNU General Public
++ License Version 2 can be found in "/usr/share/common-licenses/GPL-2".
++
++License: LGPL-2.1+
++ This library is free software; you can redistribute it and/or
++ modify it under the terms of the GNU Lesser General Public
++ License as published by the Free Software Foundation; either
++ version 2.1 of the License, or (at your option) any later version.
++ ․
++ This library is distributed in the hope that it will be useful,
++ but WITHOUT ANY WARRANTY; without even the implied warranty of
++ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
++ Lesser General Public License for more details.
++ ․
++ On Debian systems, the complete text of the GNU Lesser General Public
++ License Version 2.1 can be found in "/usr/share/common-licenses/LGPL-2.1".
diff --cc debian/docs
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..ab1a32b878907f7250a49fd2bf23a7909c7f0d4c
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++README*
diff --cc debian/manpages
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..43e261f6cce2338a04f4cd3cb7a378859dd80e38
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++doc/*.1
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..e9cc211b7955631d127256788c8d3fc1118112b6
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,142 @@@
++Last-Update: 2019-11-04
++Forwarded: https://github.com/nhorman/dropwatch/pull/13
++Applied-Upstream: https://github.com/nhorman/dropwatch/commit/dca5a6a18491f59611a72766694030ea0e0c0479
++Author: Dmitry Smirnov <onlyjob@member.fsf.org>
++Subject: spelling corrections
++
++--- a/README.md
+++++ b/README.md
++@@ -9,9 +9,9 @@
++ Dropwatch is a project I started in an effort to improve the ability for
++ developers and system administrator to diagnose problems in the Linux Networking
++ stack, specifically in our ability to diagnose where packets are getting
++ dropped.  From my probing, I've come to the conclusion that there are four main
++-shortcommings in our current environment:
+++shortcomings in our current environment:
++ 
++ 1) Consolidation, or lack thereof.  Currently, if you would like to check on the
++ status of dropped packets in the kernel, you need to check at least 3 places,
++ and possibly more: The /proc/net/snmp file, the netstat utility, the tc utility,
++@@ -28,13 +28,13 @@
++ dropped packets are not always clear.  Does a UDPInError mean the application
++ receive buffer was full, or does it mean its checksum was bad?  Dropwatch
++ attempts to disambiguate the causes for dropped packets.
++ 
++-4) Performance.  Utilties can be written to aggregate the data in the various
+++4) Performance.  Utilities can be written to aggregate the data in the various
++ other utilities to solve some of these problems, but such solutions require
++ periodic polling of several interfaces, which is far from optimal, especially
++ when lost packets are rare.  This solution improves on the performance aspect by
++-implementing a kernel feature which allows asyncronous notification of dropped
+++implementing a kernel feature which allows asynchronous notification of dropped
++ packets when they happen.
++ 
++ Building Dropwatch
++ Dropwatch uses the autotools suite (autoconf/automake) to build.  To build and install the utility run the following commands:
++--- a/src/lookup.c
+++++ b/src/lookup.c
++@@ -19,9 +19,9 @@
++ 
++ /*
++  * This is a translator.  given an input address, this will convert it into a
++  * function and offset.  Unless overridden, it will automatically determine
++- * tranlations using the following methods, in order of priority:
+++ * translations using the following methods, in order of priority:
++  * 1) /usr/lib/debug/<kernel version> using libbfd
++  * 2) /proc/kallsyms
++  */
++ #include <stdlib.h>
++@@ -39,9 +39,9 @@
++ extern struct lookup_methods kallsym_methods;
++ 
++ static int lookup_null_init(void)
++ {
++-     printf("Initalizing null lookup method\n");
+++     printf("Initializing null lookup method\n");
++      return 0;
++ }
++ 
++ static int lookup_null_sym(void *pc, struct loc_result *location)
++--- a/src/lookup.h
+++++ b/src/lookup.h
++@@ -19,9 +19,9 @@
++ 
++ /*
++  * This is a translator.  given an input address, this will convert it into a
++  * function and offset.  Unless overridden, it will automatically determine
++- * tranlations using the following methods, in order of priority:
+++ * translations using the following methods, in order of priority:
++  * 1) /usr/lib/debug/<kernel version> using libbfd
++  * 2) /proc/kallsyms
++  */
++ 
++@@ -29,18 +29,18 @@
++ #include <asm/types.h>
++ 
++ 
++ /*
++- * Initalization routine
+++ * Initialization routine
++  * INPUTS:
++  *   method - enum describing how to do translation
++  *          * METHOD_NULL : Just print pc values, not symbols
++  *          * METHOD_AUTO : automatic search for best method
++  *          * METHOD_DEBUGINFO : use debuginfo package
++  *          * METHOD_KALLSYMS : use /proc/kallsyms
++  *   returns:
++- *          * 0   : initalization succeded
++- *          * < 0 : initalization failed
+++ *          * 0   : initialization succeeded
+++ *          * < 0 : initialization failed
++  */
++ typedef enum {
++      METHOD_NULL = 0,
++      METHOD_AUTO,
++--- a/src/lookup_kas.c
+++++ b/src/lookup_kas.c
++@@ -136,9 +136,9 @@
++ }
++ 
++ static int lookup_kas_init(void)
++ {
++-     printf("Initalizing kallsyms db\n");
+++     printf("Initializing kallsyms db\n");
++      
++      return 0;
++ }
++ 
++--- a/src/main.c
+++++ b/src/main.c
++@@ -42,9 +42,9 @@
++ #include "net_dropmon.h"
++ #include "lookup.h"
++ 
++ /*
++- * This is just in place until the kernel changes get comitted
+++ * This is just in place until the kernel changes get committed
++  */
++ #ifndef NETLINK_DRPMON
++ #define NETLINK_DRPMON 20
++ #endif
++@@ -419,9 +419,9 @@
++      printf("Command Syntax:\n");
++      printf("exit\t\t\t\t - Quit dropwatch\n");
++      printf("help\t\t\t\t - Display this message\n");
++      printf("set:\n");
++-     printf("\talertlimit <number>\t - caputre only this many alert packets\n");
+++     printf("\talertlimit <number>\t - capture only this many alert packets\n");
++      printf("start\t\t\t\t - start capture\n");
++      printf("stop\t\t\t\t - stop capture\n");
++ }
++ 
++@@ -598,9 +598,9 @@
++      }
++ 
++ 
++      /*
++-      * Initalize our lookup library
+++      * Initialize our lookup library
++       */
++      init_lookup(meth);
++ 
++      enter_state_loop();
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..a2faf5ee87207815826c39d3fc9dd43d1552d025
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++0001-spelling-corrections.patch
diff --cc debian/rules
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..dba5bf7a00045c29898733fd241262afd6a8f0bd
new file mode 100755 (executable)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,14 @@@
++#!/usr/bin/make -f
++
++# Uncomment this to turn on verbose mode.
++#export DH_VERBOSE=1
++
++export DEB_BUILD_MAINT_OPTIONS = hardening=+all
++
++#include /usr/share/dpkg/pkg-info.mk
++
++%:
++      dh $@
++
++override_dh_auto_test:
++      echo testsuite disabled
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..163aaf8d82b6c54f23c45f32895dbdfdcc27b047
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,1 @@@
++3.0 (quilt)
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..ff38951005ccdb2fd3ffeccd219a82946f566367
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,3 @@@
++Homepage: https://github.com/nhorman/dropwatch
++Bug-Database: https://github.com/nhorman/dropwatch/issues
++Bug-Submit: https://github.com/nhorman/dropwatch/issues/new
diff --cc debian/watch
index 0000000000000000000000000000000000000000,0000000000000000000000000000000000000000..1d21bfc0d6de9e837f5e17066079a2a20414f465
new file mode 100644 (file)
--- /dev/null
--- /dev/null
@@@ -1,0 -1,0 +1,10 @@@
++# https://salsa.debian.org/snippets/95
++# uscan(1) configuration file.
++version=4
++
++opts="\
++pgpmode=none,\
++repack,compression=xz,repacksuffix=+dfsg,\
++dversionmangle=s{[+~]dfsg\d*}{},\
++" https://github.com/nhorman/dropwatch/releases \
++  .*/archive/v?(\d[\d\.]+)\.tar\.gz