Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 559366 - dev-python/pyspf: incorrect usage of ipaddres/ipaddr
Summary: dev-python/pyspf: incorrect usage of ipaddres/ipaddr
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal major
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 559364
  Show dependency tree
 
Reported: 2015-09-02 01:24 UTC by Robert Trace
Modified: 2020-10-28 18:22 UTC (History)
1 user (show)

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


Attachments
pyspf-2.0.11.ebuild (pyspf-2.0.11.ebuild,1.01 KB, text/plain)
2015-09-02 01:25 UTC, Robert Trace
Details
ipaddress.patch (ipaddress.patch,972 bytes, patch)
2015-09-02 01:25 UTC, Robert Trace
Details | Diff
ipaddress.patch (ipaddress.patch,1.72 KB, patch)
2015-09-02 04:58 UTC, Robert Trace
Details | Diff
pyspf-2.0.10.ebuild (pyspf-2.0.10.ebuild,1.01 KB, text/plain)
2015-09-02 05:00 UTC, Robert Trace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Trace 2015-09-02 01:24:30 UTC
See bug #559364

pyspf tries to import ipaddress which it assumes is only in python3.  But dev-python/ipaddress (a backport of the python3 functionality) exists, so it ends up using that instead and it uses it incorrectly.


Reproducible: Always




See: https://bugzilla.redhat.com/show_bug.cgi?id=1230373
and: https://bugzilla.redhat.com/show_bug.cgi?id=1232595
and: bug #559364
Comment 1 Robert Trace 2015-09-02 01:25:05 UTC
Created attachment 410814 [details]
pyspf-2.0.11.ebuild
Comment 2 Robert Trace 2015-09-02 01:25:26 UTC
Created attachment 410816 [details, diff]
ipaddress.patch
Comment 3 Robert Trace 2015-09-02 04:58:35 UTC
Created attachment 410828 [details, diff]
ipaddress.patch

Updated patch.

- remove attempted import of ipaddr
- convert ipaddress.Bytes() usage to ipaddress module equivalent
Comment 4 Robert Trace 2015-09-02 05:00:11 UTC
Created attachment 410830 [details]
pyspf-2.0.10.ebuild
Comment 5 David Denoncin 2020-10-28 18:22:30 UTC
This is a python2 issue, which has disappeared in all mentioned packages. dev-python/ipaddress has been removed by commit 9528377f53b6f721e20e7f5f7031800308a03b34.