Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 356573

Summary: net-analyzer/net-snmp fails to build with Python 3
Product: Gentoo Linux Reporter: Chris Mayo <aklhfex>
Component: New packagesAssignee: Gentoo Netmon project <netmon>
Status: RESOLVED FIXED    
Severity: normal CC: arfrever
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

Description Chris Mayo 2011-02-26 15:33:13 UTC
Emerge fails with USE="python" if Python3 is the default:

make[1]: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-5.4.3/work/net-snmp-5.4.3/perl'
  File "setup.py", line 14
    sys.argv.remove(arg)
                       ^
TabError: inconsistent use of tabs and spaces in indentation
make: *** [pythonmodules] Error 1
emake failed
 * ERROR: net-analyzer/net-snmp-5.4.3 failed (compile phase):



Adding:
PYTHON_DEPEND="2"

and:
pkg_setup() {
	python_set_active_version 2
}

fixes it for me.
Comment 1 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2011-03-01 20:03:04 UTC
Fixed in net-analyzer/net-snmp-5.4.2.1-r4, net-analyzer/net-snmp-5.4.3 and net-analyzer/net-snmp-5.5.