Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 277471 - net-analyzer/net-snmp-5.4.2.1-r1 fails to compile with python useflag enabled
Summary: net-analyzer/net-snmp-5.4.2.1-r1 fails to compile with python useflag enabled
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-12 06:58 UTC by James Earl Spahlinger
Modified: 2009-07-12 15:38 UTC (History)
0 users

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


Attachments
emege --info (info.txt,3.84 KB, text/plain)
2009-07-12 07:01 UTC, James Earl Spahlinger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description James Earl Spahlinger 2009-07-12 06:58:18 UTC
This issue also applies to the stable net-analyzer/net-snmp-5.4.2.1, bug encountered on a testing system. (~amd64).

To reproduce, just type: USE="${USE} python" emerge net-snmp
*using Python 2.6. 
*Note that all ebuilds for dev-python/setuptools have the line NEED_PYTHON="2.4".

Workaround (to get it to compile, lacks python of course): echo "net-analyzer/net-snmp -python" >> /etc/portage/package.use

Let me know if additional information is required.

relevant emerge output is:
=build error=
make[2]: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-5.4.2.1-r1/work/net-snmp-5.4.2.1/perl/TrapReceiver'                                                                                              
make[1]: Leaving directory `/var/tmp/portage/net-analyzer/net-snmp-5.4.2.1-r1/work/net-snmp-5.4.2.1/perl' 
Traceback (most recent call last):                                                                        
  File "setup.py", line 2, in <module>                                                                    
    from setuptools import setup, Extension, find_packages                                                
ImportError: No module named setuptools                                                                   
make: *** [pythonmodules] Error 1  

Call stack just indicates the build failed, included anyway:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3602:  Called die
 * The specific snippet of code:
 *       emake -j1 || die "emake failed";
 *  The die message:
 *   emake failed
Comment 1 James Earl Spahlinger 2009-07-12 07:01:24 UTC
Created attachment 197606 [details]
emege --info
Comment 2 Rafał Mużyło 2009-07-12 11:09:21 UTC
In these cases, the very first question is:
did you use python-updater after upgrading from python 2.5 to 2.6 ?
Comment 3 James Earl Spahlinger 2009-07-12 15:38:11 UTC
Apparently not. Doing so allows it to compile with the python useflag enabled, so no bug. I'll go ahead and mark as invalid.