Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 281911 - [patch] dev-tex/rubber uses deprecated md5 module
Summary: [patch] dev-tex/rubber uses deprecated md5 module
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: TeX project
URL: http://bugs.debian.org/cgi-bin/bugrep...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-08-18 12:38 UTC by Marco Leogrande
Modified: 2009-09-10 16:55 UTC (History)
1 user (show)

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


Attachments
Do not use the md5 module (python2.6.patch,417 bytes, patch)
2009-08-18 12:39 UTC, Marco Leogrande
Details | Diff
Patch for the rubber-1.1_p20080323 ebuild (rubber-1.1_p20080323.ebuild.patch,375 bytes, patch)
2009-08-18 12:41 UTC, Marco Leogrande
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Leogrande 2009-08-18 12:38:28 UTC
Today I have updated Python to version 2.6 and run python-updater. Everything went smooth, except that dev-tex/rubber-1.1_p20080323 (latest version both in Portage and on the official website) started issuing this warning at each run:

/usr/lib/python2.6/site-packages/rubber/util.py:8: DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5

It seems that Python 2.6 deprecated the md5 module.
The patch is trivial and is taken directly from the Debian bug (see URL). I'll attach the Python patch and another one to update the rubber-1.1_p20080323 ebuild.
Comment 1 Marco Leogrande 2009-08-18 12:39:54 UTC
Created attachment 201607 [details, diff]
Do not use the md5 module
Comment 2 Marco Leogrande 2009-08-18 12:41:18 UTC
Created attachment 201609 [details, diff]
Patch for the rubber-1.1_p20080323 ebuild
Comment 3 Patrick Lauer gentoo-dev 2009-09-10 16:55:12 UTC
+  10 Sep 2009; Patrick Lauer <patrick@gentoo.org>
+  +files/rubber-python2.6.patch, rubber-1.1_p20080323.ebuild:
+  Small python fix to supress deprecation warning. Fixes #281911. Thanks to
+  Marco Leogrande