[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#523473: python-apt: FTBFS with python-debian (>= 0.1.13) on Python 2.4



Package: python-apt
Version: 0.7.10
Severity: serious
Tags: patch
Justification: no longer builds from source

The release of python-debian 0.1.13 introduced a requirement of at least
version 2.5 of python.

The build process of python-apt uses python-debian to get the version
number from the changelog, and wants to build for python2.4, therefore
failing.

I attached a patch to not use a version number in setup.py, which is
unneeded and fixes this problem. If there are no objections, I will
upload a new release 0.7.10.1 at 2000 CEST (1800 UTC).

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (350, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-apt depends on:
ii  apt [libapt-pkg-libc6.7-6-4.6 0.7.20.2   Advanced front-end for dpkg
ii  apt-utils [libapt-inst-libc6. 0.7.20.2   APT utility programs
ii  libc6                         2.9-7      GNU C Library: Shared libraries
ii  libgcc1                       1:4.3.3-5  GCC support library
ii  libjs-jquery                  1.3.2-2    JavaScript library for dynamic web
ii  libstdc++6                    4.3.3-5    The GNU Standard C++ Library v3
ii  lsb-release                   3.2-22     Linux Standard Base version report
ii  python                        2.5.4-2    An interactive high-level object-o
ii  python-central                0.6.11     register and build utility for Pyt

Versions of packages python-apt recommends:
ii  iso-codes                     3.8-1      ISO language, territory, currency,

Versions of packages python-apt suggests:
pn  python-apt-dbg             <none>        (no description available)
ii  python-gtk2                2.14.1-2      Python bindings for the GTK+ widge
ii  python-vte                 1:0.17.4-2+b1 Python bindings for the VTE widget

-- no debconf information

-- 
Julian Andres Klode  - Free Software Developer
   Debian Developer  - Contributing Member of SPI
   Ubuntu Member     - Fellow of FSFE

Website: http://jak-linux.org/   XMPP: juliank@jabber.org
Debian:  http://www.debian.org/  SPI:  http://www.spi-inc.org/
Ubuntu:  http://www.ubuntu.com/  FSFE: http://www.fsfe.org/
=== modified file 'debian/changelog'
--- debian/changelog	2009-04-01 15:40:12 +0000
+++ debian/changelog	2009-04-10 14:15:03 +0000
@@ -1,3 +1,11 @@
+python-apt (0.7.10.1) unstable; urgency=low
+
+  * Do not use the version information in setup.py, as python-debian now
+    requires at least version 2.5 of Python, which caused python-apt to FTBFS
+    on Python 2.4 (Closes: #NNNNN)
+
+ -- Julian Andres Klode <jak@debian.org>  Fri, 10 Apr 2009 15:27:28 +0200
+
 python-apt (0.7.10) unstable; urgency=low
 
   * Build-Depend on python-debian, use it to get version number from changelog

=== modified file 'setup.py'
--- setup.py	2009-04-01 15:11:16 +0000
+++ setup.py	2009-04-10 14:16:44 +0000
@@ -10,18 +10,6 @@
 from DistUtilsExtra.command import build_extra, build_i18n
 
 
-class FakeDebianSupportModule(object):
-    """Work around the python-apt dependency of debian_support."""
-
-    class Version(object):
-        """Empty class."""
-
-sys.modules['debian_bundle.debian_support'] = FakeDebianSupportModule
-
-from debian_bundle.changelog import Changelog
-
-
-
 # The apt_pkg module
 files = map(lambda source: "python/"+source,
             parse_makefile("python/makefile")["APT_PKG_SRC"].split())
@@ -58,7 +46,6 @@
             print "Not removing", dirname, "because it does not exist"
 
 setup(name="python-apt",
-      version=Changelog(open('debian/changelog')).full_version,
       description="Python bindings for APT",
       author="APT Development Team",
       author_email="deity@lists.debian.org",
@@ -78,7 +65,8 @@
     try:
         import pygtk
     except ImportError:
-        print >> sys.stderr, 'E: python-gtk2 is required to build documentation.'
+        print >> sys.stderr, ('W: Not building documentation because python-'
+                              'gtk2 is not available at the moment.')
         sys.exit(0)
     sphinx.main(["sphinx", "-b", "html", "-d", "build/doc/doctrees",
                 os.path.abspath("doc/source"), "build/doc/html"])

Attachment: signature.asc
Description: Digital signature


Reply to: