Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 397647 - pypcap fails to configure with USE=-static-libs libpcap
Summary: pypcap fails to configure with USE=-static-libs libpcap
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-04 14:50 UTC by Allen Parker
Modified: 2012-01-08 21:13 UTC (History)
0 users

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


Attachments
pypcap-1.1-r1.ebuild.patch (pypcap-1.1-r1.ebuild.patch,266 bytes, patch)
2012-01-04 16:18 UTC, Arfrever Frehtes Taifersar Arahesis
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Allen Parker 2012-01-04 14:50:19 UTC
>>> Configuring source in /dev/shm/portage/dev-python/pypcap-1.1-r1/work/pypcap-1.1 ...
 * Configuration of dev-python/pypcap-1.1-r1 with CPython 2.7...
running config
Traceback (most recent call last):
  File "setup.py", line 101, in <module>
    ext_modules = [ pcap ])
  File "/usr/lib64/python2.7/distutils/core.py", line 152, in setup
    dist.run_commands()
  File "/usr/lib64/python2.7/distutils/dist.py", line 953, in run_commands
    self.run_command(cmd)
  File "/usr/lib64/python2.7/distutils/dist.py", line 972, in run_command
    cmd_obj.run()
  File "setup.py", line 67, in run
    cPickle.dump(self._pcap_config([ self.with_pcap ]),
  File "setup.py", line 63, in _pcap_config
    raise "couldn't find pcap build or installation directory"
TypeError: exceptions must be old-style classes or derived from BaseException, not str


--- pypcap-1.1-r1.ebuild	2011-04-02 07:01:10.000000000 -0600
+++ pypcap-1.1-r2.ebuild	2012-01-04 07:45:42.476084011 -0700
@@ -18,7 +18,7 @@
 KEYWORDS="~amd64 ~x86"
 IUSE="examples"
 
-RDEPEND="net-libs/libpcap"
+RDEPEND="net-libs/libpcap[static-libs]"
 DEPEND="${RDEPEND}
 	>=dev-python/pyrex-0.9.5.1a"


Reproducible: Always
Comment 1 Arfrever Frehtes Taifersar Arahesis 2012-01-04 16:18:36 UTC
Created attachment 297943 [details, diff]
pypcap-1.1-r1.ebuild.patch
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2012-01-08 21:13:52 UTC
Fixed thanks to Arfrever