Your message dated Fri, 22 Feb 2019 16:05:24 +0000
with message-id <[email protected]>
and subject line Bug#913417: fixed in python-stdlib-extensions 2.7.16~rc1-1
has caused the Debian Bug report #913417,
regarding python-stdlib-extensions FTCBFS: multiple reasons
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
913417: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=913417
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-stdlib-extensions
Version: 2.7.15-1
Tags: patch
User: [email protected]
Usertags: rebootstrap
python-stdlib-extensions fails to cross build from source. There are
multiple reasons for that:
* The Build-Depends need multiarchification.
* setup.py builds for the build architecture. exporting PYTHONPATH
fixes that.
* setup.py attempts to import the built extensions, which cannot work
during cross compilation.
The attached patch fixes all of these issues and makes
python-stdlib-extensions cross buildable. Please consider applying it.
Helmut
diff --minimal -Nru python-stdlib-extensions-2.7.15/debian/changelog
python-stdlib-extensions-2.7.15/debian/changelog
--- python-stdlib-extensions-2.7.15/debian/changelog 2018-05-02
10:47:10.000000000 +0200
+++ python-stdlib-extensions-2.7.15/debian/changelog 2018-11-10
15:34:53.000000000 +0100
@@ -1,3 +1,13 @@
+python-stdlib-extensions (2.7.15-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * Fix FTCBFS: (Closes: #-1)
+ + Multiarchify Build-Depends.
+ + Set up PYTHONPATH for cross compilation.
+ + cross.patch: Don't import built modules.
+
+ -- Helmut Grohne <[email protected]> Sat, 10 Nov 2018 15:34:53 +0100
+
python-stdlib-extensions (2.7.15-1) unstable; urgency=medium
* Python 2.7.15 release.
diff --minimal -Nru python-stdlib-extensions-2.7.15/debian/control
python-stdlib-extensions-2.7.15/debian/control
--- python-stdlib-extensions-2.7.15/debian/control 2018-05-02
10:47:10.000000000 +0200
+++ python-stdlib-extensions-2.7.15/debian/control 2018-11-10
15:34:53.000000000 +0100
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Matthias Klose <[email protected]>
Build-Depends: debhelper (>= 9),
- python-all-dev (>= 2.7.14-1~), python-all-dbg,
+ libpython-all-dev (>= 2.7.14-1~), python-all-dev:any (>= 2.7.14-1~),
libpython-all-dbg, python-all-dbg:any,
tk8.6-dev, blt-dev (>= 2.4z-9), libgdbm-dev
Build-Conflicts: tcl8.4-dev, tk8.4-dev, tcl8.5-dev, tk8.5-dev
XS-Python-Version: 2.7
diff --minimal -Nru python-stdlib-extensions-2.7.15/debian/patches/cross.patch
python-stdlib-extensions-2.7.15/debian/patches/cross.patch
--- python-stdlib-extensions-2.7.15/debian/patches/cross.patch 1970-01-01
01:00:00.000000000 +0100
+++ python-stdlib-extensions-2.7.15/debian/patches/cross.patch 2018-11-10
15:34:53.000000000 +0100
@@ -0,0 +1,11 @@
+--- python-stdlib-extensions-2.7.15.orig/2.7/setup.py
++++ python-stdlib-extensions-2.7.15/2.7/setup.py
+@@ -288,6 +288,8 @@
+ ext_filename = os.path.join(
+ self.build_lib,
+ self.get_ext_filename(self.get_ext_fullname(ext.name)))
++ if "/plat-" in os.environ.get("PYTHONPATH", ""):
++ return # cross compiling
+ try:
+ imp.load_dynamic(ext.name, ext_filename)
+ except ImportError, why:
diff --minimal -Nru python-stdlib-extensions-2.7.15/debian/patches/series
python-stdlib-extensions-2.7.15/debian/patches/series
--- python-stdlib-extensions-2.7.15/debian/patches/series 1970-01-01
01:00:00.000000000 +0100
+++ python-stdlib-extensions-2.7.15/debian/patches/series 2018-11-10
15:34:53.000000000 +0100
@@ -0,0 +1 @@
+cross.patch
diff --minimal -Nru python-stdlib-extensions-2.7.15/debian/rules
python-stdlib-extensions-2.7.15/debian/rules
--- python-stdlib-extensions-2.7.15/debian/rules 2015-12-09
13:34:08.000000000 +0100
+++ python-stdlib-extensions-2.7.15/debian/rules 2018-11-10
15:34:53.000000000 +0100
@@ -13,7 +13,10 @@
#pkgver = 2.4.3-$(shell expr $(rel_ext) + 0)
#pkgver = 2.4.3-3ubuntu1
+include /usr/share/dpkg/architecture.mk
+
PYVERS = $(shell pyversions -vs)
+export PYTHONPATH:=/usr/lib/python2.7/plat-$(DEB_HOST_MULTIARCH)$(if
$(PYTHONPATH),:$(PYTHONPATH))
p_tk = python-tk
p_gdbm = python-gdbm
--- End Message ---
--- Begin Message ---
Source: python-stdlib-extensions
Source-Version: 2.7.16~rc1-1
We believe that the bug you reported is fixed in the latest version of
python-stdlib-extensions, which is due to be installed in the Debian FTP
archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Matthias Klose <[email protected]> (supplier of updated python-stdlib-extensions
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Format: 1.8
Date: Fri, 22 Feb 2019 16:52:18 +0100
Source: python-stdlib-extensions
Architecture: source
Version: 2.7.16~rc1-1
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Closes: 913417
Changes:
python-stdlib-extensions (2.7.16~rc1-1) unstable; urgency=medium
.
* Python 2.7.16 release candidate.
* Bump standards version.
* Fix FTCBFS (Helmut Grohne). Closes: #913417.
+ Multiarchify Build-Depends.
+ Set up PYTHONPATH for cross compilation.
+ cross.patch: Don't import built modules.
Checksums-Sha1:
ff85127081dd8f417c1414b5bf568742a8d5bb7c 2373
python-stdlib-extensions_2.7.16~rc1-1.dsc
8d3fffb7bf16703d0c97cbbe7a1c81b4d2250e24 40656
python-stdlib-extensions_2.7.16~rc1.orig.tar.xz
ea054e92ebf1d21811afb5d3fa8b9c1e1f3f286f 8400
python-stdlib-extensions_2.7.16~rc1-1.debian.tar.xz
da0eaab181a4b4ed77241501519da6c92a166b83 8438
python-stdlib-extensions_2.7.16~rc1-1_source.buildinfo
Checksums-Sha256:
600cc79cd712dd9fcebc85550c788a873969c210c871dfde56269394bbd2e3f0 2373
python-stdlib-extensions_2.7.16~rc1-1.dsc
6ed07212dc285170a99314467fe18b94f6ef021f83d983a8698924f9dc1a02f7 40656
python-stdlib-extensions_2.7.16~rc1.orig.tar.xz
0e0714f293667051711190613ac3873a3e976bcf78e4600a0648bc5cf03ac364 8400
python-stdlib-extensions_2.7.16~rc1-1.debian.tar.xz
3218973f6acc0d1eabf417c9845de5067239fe2b38d3ac097b63e2b52e7d7881 8438
python-stdlib-extensions_2.7.16~rc1-1_source.buildinfo
Files:
b3c2adb6e9b6fc89f97955809b2ece41 2373 python optional
python-stdlib-extensions_2.7.16~rc1-1.dsc
33b77195c4f045b3eac13cfc58de143d 40656 python optional
python-stdlib-extensions_2.7.16~rc1.orig.tar.xz
dbb420de16528aa203ab483561e39f0d 8400 python optional
python-stdlib-extensions_2.7.16~rc1-1.debian.tar.xz
2b280e82cda96ce35073d9a83c0aa669 8438 python optional
python-stdlib-extensions_2.7.16~rc1-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----
iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAlxwGsMQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9XI6D/0RVxi9b1nly0dOr8jKSBOA663CGU53aLRL
Ah1h+WC7CP6YKRm1ogMv+AetBlclzU2c3I6M65Z/2fREc/rjYN94ZJMwr2FDZ6f5
UJIlkj+D5j5maKqWdlF/2a6A7d2cyshwzFQtsh6EZAwLaJ2hASe23h4SbNMFqwQf
sDXuwIyqVjsEwv3BkC/RBz7cyQ7ld/DgiyQvfQ+7fkUKPXF8h1h3K/uT/zU5Tefz
0w/jKpSzhgOB+F08uLarLddPMCCzCTkECDMylvg8WSYjF1XfsZzd6NHDGqPYdf7M
TgXAjp55vKs4DkcjZlBNonSvGoOUhqzMHpmV00FtcRuUvFdHULH5acHFBAaueVdc
B23a3zLtp899WgyCjWmz9SafI38Vteeo2aIGdiPIi5ZQmj6UTyhBM7DLb+VWYXw7
8g4eS/8vxrsqAdiW8P7wgzvXmowCPIDjhk0bd5tgV7T8QMYHteCEtpE1wxLTMet5
pfFmFSEAVTIMVrjnGOS2qFi5zA2fw9CIV6/VUo+iSRJhFWsO0sy9h/5TAzqsJ+JI
4fgCxNSaosKTsBsyAdTfKCuyDLLff3eLkeOs+31S6LcmTfOR1vIWuK06iDlz6C9D
Tg0rjn8ug8LAyKvZlEcbXe2bhOwkuJkXjRT5CCCLbixmUbXzVT0mdIPpMs0I8QB2
fvQwIwCy/g==
=JvPD
-----END PGP SIGNATURE-----
--- End Message ---