[Python-modules-team] Bug#561878: python-qt4: FTBFS on hurd-i386: wrong value checking for errno result

Pino Toscano pino at kde.org
Sun Dec 20 23:27:48 UTC 2009

Package: python-qt4
Version: 4.6-1
Severity: important
Tags: patch
User: debian-hurd at lists.debian.org
Usertags: hurd


with a fixed sip4 (cfr #560418), python-qt4 fails to configure on GNU/Hurd.
The problem is basically the same as bug #560418: patch 01_configure has the
code snippet:
+    except OSError, e:
+        if e.errno != 17:
+            raise
which relies on the actual implementation of the various errno values.
The easy fix is to use the errno Python module and its EEXIST constant.
Attached there is the modified version of patch 01_configure with the above

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 01_configure.dpatch
Type: text/x-shellscript
Size: 9799 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20091221/f9c7c96f/attachment.bin>

More information about the Python-modules-team mailing list