Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376453 - net-analyzer/ntop-4.0.3 installation fails when /var/lib/ntop/GeoIPASNum.dat is missing
Summary: net-analyzer/ntop-4.0.3 installation fails when /var/lib/ntop/GeoIPASNum.dat ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Alin Năstac (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-26 08:32 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2011-08-10 07:06 UTC (History)
1 user (show)

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


Attachments
ntop-4.0.3-gentoo.patch (ntop-4.0.3-gentoo.patch,6.08 KB, patch)
2011-07-26 08:32 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-07-26 08:32:41 UTC
Created attachment 281017 [details, diff]
ntop-4.0.3-gentoo.patch

Hi,

when /var/lib/ntop/GeoIPASNum.dat is not installed (for example when ntop gets installed for the first time) installation of ntop-4.0.3 fails with the following error:



install: cannot stat `3rd_party/GeoIPASNum.dat': No such file or directory
!!! doins: 3rd_party/GeoIPASNum.dat does not exist
doins failed
 * ERROR: net-analyzer/ntop-4.0.3 failed (install phase):
 *   failed to install GeoIPASNum.dat
 * 
 * Call stack:
 *     ebuild.sh, line  56:  Called src_install
 *   environment, line 2805:  Called die
 * The specific snippet of code:
 *           [ -f "${ROOT}/var/lib/ntop/${f}" ] || doins "3rd_party/${f}" || die "failed to install ${f}";
 * 
 * If you need support, post the output of 'emerge --info =net-analyzer/ntop-4.0.3',
 * the complete build log and the output of 'emerge -pqv =net-analyzer/ntop-4.0.3'.
 * The complete build log is located at '/var/tmp/portage/net-analyzer/ntop-4.0.3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-analyzer/ntop-4.0.3/temp/environment'.
 * S: '/var/tmp/portage/net-analyzer/ntop-4.0.3/work/ntop-4.0.3'
 * QA Notice: file does not exist:
 * 
 *      doins: 3rd_party/GeoIPASNum.dat does not exist



It seems like the ntop-4.0.3-gentoo.patch is missing the gunzip line so the affected file gets unzipped (and thus the .gz ending is removed and the file can be found) before the doins line comes into effect.
The attached ntop-4.0.3-gentoo.patch is fixing this problem.
Comment 1 Markos Chandras (RETIRED) gentoo-dev 2011-07-26 21:58:58 UTC
Lars, I only proxied this ebuild until Alin is back. I currently have no free chroot to test your patch. Feel free to commit it or wait until one of my chroots become available ;)
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-08-10 07:06:04 UTC
+  10 Aug 2011; Lars Wendler <polynomial-c@gentoo.org>
+  files/ntop-4.0.3-gentoo.patch:
+  non-maintainer commit: Added missing gunzip line for GeoIPASNum.dat file (bug
+  #376453). Fixed patch committed with kind permission from hwoarang.
+