Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 356573 - net-analyzer/net-snmp fails to build with Python 3
Summary: net-analyzer/net-snmp fails to build with Python 3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-26 15:33 UTC by Chris Mayo
Modified: 2011-03-01 20:03 UTC (History)
1 user (show)

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 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.