Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419811 - net-analyzer/scapy-2.0.1 fails to build with python-3 eselected
Summary: net-analyzer/scapy-2.0.1 fails to build with python-3 eselected
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Auty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-05 20:09 UTC by Ian Stakenvicius (RETIRED)
Modified: 2012-06-06 00:10 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 Ian Stakenvicius (RETIRED) gentoo-dev 2012-06-05 20:09:19 UTC
It seems the the setup.py in this version of scapy is not python-3 compatible.  This ebuild needs to depend on python-2 and include a call to "python_set_active_version 2".

Given that there's a newer version that's stabilized, the ebuild should probably just be removed, though.


===== Build.log =====
 * Package:    net-analyzer/scapy-2.0.1
 * Repository: gentoo
 * Maintainer: ikelos@gentoo.org netmon
 * USE:        amd64 crypt elibc_glibc graphviz kernel_linux multilib userland_GNU
 * FEATURES:   sandbox
>>> Unpacking source...
>>> Unpacking scapy-2.0.1.tar.gz to /var/tmp/portage/net-analyzer/scapy-2.0.1/work
>>> Source unpacked in /var/tmp/portage/net-analyzer/scapy-2.0.1/work
>>> Preparing source in /var/tmp/portage/net-analyzer/scapy-2.0.1/work/scapy-2.0.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/net-analyzer/scapy-2.0.1/work/scapy-2.0.1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/net-analyzer/scapy-2.0.1/work/scapy-2.0.1 ...
python3.2 setup.py build
  File "setup.py", line 30
    os.chmod(fname,0755)
                      ^
SyntaxError: invalid token
 * ERROR: net-analyzer/scapy-2.0.1 failed (compile phase):
 *   Building failed
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_compile
 *   environment, line 3721:  Called distutils_src_compile
 *   environment, line 1053:  Called die
 * The specific snippet of code:
 *               "$(PYTHON)" "${setup_file#*|}" "${_DISTUTILS_GLOBAL_OPTIONS[@]}" build "$@" || die "Building failed";
 *
Comment 1 Mike Auty (RETIRED) gentoo-dev 2012-06-06 00:10:59 UTC
Thanks, this package has been removed from the tree as suggested.