Package: sdl-stretch
Version: 0.2.3-8
Severity: normal
Tags: patch
User: [EMAIL PROTECTED]
Usertags: origin-ubuntu ubuntu-patch hardy

Hello,

here is the patch I used to get sdl-stretch build in Ubuntu.
The problem was that doc/make-doc.py contains non-ASCII chars and python
2.5 expects a file encoding for them:

,----[ from the Ubuntu build log ]-
| make[2]: Entering directory `/build/buildd/sdl-stretch-0.2.3/doc'
| ln -s ../SDL_stretch.spec SDL_stretch.spec
| /usr/bin/python ./make-doc.py ../*.h suffix=1 
|   File "./make-doc.py", line 204
| SyntaxError: Non-ASCII character '\xac' in file ./make-doc.py on line 204, 
but no encoding declared; see http://www.python.org/peps/pep-0263.html for 
details
| make[2]: [SDL_stretch1.xml] Error 1 (ignored)
`----

Regards,
Michael
Index: sdl-stretch-0.2.3/doc/make-doc.py
===================================================================
--- sdl-stretch-0.2.3.orig/doc/make-doc.py	2007-12-14 16:11:55.000000000 +0100
+++ sdl-stretch-0.2.3/doc/make-doc.py	2007-12-14 16:12:12.000000000 +0100
@@ -1,3 +1,5 @@
+# -*- coding: latin-1 -*-
+
 import sys
 import re
 import string

Reply via email to