Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 439858 - net-analyzer/netsniff-ng links against dev-libs/libnl but is missing DEPENDS
Summary: net-analyzer/netsniff-ng links against dev-libs/libnl but is missing DEPENDS
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Michael Weber (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-27 12:15 UTC by Khayyam
Modified: 2012-11-07 01:20 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Khayyam 2012-10-27 12:15:35 UTC
If building net-analyzer/netsniff-ng with no libnl:1.1 installed the netsniff-ng component isn't built (so only bpfc and ifpps are installed). It seem that the build process depends on libnl:1.1 but the ebuild is missing this as a dependency.

# ldd /usr/sbin/netsniff-ng
    linux-gate.so.1 (0xb7798000)
    libpthread.so.0 => /lib/libpthread.so.0 (0xb776b000)
    libnl.so.1 => /usr/lib/libnl.so.1 (0xb7725000)
    libc.so.6 => /lib/libc.so.6 (0xb759c000)
    /lib/ld-linux.so.2 (0xb7799000)
    libm.so.6 => /lib/libm.so.6 (0xb7575000)

I only noticed this fact as 'equery depends dev-libs/libnl:1.1' showed no dependencies, but after susequently unmerging, revdep-rebuild wanted to re-merge the package. Once the emerge was completed 'equery files netsniff-ng' showed:

/usr
/usr/sbin
/usr/sbin/bpfc
/usr/sbin/ifpps
/usr/share
/usr/share/doc
/usr/share/doc/netsniff-ng-0.5.7
/usr/share/doc/netsniff-ng-0.5.7/AUTHORS.bz2
/usr/share/doc/netsniff-ng-0.5.7/README.bz2
/usr/share/doc/netsniff-ng-0.5.7/REPORTING-BUGS.bz2
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/bpfc.8.bz2
/usr/share/man/man8/ifpps.8.bz2

Replacing libnl:1.1 and re-merging netsniff-ng:

/etc
/etc/netsniff-ng
/etc/netsniff-ng/ether.conf
/etc/netsniff-ng/oui.conf
/etc/netsniff-ng/tcp.conf
/etc/netsniff-ng/udp.conf
/usr
/usr/sbin
/usr/sbin/bpfc
/usr/sbin/ifpps
/usr/sbin/netsniff-ng
/usr/share
/usr/share/doc
/usr/share/doc/netsniff-ng-0.5.7
/usr/share/doc/netsniff-ng-0.5.7/AUTHORS.bz2
/usr/share/doc/netsniff-ng-0.5.7/README.bz2
/usr/share/doc/netsniff-ng-0.5.7/REPORTING-BUGS.bz2
/usr/share/man
/usr/share/man/man8
/usr/share/man/man8/bpfc.8.bz2
/usr/share/man/man8/ifpps.8.bz2
/usr/share/man/man8/netsniff-ng.8.bz2

I imagine the issues wasn't noticed as most installs with netsniff-ng will no doubt have libnl:1.1 installed.

The fix:

RDEPEND="dev-libs/libnl:1.1"
DEPEND="${RDEPEND}"

best ... khay
Comment 1 Agostino Sarubbo gentoo-dev 2012-10-27 12:49:43 UTC
@xmw, there is a directly tarball instead of use anything else:

http://pub.netsniff-ng.org/netsniff-ng/netsniff-ng-0.5.7.tar.gz
Comment 2 Khayyam 2012-10-28 01:03:36 UTC
(In reply to comment #1)
> @xmw, there is a directly tarball instead of use anything else:

While I don't know why the ebuilds SRC_URI points to github and not netsniff-ng.org I can report that the two tarballs differ (based on checksum). However the issue is the same with the source tarball directly from the URL above.

With no libnl:1.1

# find ./image -type f -print
./image/usr/sbin/ifpps
./image/usr/sbin/bpfc
./image/usr/share/doc/netsniff-ng-0.5.7/REPORTING-BUGS.bz2
./image/usr/share/doc/netsniff-ng-0.5.7/README.bz2
./image/usr/share/doc/netsniff-ng-0.5.7/AUTHORS.bz2
./image/usr/share/man/man8/ifpps.8.bz2
./image/usr/share/man/man8/bpfc.8.bz2
Comment 3 Michael Weber (RETIRED) gentoo-dev 2012-11-07 01:20:22 UTC
(In reply to comment #1)
> @xmw, there is a directly tarball instead of use anything else:
> 
> http://pub.netsniff-ng.org/netsniff-ng/netsniff-ng-0.5.7.tar.gz

I think this file was not visible at the time of the last bump.

The differenc eof the tarballs is just the name of the top dir (gnumaniacs-netsniff-ng-1271e1c vs. netsniff-ng-0.5.7).
The contained files are exactly the same.

I'm doing an revbump to deploy the dependency and prevent libnl:1.1 removals.

+*netsniff-ng-0.5.7-r1 (07 Nov 2012)
+
+  07 Nov 2012; Michael Weber <xmw@gentoo.org> -netsniff-ng-0.5.6.ebuild,
+  -netsniff-ng-0.5.7.ebuild, +netsniff-ng-0.5.7-r1.ebuild:
+  Revbump to mark libnl dependency (thanks Khayyam, bug 439858), switch to
+  upstream release tarball (thanks ago), drop old.