Attached is a very minimal debdiff fixing the bug by selecting 2.8 as
wx version. Since last version was an NMU I though a further one could
be appreciated, but I will wait at least a week before (asking my
sponsor to) upload, so feel free to edit and upload before.

For the records, I did spend some minutes trying to make fontypython
(which seems pretty abandoned upstream) work with wx 3.0, and those are
the results:
- to make it start, it was sufficient to remove the lines
    langid = wx.LANGUAGE_DEFAULT # Picks this up from $LANG
    mylocale = wx.Locale( langid )
  from each of the 7 files in which they appear (they don't seem to be
  needed)
- however, afterwards it still raised annoying errors having to do with
  selecting items in a wx.ListCtrl. I am not able to reproduce reliably,
  and it is possible they were due to different versions of wx mixing up
  in my analysis, but some error message was identical to [1], and so
  [2] convinced me that at least for now relying on 2.8 is the right
  thing to do.

Pietro

[1]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736368
[2]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=736368#10

diff -Nru fontypython-0.4.4/debian/changelog fontypython-0.4.4/debian/changelog
--- fontypython-0.4.4/debian/changelog	2014-12-14 09:36:08.000000000 +0100
+++ fontypython-0.4.4/debian/changelog	2014-12-14 09:41:50.000000000 +0100
@@ -1,3 +1,10 @@
+fontypython (0.4.4-1.2) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Patch: select wx 2.8 (rather than 3.0) (Closes: #765487)
+
+ -- Pietro Battiston <m...@pietrobattiston.it>  Sun, 14 Dec 2014 09:39:51 +0100
+
 fontypython (0.4.4-1.1) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru fontypython-0.4.4/debian/patches/0001-Select-wx-2.8-rather-than-3.0.patch fontypython-0.4.4/debian/patches/0001-Select-wx-2.8-rather-than-3.0.patch
--- fontypython-0.4.4/debian/patches/0001-Select-wx-2.8-rather-than-3.0.patch	1970-01-01 01:00:00.000000000 +0100
+++ fontypython-0.4.4/debian/patches/0001-Select-wx-2.8-rather-than-3.0.patch	2014-12-14 09:39:20.000000000 +0100
@@ -0,0 +1,21 @@
+From: Pietro Battiston <m...@pietrobattiston.it>
+Date: Sun, 14 Dec 2014 09:39:17 +0100
+Subject: Select wx 2.8 (rather than 3.0)
+
+---
+ fontypythonmodules/sanitycheck.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/fontypythonmodules/sanitycheck.py b/fontypythonmodules/sanitycheck.py
+index cf4fcc1..0448b6b 100644
+--- a/fontypythonmodules/sanitycheck.py
++++ b/fontypythonmodules/sanitycheck.py
+@@ -31,7 +31,7 @@ except:
+ 
+ try:
+ 	import wxversion ## Dec 2007: noticed that it may not be installed along with wxPython....
+-	wxversion.ensureMinimal("2.8") 
++	wxversion.select("2.8")
+ except:
+ 	print strings.wxVersionError
+ 	print
diff -Nru fontypython-0.4.4/debian/patches/series fontypython-0.4.4/debian/patches/series
--- fontypython-0.4.4/debian/patches/series	1970-01-01 01:00:00.000000000 +0100
+++ fontypython-0.4.4/debian/patches/series	2014-12-14 09:39:20.000000000 +0100
@@ -0,0 +1 @@
+0001-Select-wx-2.8-rather-than-3.0.patch

Reply via email to