1 Check-Script: version-substvars
2 Author: Adeodato Simó <dato@net.com.org.es>
6 Needs-Info: debfiles, source-control-file
7 Info: This script checks for correct use of the various *Version
8 substvars, e.g. deprecated substvars, or usage that can cause
11 Tag: not-binnmuable-any-depends-any
14 Info: The package is not safely binNMUable because an arch:any package
15 depends on another arch:any package with a (= ${source:Version})
16 relationship. Please use (= ${binary:Version}) instead.
18 Tag: not-binnmuable-any-depends-all
21 Info: The package is not safely binNMUable because an arch:any package
22 depends on an arch:all package with a (= ${Source-Version}) or
23 (= ${binary:Version}) relationship. Please use (= ${source:Version})
26 Tag: not-binnmuable-all-depends-any
29 Info: The package is not safely binNMUable because an arch:all package
30 depends on an arch:any package with a strict (= ${Source-Version}), or
31 similar, relationship.
33 It is not possible for arch:all packages to depend so strictly on
34 arch:any packages while having the package binNMUable, so please use
35 one of these, whichever is more appropriate:
37 Depends: arch_any (>= ${source:Version})
38 Depends: arch_any (>= ${source:Version}),
39 arch_any (<< ${source:Version}.1~)
41 Tag: version-substvar-for-external-package
44 Info: The first package has a dependency on the second package that uses
45 (= ${binary:Version}), (= ${source:Version}), or (= ${Source-Version}),
46 but the second package is not built from this source package. Usually
47 this means there is a mistake in the package name in this dependency.
49 Tag: substvar-source-version-is-deprecated
52 Info: The package uses the now deprecated ${Source-Version} substvar,
53 which has misleading semantics. Please switch to ${binary:Version} or
54 ${source:Version} as appropriate (introduced in dpkg 1.13.19, released
55 with etch). Support for ${Source-Version} may be removed from dpkg-dev