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

Bug#606217: marked as done (Subject: cdbs: Python cross building not supported)



Your message dated Sun, 31 Aug 2025 11:04:05 +0000
with message-id <E1usfqv-0007LR-0v@fasolo.debian.org>
and subject line Bug#606217: fixed in cdbs 0.4.176
has caused the Debian Bug report #606217,
regarding Subject: cdbs: Python cross building not supported
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 owner@bugs.debian.org
immediately.)


-- 
606217: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=606217
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Subject: cdbs: Python cross building not supported
Package: cdbs
Version: 0.4.83ubuntu2
Severity: wishlist

When python is called to build C/C++ extensions whilst cross building a
package,  it needs to be set up to use the cross toolchain, rather than the
default build host toolchain.

The patch below indicates how this might be done by adding an environment
variable to be set in the Makefile.

---
--- /usr/share/cdbs/1/class/python-sugar.mk     2010-09-03
09:39:47.000000000 +0100
+++ 1/class/python-sugar.mk     2010-11-24 09:01:08.000000000 +0000
@@ -67,11 +67,16 @@ pre-build clean::
 pre-build::
        mkdir -p debian/stamps-configure

+# LINARO_PYTHON_SET_ENV, defined in /usr/share/cdbs/1/class/python-
distutils.mk,
+# allows e.g. cross tools to be set for use during setup.py
 $(patsubst %,build/%,$(DEB_PYTHON_SUGAR_PACKAGES)) :: build/%:
        [ ! -e $(cdbs_cursrcdir)/MANIFEST ] || [ -e
$(cdbs_cursrcdir)/MANIFEST.upstream ] || mv $(cdbs_cursrcdir)/MANIFEST
$(cdbs_cursrcdir)/MANIFEST.upstream
        [ ! -e $(cdbs_cursrcdir)/MANIFEST.upstream ] || egrep -v
'^locale/.*/(.*\.mo|activity\.linfo)$$' $(cdbs_cursrcdir)/MANIFEST.upstream >
$(cdbs_cursrcdir)/MANIFEST
+       @echo "$@ in modified /usr/share/cdbs/1/class/python-sugar.mk"
        set -e; for buildver in $(cdbs_python_build_versions); do \
+               $(LINARO_PYTHON_SET_ENV);\
                $(call cdbs_python_binary,python$$buildver)
$(cdbs_cursrcdir)/setup.py build; \
+               touch /home/chroot-user/python_run ;\
        done
        [ ! -e $(cdbs_cursrcdir)/MANIFEST.upstream ] || IFS="`printf '\n'`"
find "$(cdbs_cursrcdir)/locale" -type f \( -name '*.mo' -or -name
'activity.linfo' \) | while read path; do \
                echo "$$path" | sed 's!^$(cdbs_cursrcdir)/!!' >>
$(cdbs_cursrcdir)/MANIFEST; \
--- /usr/share/cdbs/1/class/python-distutils.mk 2010-09-03
09:39:47.000000000 +0100
+++ 1/class/python-distutils.mk 2010-11-24 09:11:51.000000000 +0000
@@ -61,13 +61,30 @@ common-build-arch common-build-indep:: $

 $(patsubst %,build/%,$(cdbs_python_indep_packages)
$(cdbs_python_arch_packages)) :: build/% : debian/python-module-stampdir/%

+# These are the tool defaults used during setup.py
+LINARO_PYTHON_SET_ENV =                 \
+  export CC=gcc                                ;\
+  export CXX=g++                       ;\
+  export LDSHARED='gcc -shared'                ;\
+  export CPP=cpp                       ;\
+  export LDFLAGS='-L /usr/lib -L /lib' ;\
+  export BASECFLAGS=-DBASECFLAGS       ;\
+  export OPT=-DOPT                     ;\
+  export CFLAGS='-I/usr/include -I/include';\
+  export CPPFLAGS=-DCPPFLAGS
+
 $(patsubst %,debian/python-module-stampdir/%,$(cdbs_python_indep_packages)) ::
debian/python-module-stampdir/%:
-       cd $(DEB_SRCDIR) && python$(cdbs_python_nondefault_version)
$(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
+       @echo "$@ in modified /usr/share/cdbs/1/class/python-distutils.mk"
+       $(LINARO_PYTHON_SET_ENV) && \
+               cd $(DEB_SRCDIR) && python$(cdbs_python_nondefault_version)
$(DEB_PYTHON_SETUP_CMD) build $(DEB_PYTHON_BUILD_ARGS)
        touch $@

 $(patsubst %,debian/python-module-stampdir/%,$(cdbs_python_arch_packages)) ::
debian/python-module-stampdir/%:
+       @echo "$@ in modified /usr/share/cdbs/1/class/python-distutils.mk"
        set -e; for buildver in $(cdbs_python_build_versions); do \
-               cd $(CURDIR) && cd $(DEB_SRCDIR) && $(call
cdbs_python_binary,python$$buildver) $(DEB_PYTHON_SETUP_CMD) build
$(DEB_PYTHON_BUILD_ARGS); \
+               $(LINARO_PYTHON_SET_ENV) && \
+                       cd $(CURDIR) && cd $(DEB_SRCDIR) && $(call
cdbs_python_binary,python$$buildver) $(DEB_PYTHON_SETUP_CMD) \
+                               build $(DEB_PYTHON_BUILD_ARGS); \
        done
        touch $@

-------

-- System Information:
Debian Release: squeeze/sid
  APT prefers maverick-updates
  APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500,
'maverick-proposed'), (500, 'maverick-backports'), (500, 'maverick')
Architecture: i386 (i686)

