Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 324607 - net-analyzer/net-snmp-5.4.2.1-r1: Deprecation Warning, python_mod_cleanup() called without paths
Summary: net-analyzer/net-snmp-5.4.2.1-r1: Deprecation Warning, python_mod_cleanup() c...
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-06-18 15:06 UTC by Alex Williams
Modified: 2010-06-18 15:23 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 Alex Williams 2010-06-18 15:06:39 UTC
On unmerging net-snmp, the following error is displayed:

 * Deprecation Warning: Not passing of paths to python_mod_cleanup() is deprecated and will be
 * disallowed on 2010-09-01. Call python_mod_cleanup() with paths to Python modules.
 * The ebuild needs to be fixed. Please report a bug, if it has not been already reported.


The postrm function seems to attempt to pass a path of some sort to the routine in question.  This function is unchanged in the latest ebuild (r4).

pkg_postrm() {
	if use python; then
		python_mod_cleanup $(python_get_sitedir)/netsnmp
	fi
}

Reproducible: Didn't try

Steps to Reproduce:
1. Unmerge net-snmp




Currently selected python version is 2.6.  (3.1 is installed in a new slot.)
Python is in my USE flags.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-06-18 15:23:08 UTC
This bug was fixed on 2010-06-01. During uninstallation, pkg_prerm() and pkg_postrm() from environment.bz2 in VDB, not from ebuild in Portage tree, are used.