Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299040 - Stable net-analyzer/ngrep-1.45-r3 WAS: net-analyzer/ngrep-1.45-r2 fails for ppp0 with unsupported interface 113
Summary: Stable net-analyzer/ngrep-1.45-r3 WAS: net-analyzer/ngrep-1.45-r2 fails for...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-30 22:41 UTC by Hartmut Figge
Modified: 2011-01-10 18:50 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Modified ebuild (ngrep-1.45-r3.ebuild,1.14 KB, text/plain)
2010-12-08 13:24 UTC, Daniel Chobe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Hartmut Figge 2009-12-30 22:41:42 UTC
In the past i sometimes used ngrep successfully for ppp0. Now it fails with

hafi@e675 ~ $ sudo ngrep -x -d ppp0
interface: ppp0 (78.49.14.82/255.255.255.255)
fatal: unsupported interface type 113

I have found a related bug for debian which may be helpful:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=546596

Reproducible: Always
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2010-09-15 02:25:38 UTC
Apparently fixed in Debian's ngrep_1.45.ds2-7.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2010-09-15 02:58:47 UTC
So, according to that Debian bug, the fix for us would be this:

Index: ngrep-1.45-r2.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/ngrep/ngrep-1.45-r2.ebuild,v
retrieving revision 1.8
diff -u -B -r1.8 ngrep-1.45-r2.ebuild
--- ngrep-1.45-r2.ebuild        26 May 2010 16:31:12 -0000      1.8
+++ ngrep-1.45-r2.ebuild        15 Sep 2010 02:58:03 -0000
@@ -29,7 +29,7 @@
 
 src_configure() {
        econf --with-dropprivs-user=ngrep \
-               --with-pcap-includes="${EPREFIX}"/usr/include \
+               --with-pcap-includes="${EPREFIX}"/usr/include/pcap \
                $(use_enable pcre) \
                $(use_enable ipv6)
 }
Comment 3 Daniel Chobe 2010-12-08 13:24:15 UTC
Created attachment 256638 [details]
Modified ebuild
Comment 4 Jordan Ritter 2010-12-08 18:10:39 UTC
This looks like it resolves to a configure/ebuild a ebuild solution.  

But the ticket is assigned to me -- what would you guys like me to do?
Comment 5 Daniel Chobe 2010-12-09 07:43:39 UTC
Maybe, you can put the ebuild into the main branch.
Comment 6 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-09 16:45:22 UTC
Nobody has yet confirmed that the patch in comment #2 actually works.
Comment 7 Daniel Chobe 2010-12-10 08:26:42 UTC
I confirm that this Patch/eBuild -r3 works for me on x86

Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-10 17:17:07 UTC
Arch teams, please test and mark stable:
=net-analyzer/ngrep-1.45-r3
Target KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86"
Comment 9 Michael Weber (RETIRED) gentoo-dev 2010-12-11 22:43:36 UTC
builds on amd64/arm/sparc, but shouldn't we wait 30 days?
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-12 07:35:47 UTC
(In reply to comment #9)
> builds on amd64/arm/sparc, but shouldn't we wait 30 days?

The fix solves a problem with the current stable. So I vote NO. The problem was there all along with newer libpcap versions, so this is rather urgent.
Comment 11 Myckel Habets 2010-12-12 09:07:33 UTC
The 30 days is a guide line, not a hard rule.
Comment 12 Thomas Kahle (RETIRED) gentoo-dev 2010-12-12 09:37:47 UTC
x86 done. Thanks everyone.
Comment 13 Agostino Sarubbo gentoo-dev 2010-12-12 15:02:09 UTC
amd64 ok
Comment 14 Raúl Porcel (RETIRED) gentoo-dev 2010-12-12 17:05:07 UTC
alpha/arm/ia64/s390/sh/sparc stable
Comment 15 Jeroen Roovers (RETIRED) gentoo-dev 2010-12-13 05:53:07 UTC
Stable for HPPA PPC.
Comment 16 Markos Chandras (RETIRED) gentoo-dev 2010-12-29 15:40:15 UTC
amd64 done. Thanks Agostino
Comment 17 Kacper Kowalik (Xarthisius) (RETIRED) gentoo-dev 2011-01-10 18:50:11 UTC
ppc64 stable, last arch closing