Your message dated Wed, 21 Aug 2019 15:50:20 +0000
with message-id <[email protected]>
and subject line Bug#932077: fixed in python3.8 3.8.0~b3-1
has caused the Debian Bug report #932077,
regarding python3.8 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.)


-- 
932077: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=932077
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python3.8
Version: 3.8.0~b2-5
Tags: patch
User: [email protected]
Usertags: ftcbfs

python3.8 fails to cross build from source.

The initial failure comes from ./configure which insists that we have a
python3.8 (not any earlier python). A dependency on python3.8:any
<cross> can fix that.

The next failure comes from dtrace as it fails finding sdt headers using
the build architecture compiler. For it to work, CC must be exported.
This could be considered a fault of dtrace. However, exporting CC for
the whole build fixes this aspect.

Some import tests are not conditionalized to DEB_BUILD_OPTIONS=nocheck
and fail.

Finally sysconfigdata-name.diff fails to update one cross
compilation-specific occasion in configure.ac. As a consequence, the
original name is used and the intended file is not created.

After fixing all of these, python3.8 cross builds successfully. Please
consider applying the attached patch.

Helmut
diff --minimal -Nru python3.8-3.8.0~b2/debian/changelog 
python3.8-3.8.0~b2/debian/changelog
--- python3.8-3.8.0~b2/debian/changelog 2019-07-11 11:55:03.000000000 +0200
+++ python3.8-3.8.0~b2/debian/changelog 2019-07-14 12:07:34.000000000 +0200
@@ -1,3 +1,14 @@
+python3.8 (3.8.0~b2-5.1) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix FTCBFS: (Closes: #-1)
+    + Build-Depends, when cross compiling we need python3.8.
+    + Export CC, because dtrace needs it.
+    + Honour DEB_BUILD_OPTIONS=nocheck more thoroughly.
+    + Fix up sysconfigdata-name.diff.
+
+ -- Helmut Grohne <[email protected]>  Sun, 14 Jul 2019 12:07:34 +0200
+
 python3.8 (3.8.0~b2-5) unstable; urgency=high
 
   * Bump standards version.
diff --minimal -Nru python3.8-3.8.0~b2/debian/control 
python3.8-3.8.0~b2/debian/control
--- python3.8-3.8.0~b2/debian/control   2019-07-11 11:55:03.000000000 +0200
+++ python3.8-3.8.0~b2/debian/control   2019-07-14 12:07:34.000000000 +0200
@@ -14,7 +14,7 @@
   locales-all,
   libsqlite3-dev, libffi-dev (>= 3.0.5) [!or1k !avr32],
   libgpm2 [linux-any],
-  mime-support, netbase, bzip2, time, python3:any,
+  mime-support, netbase, bzip2, time, python3:any, python3.8:any <cross>,
   net-tools, xvfb <!nocheck>, xauth <!nocheck>,
   systemtap-sdt-dev
 Build-Depends-Indep: python3-sphinx, python3-docs-theme, texinfo
diff --minimal -Nru python3.8-3.8.0~b2/debian/patches/sysconfigdata-name.diff 
python3.8-3.8.0~b2/debian/patches/sysconfigdata-name.diff
--- python3.8-3.8.0~b2/debian/patches/sysconfigdata-name.diff   2019-07-11 
11:55:03.000000000 +0200
+++ python3.8-3.8.0~b2/debian/patches/sysconfigdata-name.diff   2019-07-14 
12:07:34.000000000 +0200
@@ -50,3 +50,14 @@
          multiarch=getattr(sys.implementation, '_multiarch', ''),
      ))
      _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
+--- python3.8-3.8.0~b2.orig/configure.ac
++++ python3.8-3.8.0~b2/configure.ac
+@@ -75,7 +75,7 @@
+           AC_MSG_ERROR([python$PACKAGE_VERSION interpreter not found])
+       fi
+         AC_MSG_RESULT($interp)
+-      PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) 
_PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f 
pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib 
_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MACHDEP)_$(MULTIARCH) 
'$interp
++      PYTHON_FOR_BUILD='_PYTHON_PROJECT_BASE=$(abs_builddir) 
_PYTHON_HOST_PLATFORM=$(_PYTHON_HOST_PLATFORM) PYTHONPATH=$(shell test -f 
pybuilddir.txt && echo $(abs_builddir)/`cat pybuilddir.txt`:)$(srcdir)/Lib 
_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_$(ABIFLAGS)_$(MULTIARCH) '$interp
+     fi
+ elif test "$cross_compiling" = maybe; then
+     AC_MSG_ERROR([Cross compiling required --host=HOST-TUPLE and 
--build=ARCH])
diff --minimal -Nru python3.8-3.8.0~b2/debian/rules 
python3.8-3.8.0~b2/debian/rules
--- python3.8-3.8.0~b2/debian/rules     2019-07-11 11:55:03.000000000 +0200
+++ python3.8-3.8.0~b2/debian/rules     2019-07-14 12:07:34.000000000 +0200
@@ -153,6 +153,9 @@
 AR=$(DEB_HOST_GNU_TYPE)-ar
 RANLIB=$(DEB_HOST_GNU_TYPE)-ranlib
 
