commit:     569015025d09f245f150051fc003e76ac5332be4
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 20 07:49:16 2019 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Tue Aug 20 07:50:32 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=56901502

net-analyzer/ipsumdump: Fix includes, set OS headers dependency

Package-Manager: Portage-2.3.72, Repoman-2.3.17
Fixes: https://bugs.gentoo.org/692550
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>

 net-analyzer/ipsumdump/files/ipsumdump-1.86-SIOCGSTAMP.patch   | 10 ++++++++++
 .../{ipsumdump-1.86.ebuild => ipsumdump-1.86-r1.ebuild}        |  8 ++++++--
 net-analyzer/ipsumdump/ipsumdump-1.86.ebuild                   |  3 ++-
 3 files changed, 18 insertions(+), 3 deletions(-)

diff --git a/net-analyzer/ipsumdump/files/ipsumdump-1.86-SIOCGSTAMP.patch 
b/net-analyzer/ipsumdump/files/ipsumdump-1.86-SIOCGSTAMP.patch
new file mode 100644
index 00000000000..c2f0a74fff1
--- /dev/null
+++ b/net-analyzer/ipsumdump/files/ipsumdump-1.86-SIOCGSTAMP.patch
@@ -0,0 +1,10 @@
+--- a/src/fromdevice.cc
++++ b/src/fromdevice.cc
+@@ -47,6 +47,7 @@
+ 
+ #if FROMDEVICE_ALLOW_LINUX
+ # include <sys/socket.h>
++# include <linux/sockios.h>
+ # include <net/if.h>
+ # include <features.h>
+ # include <linux/if_packet.h>

diff --git a/net-analyzer/ipsumdump/ipsumdump-1.86.ebuild 
b/net-analyzer/ipsumdump/ipsumdump-1.86-r1.ebuild
similarity index 81%
copy from net-analyzer/ipsumdump/ipsumdump-1.86.ebuild
copy to net-analyzer/ipsumdump/ipsumdump-1.86-r1.ebuild
index 182f6ec8e8f..25325a3484d 100644
--- a/net-analyzer/ipsumdump/ipsumdump-1.86.ebuild
+++ b/net-analyzer/ipsumdump/ipsumdump-1.86-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=6
+EAPI=7
 
 DESCRIPTION="Simple TCP/IP Dump summarizer/analyzer"
 HOMEPAGE="http://read.seas.harvard.edu/~kohler/ipsumdump/";
@@ -20,11 +20,15 @@ DEPEND="
        dev-lang/perl
        dev-libs/expat
        sys-apps/texinfo
+       virtual/os-headers
 "
 DOCS=(
        NEWS.md
        README.md
 )
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.86-SIOCGSTAMP.patch
+)
 
 src_configure() {
        econf \

diff --git a/net-analyzer/ipsumdump/ipsumdump-1.86.ebuild 
b/net-analyzer/ipsumdump/ipsumdump-1.86.ebuild
index 182f6ec8e8f..784df50ece5 100644
--- a/net-analyzer/ipsumdump/ipsumdump-1.86.ebuild
+++ b/net-analyzer/ipsumdump/ipsumdump-1.86.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -20,6 +20,7 @@ DEPEND="
        dev-lang/perl
        dev-libs/expat
        sys-apps/texinfo
+       virtual/os-headers
 "
 DOCS=(
        NEWS.md

Reply via email to