Package: gmobilemedia
Version: 0.4+dfsg-10
Severity: normal
Tags: patch
User: [email protected]
Usertags: origin-ubuntu natty ubuntu-patch
The distutils.patch is incorrect because it references the distutils.sysconfig
module, but that module is never explicitly imported. Thus the distutils
module will not have a sysconfig attribute. Fixed by explicitly importing the
submodule.
*** /tmp/tmp6s3337
In Ubuntu, the attached patch was applied to achieve the following:
## ---------------- REPLACE THIS WITH ACTUAL INFORMATION ---------------------
## Please add all necessary information about why the change needed to go in
## Ubuntu, quote policy, spec or any other background material and why it can
## and should be used in Debian too. If the patch is composed of multiple
## independent pieces, please send them as separate bug reports.
## ---------------- REPLACE THIS WITH ACTUAL INFORMATION ---------------------
* debian/patches/distutils.patch: Fix FTBFS by explicitly importing
distutils.sysconfig. Without that, the submodule will not have been
imported and won't be an attribute on the distutils module. (LP:
#748089)
Thanks for considering the patch.
-- System Information:
Debian Release: squeeze/sid
APT prefers natty-updates
APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.38-8-generic (SMP w/8 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
=== modified file 'debian/changelog'
=== modified file 'debian/control'
--- debian/control 2010-06-17 14:21:09 +0000
+++ debian/control 2011-04-07 17:54:46 +0000
@@ -1,7 +1,8 @@
Source: gmobilemedia
Section: comm
Priority: optional
-Maintainer: Michal Čihař <[email protected]>
+Maintainer: Ubuntu Developers <[email protected]>
+XSBC-Original-Maintainer: Michal Čihař <[email protected]>
Uploaders: Python Applications Packaging Team <[email protected]>
Build-Depends: debhelper (>= 7.0.50)
Build-Depends-Indep: python, python-support (>= 0.5.3)
=== modified file 'debian/patches/distutils.patch'
--- debian/patches/distutils.patch 2009-05-13 12:00:56 +0000
+++ debian/patches/distutils.patch 2011-04-07 17:51:56 +0000
@@ -4,7 +4,7 @@
--- /dev/null
+++ b/setup.py
-@@ -0,0 +1,110 @@
+@@ -0,0 +1,111 @@
+#!/usr/bin/python
+# -*- coding: UTF-8 -*-
+
@@ -13,6 +13,7 @@
+import re
+from distutils.core import setup
+import distutils.command.build_scripts
++import distutils.sysconfig
+from stat import ST_MODE
+
+# check if Python is called on the first line with this expression
=== modified file 'setup.py'
--- setup.py 2010-01-02 12:39:42 +0000
+++ setup.py 2011-04-07 17:51:42 +0000
@@ -6,6 +6,7 @@
import re
from distutils.core import setup
import distutils.command.build_scripts
+import distutils.sysconfig
from stat import ST_MODE
# check if Python is called on the first line with this expression