[Build-common-hackers] Bug#373997: python-distutils.mk: ignores information about minor supported python version

Gustavo Noronha Silva kov at debian.org
Fri Jun 16 17:38:15 UTC 2006


Package: cdbs
Version: 0.4.41
Severity: important

Hello,

The current python-distutils.mk does this:

    # Calculate cdbs_python_build_versions
    cdbs_python_module_arch = $(strip $(shell perl -e '$$/=""; $$_=(grep {/^Package: $(DEB_PYTHON_MODULE_PACKAGE)$$/m;} (<>))[0]; /^Architecture: (.*)$$/m && print $$1' debian/control))
    ifeq (all, $(cdbs_python_module_arch))
    cdbs_python_current_version := $(strip $(patsubst python%, %, $(shell pyversions -d)))
    cdbs_python_build_versions := $(cdbs_python_current_version)
    else
    cdbs_python_build_versions := $(strip $(patsubst python%, %, $(shell pyversions -r debian/control | grep -E "^python[0-9.]+( python[0-9.]+)*$$")))
    endif

This means the information filled in the XS-Python-Version field is
only being used when the package is not Arch: all. This is wrong, for
there are python-only modules which will only work on Python 2.4 and
above, for example.

Maybe using the first version returned by pyversions -r debian/control
for the first case will do it.

Thanks,

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16-2-686
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)

cdbs depends on no packages.

Versions of packages cdbs recommends:
ii  autotools-dev                 20060223.1 Update infrastructure for config.{
ii  debhelper                     5.0.37.1   helper programs for debian/rules

-- no debconf information




More information about the Build-common-hackers mailing list