+# configure and dtrace consume these
+export CC CXX
+
 DPKG_CPPFLAGS= $(shell $(dpkg_buildflags) --get CPPFLAGS)
 DPKG_CFLAGS  := $(shell $(dpkg_buildflags) --get CFLAGS)
 DPKG_CFLAGS  := $(subst 
-fstack-protector-strong,-fstack-protector,$(DPKG_CFLAGS))
@@ -313,8 +316,8 @@
                CONFIGURE_LDFLAGS="$(DPKG_LDFLAGS) $(LTO_CFLAGS)" \
                PROFILE_TASK='$(PROFILE_TASK)' $(make_build_target)
 
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
        : # check that things are correctly built
-ifeq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
   ifneq (,$(filter $(DEB_HOST_ARCH_OS), linux))
        cd $(buildd_static) && ./python -c 'from _multiprocessing import 
SemLock'
   endif
@@ -343,8 +346,10 @@
        $(MAKE) $(NJOBS) -C $(buildd_debug) \
                EXTRA_CFLAGS="$(DEBUG_CFLAGS)"
 
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
        cd $(buildd_static) && ./python -c 'import _decimal'
        cd $(buildd_debug) && ./python -c 'import math, cmath'
+endif
 
        touch stamps/stamp-build-debug
 
@@ -388,7 +393,7 @@
        rm -rf $(buildd_shared)
        mkdir -p $(buildd_shared)
        cd $(buildd_shared) && \
-         CC="$(CC)" CXX="$(CXX)" AR="$(AR)" RANLIB="$(RANLIB)" 
CFLAGS="$(OPT_CFLAGS)" \
+         AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(OPT_CFLAGS)" \
          CPPFLAGS="$(DPKG_CPPFLAGS)" LDFLAGS="$(DPKG_LDFLAGS) $(LTO_CFLAGS)" \
            $(config_site) \
            ../configure \
@@ -406,7 +411,7 @@
        rm -rf $(buildd_static)
        mkdir -p $(buildd_static)
        cd $(buildd_static) && \
-         CC="$(CC)" CXX="$(CXX)" AR="$(AR)" RANLIB="$(RANLIB)" 
CFLAGS="$(OPT_CFLAGS)" \
+         AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(OPT_CFLAGS)" \
          CPPFLAGS="$(DPKG_CPPFLAGS)" LDFLAGS="$(DPKG_LDFLAGS) $(LTO_CFLAGS)" \
            $(config_site) \
            ../configure \
@@ -419,7 +424,7 @@
        rm -rf $(buildd_debug)
        mkdir -p $(buildd_debug)
        cd $(buildd_debug) && \
-         CC="$(CC)" CXX="$(CXX)" AR="$(AR)" RANLIB="$(RANLIB)" 
CFLAGS="$(DEBUG_CFLAGS)" \
+         AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(DEBUG_CFLAGS)" \
          CPPFLAGS="$(DPKG_CPPFLAGS)" LDFLAGS="$(DPKG_LDFLAGS)" \
            $(config_site) \
            ../configure \
@@ -433,7 +438,7 @@
        rm -rf $(buildd_shdebug)
        mkdir -p $(buildd_shdebug)
        cd $(buildd_shdebug) && \
-         CC="$(CC)" CXX="$(CXX)" AR="$(AR)" RANLIB="$(RANLIB)" 
CFLAGS="$(DEBUG_CFLAGS)" \
+         AR="$(AR)" RANLIB="$(RANLIB)" CFLAGS="$(DEBUG_CFLAGS)" \
          CPPFLAGS="$(DPKG_CPPFLAGS)" LDFLAGS="$(DPKG_LDFLAGS)" \
            $(config_site) \
            ../configure \

--- End Message ---
--- Begin Message ---
Source: python3.8
Source-Version: 3.8.0~b3-1

