Source: vm
Version: 8.2.0b-7
Severity: important
Justification: Policy ยง7.7
Tags: patch

Policy says the Build-Depends of a package need to be sufficient to run
`debian/rules clean`, but this is not the case for vm, resulting in
`dpkg-buildpackage -S` failing when run in a minimal environment.

debhelper and its addons usually need to be in Build-Depends, even if the
package only builds one architecture category (arch-dep or arch-indep) of
binary packages.

    smcv
>From 4a60d3701bd576b9275e37639b50013f25079f60 Mon Sep 17 00:00:00 2001
From: Simon McVittie <[email protected]>
Date: Mon, 23 Aug 2021 11:35:11 +0100
Subject: [PATCH] d/control: Move debhelper and its autotools addon to
 Build-Depends

Build-Depends-Indep are not guaranteed to be installed when running
`debian/rules clean`, even for a source package that only builds
architecture-independent binary packages. Moving the tools required
during clean to Build-Depends allows `dpkg-buildpackage -S` to succeed
in an environment with only the Build-Depends.

Signed-off-by: Simon McVittie <[email protected]>
---
 debian/control | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 5d12440..62b812a 100644
--- a/debian/control
+++ b/debian/control
@@ -4,8 +4,8 @@ Homepage: https://launchpad.net/vm
 Priority: optional
 Maintainer: Ian Jackson <[email protected]>
 Standards-Version: 3.9.6
-Build-Depends-Indep: debhelper (>= 9.0.0), autotools-dev,
- emacs-nox | emacs25-nox | emacs25 | emacs24,
+Build-Depends: debhelper (>= 9.0.0), autotools-dev
+Build-Depends-Indep: emacs-nox | emacs25-nox | emacs25 | emacs24,
  texinfo, texlive-latex-base, texlive-fonts-recommended
 
 Package: vm
-- 
2.33.0

Reply via email to