Your message dated Fri, 24 Sep 2010 10:47:06 +0000
with message-id <[email protected]>
and subject line Bug#597923: fixed in rubber 1.1-2.4
has caused the Debian Bug report #597923,
regarding rubber: fix for "md5 deprecation warning" broken
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
597923: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=597923
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: rubber
Version: 1.1-2.3
Severity: important
Tags: patch

When rubber tries to take the md5 of files, it now crashes (it used to issue
a DeprecationWarning).

test.tex: -------------  8< ------------------
\documentclass{article}
\begin{document}
test
\end{document}
------------------------ >8 ------------------

$ rubber test.tex 
compiling test.tex...
Traceback (most recent call last):
  File "/usr/bin/rubber", line 9, in <module>
    sys.exit(Main()(sys.argv[1:]))
  File "/usr/share/rubber/rubber/cmdline.py", line 296, in __call__
    return self.main(cmdline)
  File "/usr/share/rubber/rubber/cmdline.py", line 260, in main
    ret = env.final.make(self.force)
  File "/usr/share/rubber/rubber/__init__.py", line 237, in make
    ret = self.run()
  File "/usr/share/rubber/rubber/rules/latex/__init__.py", line 1223, in run
    if self.compile(): return 1
  File "/usr/share/rubber/rubber/rules/latex/__init__.py", line 1129, in compile
    self.aux_md5[aux] = md5_file(aux)
  File "/usr/share/rubber/rubber/util.py", line 22, in md5_file
    m = md5.new()
AttributeError: 'builtin_function_or_method' object has no attribute 'new'

The attached (trivial) patch finishes the conversion to hashlib.

cheers
Stuart
diff -U2 -r rubber-1.1-old/src/util.py rubber-1.1/src/util.py
--- rubber-1.1-old/src/util.py	2010-09-24 10:47:49.000000000 +0100
+++ rubber-1.1/src/util.py	2010-09-24 10:46:01.000000000 +0100
@@ -20,5 +20,5 @@
 	Compute the MD5 sum of a given file.
 	"""
-	m = md5.new()
+	m = md5()
 	file = open(fname)
 	for line in file.readlines():

--- End Message ---
--- Begin Message ---
Source: rubber
Source-Version: 1.1-2.4

We believe that the bug you reported is fixed in the latest version of
rubber, which is due to be installed in the Debian FTP archive:

rubber_1.1-2.4.diff.gz
  to main/r/rubber/rubber_1.1-2.4.diff.gz
rubber_1.1-2.4.dsc
  to main/r/rubber/rubber_1.1-2.4.dsc
rubber_1.1-2.4_all.deb
  to main/r/rubber/rubber_1.1-2.4_all.deb



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Julien Cristau <[email protected]> (supplier of updated rubber package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 24 Sep 2010 12:10:18 +0200
Source: rubber
Binary: rubber
Architecture: source all
Version: 1.1-2.4
Distribution: unstable
Urgency: low
Maintainer: Emmanuel Beffara <[email protected]>
Changed-By: Julien Cristau <[email protected]>
Description: 
 rubber     - an automated system for building LaTeX documents
Closes: 597923
Changes: 
 rubber (1.1-2.4) unstable; urgency=low
 .
   * Non-maintainer upload.
   * Fix the botched previous upload (closes: #597923).  Thanks, Stuart
     Prescott!
Checksums-Sha1: 
 b3579cb961f4dbd7450c328e3c641cb43e512138 1739 rubber_1.1-2.4.dsc
 7b5aedd044abad5ec860d032b78e345e40e4ec51 4512 rubber_1.1-2.4.diff.gz
 4ce9de9528be09b66b3abc8e3416b8ddefa5f7fc 84832 rubber_1.1-2.4_all.deb
Checksums-Sha256: 
 8e90b84d2c6ba6e1eab83fb385e557830c7c38f52ae651973ab23fdb37db539c 1739 
rubber_1.1-2.4.dsc
 270a00b52b57ef513f879721822f821a9ed5e9b366483542939049dd0946134b 4512 
rubber_1.1-2.4.diff.gz
 fe31576ba5148b5e712a5ed8077f183719b5aeb38b6eea8569838f6f9da3cd97 84832 
rubber_1.1-2.4_all.deb
Files: 
 5f0d0841edce956054369a28096c0127 1739 tex optional rubber_1.1-2.4.dsc
 d58c5f33ac1f4343dc0e7f28c0c43af9 4512 tex optional rubber_1.1-2.4.diff.gz
 6702995df11f6929572e14bf491bb0e4 84832 tex optional rubber_1.1-2.4_all.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iQIcBAEBCAAGBQJMnH9sAAoJEDEBgAUJBeQMTzsP/is8B3dfX850yWb/zPS5bGeZ
RBLcqY1mERct6eAl6vKPHeCnDIafhwDZlvA+XfFqjuq+GEf8i3KBCw7hqe7FeiAm
Sm/W+OPe7vSM6wGz64aTGbdgBMpMHIvvjdYXEG2sLlnxg+10fIvXklQXkEHXCwyo
JrbofRGIYeOsS43evzfg6aAng/bUCJg6sWkjv43igpGHxZekNhZqQPtAcDwARnJX
0ESccNTPRu6ogfuHInSvNgsiGqUB45fVzqITMtfuq2yAKHVdqRg/m0IOpOdbWqLZ
j6aE2bLWiMPGweZJThfPWzDhqlDVWPlS/G1+cyHLOkXJWbrrglqP76Q/GZilQCf8
SI4bBAVrOlEeY+WX50gEZnPq8IwQ2SV4xH52oiAMrfS+DQRqTvNBvU/vIxUZIq/L
nzp68100RTUJuE1s1Wv1tDDLNwCC5vCiNbXPy4DOHk0WuTLjPcezSEAPWHqV26vA
RhZ1hK7aWs6GDmzGUS2PAp2YxFTXDYmMkrrKtzutG+Ncsjao94quBv8Sb67clHwg
usHUAaPulLV4AxqgLqXKi2IRVSvyBX/CjOKcN6zwII6e43r7PWkS747oM8W5+nmy
+Em101vK940BB5w1NC9GJuTROcRg1VDmqX+oafzlolCun+Pddd/s441Wh6HKfnDu
JDJxZgFvgpzLnkuCauE6
=ksKQ
-----END PGP SIGNATURE-----



--- End Message ---

Reply via email to