We believe that the bug you reported is fixed in the latest version of
python3.8, 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 python3.8 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: Wed, 21 Aug 2019 17:32:52 +0200
Source: python3.8
Architecture: source
Version: 3.8.0~b3-1
Distribution: unstable
Urgency: medium
Maintainer: Matthias Klose <[email protected]>
Changed-By: Matthias Klose <[email protected]>
Closes: 931624 932077
Changes:
 python3.8 (3.8.0~b3-1) unstable; urgency=medium
 .
   * Python 3.8.0 beta 3 release.
   * Fix FTCBFS: (Helmut Grohne). Closes: #932077.
     + Build-Depends, when cross compiling we need python3.8.
     + Export CC, because dtrace needs it.
     + Honour DEB_BUILD_OPTIONS=nocheck more thoroughly.
     + Fix up sysconfigdata-name.diff.
   * Implement the native thread ids for the Hurd and KFreeBSD (Samuel
     Thibault). Closes: #931624.
   * Enable pgo/lto builds on arm64. Addresses: #934812.
   * Update symbols files.
   * Don't propagate lto flags to the _sysconfigdata module. Addresses: #934771.
   * d/patches/issue35998.diff: Disable TLS1.3 in the client on all platforms
     rather than just reducing the payload size (Michael Hudson-Doyle).
Checksums-Sha1:
 fe4cbefa5d6492e51b4869d4775cf4bda075d5b2 3461 python3.8_3.8.0~b3-1.dsc
 36029066cf7e6e70b1b145d702b1682127660ef2 17768608 
python3.8_3.8.0~b3.orig.tar.xz
 760ad9b27a544cfb0602d9253e79da1c33271e21 209580 
python3.8_3.8.0~b3-1.debian.tar.xz
 7edcaf6718c7d5bd6c6be8294b3e68332803c98d 10113 
python3.8_3.8.0~b3-1_source.buildinfo
Checksums-Sha256:
 ad1b9068d1d5381d79cab8d58a78b6146d3081802ecd285ec626820457edf444 3461 
python3.8_3.8.0~b3-1.dsc
 cd7a81efcc9f82e20f9d6a41fd6f9859ddc2a082dcbc3fa62932e53b6f41980f 17768608 
python3.8_3.8.0~b3.orig.tar.xz
 446208e294d2443283ce5c7b7372eef893c7e8650289d21db5af4caf5315048b 209580 
python3.8_3.8.0~b3-1.debian.tar.xz
 a294985d6de7580d601c02b95ee1be6883dce3c53d851118414d922c5e5ed710 10113 
python3.8_3.8.0~b3-1_source.buildinfo
Files:
 941f23837ebc80979890bfb137db4296 3461 python optional python3.8_3.8.0~b3-1.dsc
 19ce8bcfe90feb19e0883d37ca93ff04 17768608 python optional 
python3.8_3.8.0~b3.orig.tar.xz
 ca45d05d45ad15f05c619f1d90780549 209580 python optional 
python3.8_3.8.0~b3-1.debian.tar.xz
 54e618ccb359e00b0cab42e6388a2369 10113 python optional 
python3.8_3.8.0~b3-1_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE1WVxuIqLuvFAv2PWvX6qYHePpvUFAl1dZAoQHGRva29AZGVi
aWFuLm9yZwAKCRC9fqpgd4+m9UL9D/0RNFztTqdP6TmHfU9b4K/uBfry3cp8S9Jb
U8Jr0/5FQm0kcWU5ENJORKMVQ8/zuAHh9LIQQup2FNDa3wKIwefHOE4yUUgs5KTe
4SXmACRNfwoq2Bnbi+ptSbwLYADgn7VjnIGqfsw/QoiXIa9zxaFkL4MqzE2+bANs
J+f3n4DPjdbjnmN/GZnRmBvOwxgzf6einbQex9MN7zBtj8lS3J6lf/xNLAMxeULX
204WXnLAXKf+R6NI5eZmsry2uHXJQ+XD7FW6lDvdRlg264eoyZpbsg7wyXvNbdfC
i6pnaYbkUtqGEcRrRDbpLGR8Z3BQ7QL9waT+2ewSl1uN8rQuraCzmT7H8r0m9gAN
g6P5Oq07l+8oGqRV88nkLjsEcQDvDRr7S+OJ8EtO9D0xufDvdeYHgCjQ1lWbO7uq
FtUXGFL2NQLUuLyazoYBUWWbgx7nvGqZfHR/zInE6pH2rBinPpCXNM2mhWNB4AV7
zHsJP4P6zHw77z3r9hINA6pTjVqRh+dtWxlWxrtBJMQxdizEJck285V5kalNxVbv
IMAFqvtZq1lSSJhwVWhxmzQPiFGOaawYHqLp6GZwPQLPiseo2OMnxtzY+JAceAiC
s56hmGklg+A/I34BonBw+YZu3l7tbzR7sV57nIARYGmdeO1C2Z/7y//xWprW2R0Z
p6nE6Yl4QQ==
=0gWO
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to