• Bug#1104696: dh-virtualenv: passes invalid options to builtin venv

    From =?utf-8?q?Ferenc_W=C3=A1gner?=@21:1/5 to All on Sun May 4 20:50:01 2025
    Source: dh-virtualenv
    Version: 1.2.2-1.6
    Severity: normal
    Tags: patch upstream
    Forwarded: https://github.com/spotify/dh-virtualenv/pull/311

    Dear Maintainer,

    dh-virtualenv passes its --setuptools and --verbose options to the builtin
    venv module, which does not recognize these (only the virtualenv binary
    does). See:

    # apt install dh-virtualenv python3-venv
    # mkdir debian
    # printf 'Source: foo\n\nPackage: foo\n' >debian/control
    # dh_virtualenv --python=python3 --builtin-venv --verbose
    [...]
    venv: error: unrecognized arguments: --verbose

    These options should not be passed along, and the respective fix has
    already been merged upstream, just not released. Please cherry pick
    the patch.
    --
    Thanks,
    Feri.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Ferenc Wagner@21:1/5 to All on Sun May 4 21:40:02 2025
    Dear maintainer,

    I've prepared an NMU for dh-virtualenv (versioned as 1.2.2-1.7). The diff
    is attached to this message.

    Regards.

    diff -Nru dh-virtualenv-1.2.2/debian/changelog dh-virtualenv-1.2.2/debian/changelog
    --- dh-virtualenv-1.2.2/debian/changelog 2024-07-14 16:57:26.000000000 +0200
    +++ dh-virtualenv-1.2.2/debian/changelog 2025-05-04 20:04:57.000000000 +0200
    @@ -1,3 +1,10 @@
    +dh-virtualenv (1.2.2-1.7) unstable; urgency=medium
    +
    + * Non-maintainer upload.
    + * Cherry-pick upstream patch fixing venv options (Closes: #1104696)
    +
    + -- Ferenc Wágner <wferi@debian.org> Sun, 04 May 2025 20:04:57 +0200
    +
    dh-virtualenv (1.2.2-1.6) unstable; urgency=medium

    * Non-maintainer upload
    diff -Nru dh-virtualenv-1.2.2/debian/patches/0002-fix-virtualenv-options.patch dh-virtualenv-1.2.2/debian/patches/0002-fix-virtualenv-options.patch
    --- dh-virtualenv-1.2.2/debian/patches/0002-fix-virtualenv-options.patch 1970-01-01 01:00:00.000000000 +0100
    +++ dh-virtualenv-1.2.2/debian/patches/0002-fix-virtualenv-options.patch 2025-05-04 20:04:29.000000000 +0200
    @@ -0,0 +1,168 @@
    +From 02dbaa46ef2c75c5863628cc8f77d37a18d2c051 Mon Sep 17 00:00:00 2001
    +From: =?UTF-8?q?Arnold=20Cz=C3=A9m=C3=A1n?= <arnold.czeman@balabit.co