Your message dated Fri, 28 May 2010 09:33:01 +0000
with message-id <[email protected]>
and subject line Bug#570742: fixed in snowballz 0.9.5.1-2.1
has caused the Debian Bug report #570742,
regarding snowballz: crashes with AttributeError: 'NoneType' object has no
attribute '__name__' with python2.6
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.)
--
570742: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570742
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: snowballz
Version: 0.9.5.1-2
Severity: wishlist
Tags: patch
User: [email protected]
Usertags: origin-ubuntu lucid ubuntu-patch
The below bug doesn't affect debian at the moment but will do if python2.6 is
used. This seems to be related to the way __hash__ is implemented in
containers, using None type rather than exceptions to mark themselves
unhashable. The fix used below should be generally applicable though, it only
checks for None types in cellulose celltypes and doesnt try to access variables
that wont exist in them
*** /tmp/tmp9YCb5W
In Ubuntu, we've applied the attached patch to achieve the following:
* debian/patches/list_nohash.patch:
- catch a case where the cellulose celltype tries to get variables
from None types (LP: #350466, #234598)
We thought you might be interested in doing the same.
-- System Information:
Debian Release: squeeze/sid
APT prefers lucid
APT policy: (500, 'lucid')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-14-generic (SMP w/8 CPU cores)
Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u snowballz-0.9.5.1/debian/changelog snowballz-0.9.5.1/debian/changelog
diff -u snowballz-0.9.5.1/debian/control snowballz-0.9.5.1/debian/control
--- snowballz-0.9.5.1/debian/control
+++ snowballz-0.9.5.1/debian/control
@@ -1,7 +1,8 @@
Source: snowballz
Section: games
Priority: extra
-Maintainer: Debian Games Team <[email protected]>
+Maintainer: Ubuntu Developers <[email protected]>
+XSBC-Original-Maintainer: Debian Games Team <[email protected]>
Uploaders: Miriam Ruiz <[email protected]>, Barry deFreese <[email protected]>
Build-Depends: debhelper (>= 5)
Build-Depends-Indep: quilt
diff -u snowballz-0.9.5.1/debian/patches/series snowballz-0.9.5.1/debian/patches/series
--- snowballz-0.9.5.1/debian/patches/series
+++ snowballz-0.9.5.1/debian/patches/series
@@ -1,0 +2 @@
+list_nohash.patch
only in patch2:
unchanged:
--- snowballz-0.9.5.1.orig/debian/patches/list_nohash.patch
+++ snowballz-0.9.5.1/debian/patches/list_nohash.patch
@@ -0,0 +1,25 @@
+Subject: Catch a case where the cellulose celltype tries to get variables
+ from None types. e.g containers that set __hash__= None to disable hashing
+Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/snowballz/+bug/234598
+Author: Niall Creech <[email protected]>
+Last-Update: 2010-02-20
+
+Index: snowballz-0.9.5.1/cellulose/celltypes.py
+===================================================================
+--- snowballz-0.9.5.1.orig/cellulose/celltypes.py 2010-02-20 15:37:53.123592334 +0000
++++ snowballz-0.9.5.1/cellulose/celltypes.py 2010-02-20 15:40:11.280466287 +0000
+@@ -63,9 +63,11 @@
+ for name in names:
+ new = create(name)
+ old = getattr(cls, name)
+- try: new.__name__ = old.__name__
+- except TypeError: pass # __name__ is readonly in python2.3
+- new.__doc__ = old.__doc__
++ # Handle the None case, __hash__ now returns this in some cases
++ if old != None:
++ try: new.__name__ = old.__name__
++ except TypeError: pass # __name__ is readonly in python2.3
++ new.__doc__ = old.__doc__
+ setattr(cls, name, new)
+
+
--- End Message ---
--- Begin Message ---
Source: snowballz
Source-Version: 0.9.5.1-2.1
We believe that the bug you reported is fixed in the latest version of
snowballz, which is due to be installed in the Debian FTP archive:
snowballz_0.9.5.1-2.1.diff.gz
to main/s/snowballz/snowballz_0.9.5.1-2.1.diff.gz
snowballz_0.9.5.1-2.1.dsc
to main/s/snowballz/snowballz_0.9.5.1-2.1.dsc
snowballz_0.9.5.1-2.1_all.deb
to main/s/snowballz/snowballz_0.9.5.1-2.1_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.
Sandro Tosi <[email protected]> (supplier of updated snowballz 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: SHA1
Format: 1.8
Date: Wed, 26 May 2010 09:29:26 +0200
Source: snowballz
Binary: snowballz
Architecture: source all
Version: 0.9.5.1-2.1
Distribution: unstable
Urgency: low
Maintainer: Debian Games Team <[email protected]>
Changed-By: Sandro Tosi <[email protected]>
Description:
snowballz - fun RTS game featuring snowball fights with penguins
Closes: 570742
Changes:
snowballz (0.9.5.1-2.1) unstable; urgency=low
.
* Non-maintainer upload.
* debian/patches/list_nohash.patch
- catch a case where the cellulose celltype tries to get variables from
None types; thanks to SevenMachines for the report and patch;
Closes: #570742
- don't mix tabs with spaces; thanks to Jakub Wilk for alerting on IRC
Checksums-Sha1:
0930ebfa00fd38c7480853f7e5a7f4ddd05fa03e 1320 snowballz_0.9.5.1-2.1.dsc
6d186819331be28f9b58f3f9aeab1efede4825c9 20387 snowballz_0.9.5.1-2.1.diff.gz
0255056ba6dcf2f2d6d353c6166ffd2b0f57d9d6 10055560 snowballz_0.9.5.1-2.1_all.deb
Checksums-Sha256:
1818a2af5480cbd61d5d3d9e81408be0e0c3cbdf37377dadb5ac518616e36f32 1320
snowballz_0.9.5.1-2.1.dsc
8b92d2b8fa73dbcc97b08917460b2160f001e33c6084d7bd920822a1241e7375 20387
snowballz_0.9.5.1-2.1.diff.gz
c0c885a16dc7503af5332d85f79cdc9adad65406cb4f37de367ac620fbda8cab 10055560
snowballz_0.9.5.1-2.1_all.deb
Files:
9dc697dfae5a4278d7e0aa5d090e7fe4 1320 games extra snowballz_0.9.5.1-2.1.dsc
9178d725b81aa315448d72d20871d9af 20387 games extra
snowballz_0.9.5.1-2.1.diff.gz
84b65e5ee7c6b45c13dd592c906815e7 10055560 games extra
snowballz_0.9.5.1-2.1_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAkv81LEACgkQAukwV0RN2VBfpwCePnI8gMehA6jhRM0bNgj5Ejw/
j/MAn1JvlBaPnVfXaBUx26WDpshdAu4P
=8pnD
-----END PGP SIGNATURE-----
--- End Message ---