| Summary: | emerge pylibpcap fails | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Marc Vilanova <marc> |
| Component: | Current packages | Assignee: | Python Gentoo Team <python> |
| Status: | RESOLVED FIXED | ||
| Severity: | major | ||
| Priority: | High | ||
| Version: | unspecified | ||
| Hardware: | x86 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Attachments: | setup.py patch | ||
|
Description
Marc Vilanova
2005-11-13 16:17:40 UTC
As a workaround, change the unpacked source:
1. Open ${PORTAGE_TMPDIR}/pylibpcap-0.4/setup.py in a text editor
2. Change line 28 from:
def swig_sources(self, sources)
to:
def swig_sources(self, sources, extension=None)
3.In that directory, run
python setup.py build
python setup.py install
That is very, very ugly, but at least gets the package installed. Apparently
the original package is broken. Someone more knowledgeable than me could put
together a patch, perhaps?
Created attachment 73109 [details, diff]
setup.py patch
Thanks for your suggestions. I have made a little patch that solves this problem:
--- setup.py.orig 2005-11-18 00:11:02.000000000 +0100
+++ setup.py 2005-11-18 00:11:29.000000000 +0100
@@ -21,7 +21,7 @@
# self.run_command('make_clean')
class pcap_build_ext(build_ext):
- def swig_sources(self, sources):
+ def swig_sources(self, sources, extension=None):
"""Walk the list of source files in 'sources', looking for SWIG
interface (.i) files. Run SWIG on all that are found, and
fixed. thanks for the patch. however, i've also bumped the version to 0.5.1 which seems to be working better. |