Control: tags -1 patch

On Thu, Sep 03, 2026 at 06:34:41PM +0200, Aurelien Jarno wrote:
> Source: debugpy
> Version: 1.8.20+ds-2
> Severity: serious
> 
> On 2026-09-03 00:12, Debian FTP Masters wrote:
> > 
> > python3-debugpy_1.8.20+ds-2_loong64.deb: Built-Using refers to non-existing 
> > source package pydevd (= 3.5.0+ds-2+b1)
> > 
> > 
> > Mapping sid to unstable.
> > 
> 
> The Built-Using should use the source version, not the binary one.

The patch below uses dh-builtusing instead of doing it manually.

cu
Adrian

--- debugpy-1.8.20+ds/debian/control    2026-09-03 01:38:14.000000000 +0300
+++ debugpy-1.8.20+ds/debian/control    2026-09-03 01:39:09.000000000 +0300
@@ -4,6 +4,7 @@
 Uploaders: Julian Gilbey <[email protected]>
 Build-Depends: debhelper-compat (= 13),
                dh-python,
+               dh-sequence-builtusing,
                dh-sequence-python3,
                dpkg-build-api (= 1),
                gdb <!nocheck>,
@@ -33,7 +34,7 @@
          ${misc:Depends},
          ${python3:Depends},
          ${shlibs:Depends}
-Built-Using: ${debugpy:Built-Using}
+Built-Using: ${dh-builtusing:python3-pydevd}
 Multi-Arch: no
 Description: Implementation of the Debug Adapter Protocol for Python 3
  This package allows debugging of Python using Spyder and VS Code, among
diff -Nru debugpy-1.8.20+ds/debian/rules debugpy-1.8.20+ds/debian/rules
--- debugpy-1.8.20+ds/debian/rules      2026-09-03 01:37:08.000000000 +0300
+++ debugpy-1.8.20+ds/debian/rules      2026-09-03 01:39:09.000000000 +0300
@@ -42,7 +42,6 @@
 
 override_dh_python3:
        dh_python3 --no-ext-rename
-       echo "debugpy:Built-Using=pydevd (= $$(dpkg-query -f='$${Version}' -W 
python3-pydevd))" >> debian/python3-debugpy.substvars
 
 ifeq (,$(findstring nocheck,$(DEB_BUILD_OPTIONS)))
 override_dh_auto_test:

Reply via email to