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
13 Info: The package is not safely binNMUable because an arch:any package
14 depends on another arch:any package with a (= ${source:Version})
15 relationship. Please use (= ${binary:Version}) instead.
17 Tag: not-binnmuable-any-depends-all
19 Info: The package is not safely binNMUable because an arch:any package
20 depends on an arch:all package with a (= ${Source-Version}) or
21 (= ${binary:Version}) relationship. Please use (= ${source:Version})
24 Tag: not-binnmuable-all-depends-any
26 Info: The package is not safely binNMUable because an arch:all package
27 depends on an arch:any package with a strict (= ${Source-Version}), or
28 similar, relationship.
30 It is not possible for arch:all packages to depend so strictly on
31 arch:any packages while having the package binNMUable, so please use
32 one of these, whichever is more appropriate:
34 Depends: arch_any (>= ${source:Version})
35 Depends: arch_any (>= ${source:Version}),
36 arch_any (<< ${source:Version}.1~)
38 Tag: version-substvar-for-external-package
40 Info: The first package has a dependency on the second package that uses
41 (= ${binary:Version}), (= ${source:Version}), or (= ${Source-Version}),
42 but the second package is not built from this source package. Usually
43 this means there is a mistake in the package name in this dependency.
45 Tag: substvar-source-version-is-deprecated
47 Info: The package uses the now deprecated ${Source-Version} substvar,
48 which has misleading semantics. Please switch to ${binary:Version} or
49 ${source:Version} as appropriate. Support for ${Source-Version} may be
50 removed from dpkg-dev in the future.