On Sun, Jul 30, 2023 at 08:22:59PM +0200, Lucas Nussbaum wrote:
> Source: dh-virtualenv
> Version: 1.2.2-1.3
> Severity: important
> Tags: ftbfs
> User: python-modules-t...@lists.alioth.debian.org
> Usertags: sphinx7.1
> 
> Hi,
> 
> dh-virtualenv fails to build with Sphinx 7.1 and docutils 0.20, both of which
> are currently available in experimental.
> 
> Relevant part (hopefully):
> > make[1]: Entering directory '/<<PKGBUILDDIR>>'
> > python3 setup.py build_sphinx
> > usage: setup.py [global_opts] cmd1 [cmd1_opts] [cmd2 [cmd2_opts] ...]
> >    or: setup.py --help [cmd1 cmd2 ...]
> >    or: setup.py --help-commands
> >    or: setup.py cmd --help
> > 
> > error: invalid command 'build_sphinx'
> > make[1]: *** [debian/rules:28: override_dh_installdocs] Error 1

This bug resulted in dh-virtualenv being dropped from trixie.

The easy workaround is to drop the sphinx documentation.

The following debdiff makes the package build again:

dpkg-source: warning: extracting unsigned source package 
(/home/uwe/debsrc/dh-virtualenv_1.2.2-1.4.dsc)
diff -Nru dh-virtualenv-1.2.2/debian/changelog 
dh-virtualenv-1.2.2/debian/changelog
--- dh-virtualenv-1.2.2/debian/changelog        2023-02-02 20:10:21.000000000 
+0100
+++ dh-virtualenv-1.2.2/debian/changelog        2023-11-17 19:40:18.000000000 
+0100
@@ -1,3 +1,10 @@
+dh-virtualenv (1.2.2-1.4) UNRELEASED; urgency=medium
+
+  * Non-maintainer upload.
+  * Drop Sphinx docs (Closes: #1042646)
+
+ -- Uwe Kleine-König <uklei...@debian.org>  Fri, 17 Nov 2023 19:40:18 +0100
+
 dh-virtualenv (1.2.2-1.3) unstable; urgency=medium
 
   * Non-maintainer upload.
diff -Nru dh-virtualenv-1.2.2/debian/control dh-virtualenv-1.2.2/debian/control
--- dh-virtualenv-1.2.2/debian/control  2022-08-25 21:00:57.000000000 +0200
+++ dh-virtualenv-1.2.2/debian/control  2023-11-17 19:40:18.000000000 +0100
@@ -3,25 +3,16 @@
 Priority: optional
 Maintainer: Jyrki Pulliainen <jy...@dywypi.org>
 Build-Depends: debhelper-compat (= 12), python3,
- python3-setuptools, python3-sphinx, python3-mock, dh-exec,
+ python3-setuptools, python3-mock, dh-exec,
  dh-python, libjs-jquery, libjs-underscore,
-# python-sphinx-rtd-theme doesn't exist in distributions
-# predating Debian Jessie and Ubuntu Xenial. On these legacy
-# systems:
-# 1. Comment the dependency below.
-# 2. pip install sphinx_rtd_theme.
-# 3. Proceed with your build process (typically dpkg-build).
-# See https://github.com/spotify/dh-virtualenv/issues/230
- python3-sphinx-rtd-theme
 Standards-Version: 4.5.0
 Homepage: https://www.github.com/spotify/dh-virtualenv
 Rules-Requires-Root: no
 
 Package: dh-virtualenv
 Architecture: all
-Depends: ${python3:Depends}, ${perl:Depends}, ${misc:Depends}, 
${sphinxdoc:Depends},
+Depends: ${python3:Depends}, ${perl:Depends}, ${misc:Depends},
  virtualenv | python3-virtualenv (>= 1.7) | python${pyversion}-venv
-Built-Using: ${sphinxdoc:Built-Using}
 Description: wrap and build Python packages using virtualenv
  This package provides a dh sequencer that helps you to deploy your
  virtualenv wrapped installation inside a Debian package.
diff -Nru dh-virtualenv-1.2.2/debian/rules dh-virtualenv-1.2.2/debian/rules
--- dh-virtualenv-1.2.2/debian/rules    2022-08-25 21:00:57.000000000 +0200
+++ dh-virtualenv-1.2.2/debian/rules    2023-11-17 19:39:38.000000000 +0100
@@ -22,9 +22,3 @@
 
 override_dh_gencontrol:
        dh_gencontrol -- -Vpyversion=$(PYTHON_VERSION)
-
-ifeq (,$(findstring nodoc, $(DEB_BUILD_OPTIONS)))
-override_dh_installdocs:
-       python3 setup.py build_sphinx
-       dh_installdocs doc/_build/html
-endif

I intend to nmu this package in a week from now with the above changes.

Best regards
Uwe

Attachment: signature.asc
Description: PGP signature

Reply via email to