From 9fc997615eb4ad4abe03a94e4aac886c5756ada0 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Wed, 4 Jul 2007 08:44:10 +0000 Subject: [PATCH] Recommend ${binary:Version} instead of ${Source-Version} ${Source-Version} was confusing (since it actually is replaced with the binary package version in, for example, binNMUs) and has been deprecated in dpkg. ${binary:Version} should be used instead. Update Policy's recommendation accordingly. git-archimport-id: rra@debian.org--lenny/debian-policy--devel--3.7--patch-5 --- debian/changelog | 4 +++- policy.sgml | 6 +++++- upgrading-checklist.html | 3 +++ 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/debian/changelog b/debian/changelog index 020d359..ade3d35 100644 --- a/debian/changelog +++ b/debian/changelog @@ -9,7 +9,9 @@ debian-policy (3.7.3.0) UNRELEASED; urgency=low Allombert (Closes: #361418). * Bug fix: "typo: "must not be not world-writable"", thanks to Sam Hocevar (Closes: #392594). - + * Bug fix: "debian-policy: recommend binary:Version substvar instead", + thanks to Guillem Jover (Closes: #418444). + -- debian-policy (3.7.2.2) unstable; urgency=low diff --git a/policy.sgml b/policy.sgml index 9e23bc0..4f2d47c 100644 --- a/policy.sgml +++ b/policy.sgml @@ -4719,8 +4719,12 @@ Replaces: mail-transport-agent Typically the development version should have an exact version dependency on the runtime library, to make sure that compilation and linking happens correctly. The - ${Source-Version} substitution variable can be + ${binary:Version} substitution variable can be useful for this purpose. + + Previously, ${Source-Version} was used, but its name + was confusing and it has been deprecated since dpkg 1.13.19. +

diff --git a/upgrading-checklist.html b/upgrading-checklist.html index 9d25824..f3bf0af 100644 --- a/upgrading-checklist.html +++ b/upgrading-checklist.html @@ -59,6 +59,9 @@ picking your way through this list. * Scripts may assume that /bin/sh supports local (at a basic level) and that its test builtin (if any) supports -a and -o binary logical operators. [10.4] + * The substitution variable ${binary:Version} should be used in place + of ${Source-Version} for dependencies between packages of the same + library. [8.5] * Substantial reorganization and renaming of sections in the Debian menu structure. Packages with menu entries should be reviewed to see if the menu section has been renamed or if one of the new -- 2.39.5