Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 559366

Summary: dev-python/pyspf: incorrect usage of ipaddres/ipaddr
Product: Gentoo Linux Reporter: Robert Trace <bugzilla-gentoo>
Component: [OLD] LibraryAssignee: Python Gentoo Team <python>
Status: RESOLVED OBSOLETE    
Severity: major CC: gentoo
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 559364    
Attachments: pyspf-2.0.11.ebuild
ipaddress.patch
ipaddress.patch
pyspf-2.0.10.ebuild

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.