Public bug reported:

`python-virtualenv` ftbfs on noble due to an (outdated?) build
dependency which is unsatisfiable. This is the output I get on a clean
noble VM:

```
$ apt source python-virtualenv; cd python-virtualenv-20.25.0+ds; debuild
Reading package lists... Done
NOTICE: 'python-virtualenv' packaging is maintained in the 'Git' version 
control system at:
https://salsa.debian.org/python-team/packages/python-virtualenv.git
Please use:
git clone https://salsa.debian.org/python-team/packages/python-virtualenv.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 3,350 kB of source archives.
Get:1 http://archive.ubuntu.com/ubuntu noble/universe python-virtualenv 
20.25.0+ds-2 (dsc) [2,142 B]
Get:2 http://archive.ubuntu.com/ubuntu noble/universe python-virtualenv 
20.25.0+ds-2 (tar) [3,333 kB]
Get:3 http://archive.ubuntu.com/ubuntu noble/universe python-virtualenv 
20.25.0+ds-2 (diff) [15.1 kB]
Fetched 3,350 kB in 2s (1,579 kB/s)          
dpkg-source: info: extracting python-virtualenv in python-virtualenv-20.25.0+ds
dpkg-source: info: unpacking python-virtualenv_20.25.0+ds.orig.tar.xz
dpkg-source: info: unpacking python-virtualenv_20.25.0+ds-2.debian.tar.xz
dpkg-source: info: using patch list from debian/patches/series
dpkg-source: info: applying debian_wheel_location.patch
dpkg-source: info: applying debian_update_for_available_wheels.patch
dpkg-source: info: applying disable-periodic-update.patch
dpkg-source: info: applying wheel-package-error
 dpkg-buildpackage -us -uc -ui
dpkg-buildpackage: info: source package python-virtualenv
dpkg-buildpackage: info: source version 20.25.0+ds-2
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Stefano Rivera <[email protected]>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
dpkg-checkbuilddeps: error: Unmet build dependencies: debhelper-compat (= 13) 
dh-python pybuild-plugin-pyproject python3-all python3-distlib (>= 0.3.1) 
python3-distutils python3-filelock python3-importlib-metadata (>= 3.6) 
python3-pip-whl python3-platformdirs python3-hatchling (>= 1.11.1) 
python3-hatch-vcs (>= 0.3) python3-setuptools-whl python3-wheel-whl
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
debuild: fatal error at line 1184:
dpkg-buildpackage -us -uc -ui failed
```

If I try to install build dependencies I get:

```
$ sudo apt build-dep python-virtualenv
Reading package lists... Done
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 builddeps:python-virtualenv : Depends: python3-distutils but it is not 
installable
E: Unable to correct problems, you have held broken packages.
```

`apt` complains `python3-distutils` is not installable. Furthermore:

```
$ sudo apt install python3-distutils
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Package python3-distutils is not available, but is referred to by another 
package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'python3-distutils' has no installation candidate
```

This is the diff for `debian/control` from the package on noble and
oracular (the package build fine on oracular):

```
diff --git a/noble/python-virtualenv-20.25.0+ds/debian/control 
b/oracular/python-virtualenv-20.26.2+ds/debian/control
index 01a07f2..c72b91c 100644
--- a/noble/python-virtualenv-20.25.0+ds/debian/control
+++ b/oracular/python-virtualenv-20.26.2+ds/debian/control
@@ -4,7 +4,6 @@ Priority: optional
 Maintainer: Debian Python Team <[email protected]>
 Uploaders: Carl Chenet <[email protected]>,
            Stefano Rivera <[email protected]>,
-           Scott Kitterman <[email protected]>,
 Homepage: https://virtualenv.pypa.io/
 Vcs-Git: https://salsa.debian.org/python-team/packages/python-virtualenv.git
 Vcs-Browser: https://salsa.debian.org/python-team/packages/python-virtualenv
@@ -15,7 +14,6 @@ Build-Depends: debhelper-compat (= 13),
                unzip <!nocheck>,
                zip <!nocheck>,
 Build-Depends-Indep: python3-distlib (>= 0.3.1) <!nocheck>,
-                     python3-distutils <!nocheck>,
                      python3-filelock <!nocheck>,
                      python3-importlib-metadata (>= 3.6) <!nocheck>,
                      python3-pip-whl <!nocheck>,
@@ -31,11 +29,10 @@ Package: python3-virtualenv
 Architecture: all
 Depends: python3-pip-whl,
          python3-setuptools-whl,
-         python3-setuptools-whl (>= 60) | python3-distutils,
          python3-wheel-whl,
          ${misc:Depends},
          ${python3:Depends},
-Recommends: build-essential, ca-certificates, python3-dev, python3-distutils
+Recommends: build-essential, ca-certificates, python3-dev
 Breaks: virtualenv (<< 20.0.10)
 Replaces: virtualenv (<< 20.0.10)
 Description: Python virtual environment creator
```

After removing references to the deprecated `python3-distutils` package,
it seems to build just fine.

** Affects: python-virtualenv (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2098666

Title:
  python-virtualenv ftbfs due to package without installation candidate

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-virtualenv/+bug/2098666/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to