Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 283629 - net-analyzer/fail2ban-0.8.4: Use of deprecated python library md5
Summary: net-analyzer/fail2ban-0.8.4: Use of deprecated python library md5
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Gentoo Netmon project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-04 04:39 UTC by Robert Trace
Modified: 2010-11-05 15:01 UTC (History)
0 users

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


Attachments
Convert md5 usage to hashlib (hashlib.patch,1009 bytes, patch)
2009-09-04 04:40 UTC, Robert Trace
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Trace 2009-09-04 04:39:13 UTC
fail2ban-0.8.3 uses the python library md5.  This library has been deprecated for some time in python and with the recent stabilization of python-2.6, its use now generates a visible warning message.

md5 is trivially replaced by the use of hashlib.

Reproducible: Always

Steps to Reproduce:
1.  Run fail2ban-regex (maybe others?) under python 2.6

Actual Results:  
Visible warning message about use of md5

Expected Results:  
No warnings
Comment 1 Robert Trace 2009-09-04 04:40:27 UTC
Created attachment 203098 [details, diff]
Convert md5 usage to hashlib

Use hashlib instead of the deprecated md5 library.
Comment 2 Markos Chandras (RETIRED) gentoo-dev 2010-11-03 21:46:34 UTC
0.8.3 is no longer on tree
Comment 3 Robert Trace 2010-11-03 23:19:08 UTC
Still relevant for 0.8.4.
Comment 4 Markos Chandras (RETIRED) gentoo-dev 2010-11-05 15:01:23 UTC
+*fail2ban-0.8.4-r1 (05 Nov 2010)
+
+  05 Nov 2010; Markos Chandras <hwoarang@gentoo.org>
+  +files/fail2ban-0.8.4-hashlib.patch, files/fail2ban-logrotate,
+  +fail2ban-0.8.4-r1.ebuild, +files/fail2ban-0.8.4-sshd-breakin.patch:
+  Bugfix revision. Fixes bug 260337,283629,301139,315073,343955. Thanks to
+  Robert Trace <bugzilla-gentoo@farcaster.org>, Harley Peters
+  <harley@thepetersclan.com> for the patches.
+