sorry sent this to the wrong bug report. I have prepared a NMU for python-apt and Steve McIntyre has uploaded it to delayed/2. The NMU backports the testsuite fix from unstable and also improves debian/rules clean.
A debdiff is attatched.
diff -Nru python-apt-0.8.3/debian/changelog python-apt-0.8.3+nmu1/debian/changelog --- python-apt-0.8.3/debian/changelog 2011-12-08 19:31:52.000000000 +0000 +++ python-apt-0.8.3+nmu1/debian/changelog 2012-01-25 11:23:50.000000000 +0000 @@ -1,3 +1,12 @@ +python-apt (0.8.3+nmu1) unstable; urgency=low + + * Non-maintainer upload. + * Backport testsuite fix from 0.8.4~exp1 to fix build on architectures + without libc6. Closes: #651472 + * extend debian/rules clean to remove some leftover files + + -- Peter Michael Green <plugw...@p10link.net> Sat, 11 Feb 2012 10:00:00 +0000 + python-apt (0.8.3) unstable; urgency=low [ Alexey Feldgendler ] diff -Nru python-apt-0.8.3/debian/rules python-apt-0.8.3+nmu1/debian/rules --- python-apt-0.8.3/debian/rules 2011-10-19 16:30:13.000000000 +0100 +++ python-apt-0.8.3+nmu1/debian/rules 2012-01-25 11:21:26.000000000 +0000 @@ -45,3 +45,15 @@ override_dh_python2: dh_python2 -N python-apt-common + +override_dh_auto_clean: + dh_auto_clean + rm -f tests/pycache__ + rm -f tests/data/aptsources/sources.list.enable_comps + rm -f tests/data/test-provides/var/cache/apt/pkgcache.bin + rm -f tests/data/test-provides/var/cache/apt/srcpkgcache.bin + rm -rf tests/data/tmp + rm -f tests/fetch_sources.list + rm -rf tests/__pycache__ + rm -rf tests/tmp/* + diff -Nru python-apt-0.8.3/po/python-apt.pot python-apt-0.8.3+nmu1/po/python-apt.pot --- python-apt-0.8.3/po/python-apt.pot 2011-12-08 19:31:28.000000000 +0000 +++ python-apt-0.8.3+nmu1/po/python-apt.pot 2012-01-24 22:10:17.000000000 +0000 @@ -8,7 +8,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2011-12-08 20:01+0100\n" +"POT-Creation-Date: 2012-01-24 22:10+0000\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <l...@li.org>\n" diff -Nru python-apt-0.8.3/tests/test_apt_cache.py python-apt-0.8.3+nmu1/tests/test_apt_cache.py --- python-apt-0.8.3/tests/test_apt_cache.py 2011-12-08 19:31:28.000000000 +0000 +++ python-apt-0.8.3+nmu1/tests/test_apt_cache.py 2012-01-24 21:12:07.000000000 +0000 @@ -190,12 +190,12 @@ def test_package_cmp(self): cache = apt.Cache(rootdir="/") l = [] - l.append(cache["libc6"]) + l.append(cache["intltool"]) l.append(cache["python3"]) l.append(cache["apt"]) l.sort() self.assertEqual([p.name for p in l], - ["apt", "libc6", "python3"]) + ["apt", "intltool", "python3"]) def test_get_architectures(self): main_arch = apt.apt_pkg.config.get("APT::Architecture")