Kernel: Linux 2.6.35-22-generic-pae (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cdbs depends on:
ii  debhelper                   8.0.0ubuntu1 helper programs for debian/rules
ii  fdupes                      1.50-PR2-3   identifies duplicate files within
ii  intltool                    0.41.1-1     Utility scripts for internationali

Versions of packages cdbs recommends:
ii  autotools-dev                 20100122.1 Update infrastructure for config.{

Versions of packages cdbs suggests:
ii  devscripts                2.10.67ubuntu1 scripts to make the life of a Debi
ii  doc-base                  0.9.5          utilities to manage online documen



--- End Message ---
--- Begin Message ---
Source: cdbs
Source-Version: 0.4.176
Done: Alexandre Detiste <tchet@debian.org>

We believe that the bug you reported is fixed in the latest version of
cdbs, 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 606217@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexandre Detiste <tchet@debian.org> (supplier of updated cdbs 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sun, 31 Aug 2025 12:32:38 +0200
Source: cdbs
Architecture: source
Version: 0.4.176
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Alexandre Detiste <tchet@debian.org>
Closes: 430571 529284 565974 574791 587373 606217 606530 868752
Changes:
 cdbs (0.4.176) unstable; urgency=medium
 .
   * QA upload.
   * Remove python distutils support
     (Closes: #868752, #606530, #529284, #587373,
              #430571, #574791, #606217, #565974)
Checksums-Sha1:
 386b66757f09242dc8b966e3424aa1e43318297b 1914 cdbs_0.4.176.dsc
 0a77b812565043adeca9f34d0cccfd430cc965ef 176440 cdbs_0.4.176.tar.xz
 0915e8fe3ec408646485542473b1014abb6b0cff 315060 cdbs_0.4.176.git.tar.xz
 3c7bdafa7b682d91a265c442440bdfc3e5bc206e 18042 cdbs_0.4.176_source.buildinfo
Checksums-Sha256:
 a221307b5911916c615c45092cf1e1a57ea27c9d1ff04b4bab1a05428cd9d5ff 1914 cdbs_0.4.176.dsc
 d77dceac6b6a998bb7f9684e2bbeef10abfa5870f8fae4d6a4cc5e2e26e760ac 176440 cdbs_0.4.176.tar.xz
 1a53f91580bf4dddc9275d09fee71bc0646e42b6a96fea4fa56b8cbc58ead355 315060 cdbs_0.4.176.git.tar.xz
 0391563f7ef2975ee268006ed773687acafb74dbe4afab3a9c33b33b926240bd 18042 cdbs_0.4.176_source.buildinfo
Files:
 c4518a94f9627a2f1aa60f2cd6dc8366 1914 devel optional cdbs_0.4.176.dsc
 0c4acb896a6a633bcfa6d5a050507f2c 176440 devel optional cdbs_0.4.176.tar.xz
 ac3d5408c03a678a2ad6b2d6e72fa3e3 315060 devel optional cdbs_0.4.176.git.tar.xz
 2db8edf1cabfa66aff39c8eca26a02c7 18042 devel optional cdbs_0.4.176_source.buildinfo
Git-Tag-Info: tag=98d521041de686dd4277a34ab204481f7e108f12 fp=8f6de104377f3b11e741748731f3144544a1741a
Git-Tag-Tagger: Alexandre Detiste <tchet@debian.org>

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

iQIzBAEBCgAdFiEEN02M5NuW6cvUwJcqYG0ITkaDwHkFAmi0KG4ACgkQYG0ITkaD
wHlkFQ//R16V5LIbG4q/zd66DZpMSBJ/zu0HOUadSgxWYDgBXkeLPt21pAhDECmJ
IWtSi0rwP3sX9hOG7aE0Ba94o6l2tyaz3hJqD2y2P0b2ZYUr4o3l1jNOnxW0ms5x
Wj8uZ6sXfIDp/znFr+iqX2Uw1ydiNfgRS+Kff2kzLFj3GCt/qQSAlwVXy+ploCXD
zaq6ToE5GKpsPVQkFLdX5/3lgGNtORJ3NNDXjtOHuoAmrnom1iQJ9OfTeu2DK9OC
jn3uQYKEL3U3GAVzNwthfZ2I18ckkrh8fwqBunZudx1dU1n/pq+iQD4TJUiFQ1hh
0QSOd7g9ibgqn7skQS2q7mGMT6nI3J2z4KNm+bNOPg4fDSONCCKRrj96fD/BVsju
jzYduvDxcrDjZS6/qHHrXgm6CYpIa9A55H+tjCLfYzOPkaRT4IJhxLmpCgAj8b8e
S8L+uBmKC3jGUkGP5u6aYMAf8xt0yZmZ59V+mHKGi6XRzVhsG8BAZWyiQPB3O8DG
A+6FtHF3XPD37fP11tE4Rugh++vnbyv0JyDgoK+nn6At+hrMc4aAeVWXlI1jMNDR
PyVYwehg89XwvBcTR1JlwbOeuUKiL//5Y6unG6vbH1J8gD+cEQ/Nx0c7QC/V1NaB
Ac4n+TqdYIW4IYFGMf2eoN9g1t7HmeqHd1qYohdJd+gyxu9793E=
=ZBoF
-----END PGP SIGNATURE-----

Attachment: pgp2zaKbhauJJ.pgp
Description: PGP signature


--- End Message ---

Reply to: