On Tue, 17 Jul 2007, Stephen Gildea wrote:
> When using the "-v" flag of dpkg-gencontrol to set the version number
> of the binary package being built, the subst variable "binary:Version"
> fails to be set correctly.  Instead of getting the value specified with
> the -v, it gets the version of the source.
> 
> It is useful to have an accurate binary:Version when you want to have
> the -dev package depend on the library (= ${binary:Version}).

It's not necessarily as evident as you make it look like. Usage of -v is
only required when the version of the binary package doesn't match the
version of the source package... and when you use ${binary:Version} you
want to refer to the version of another binary package (ie not the one
currently handled by dpkg-gencontrol) and why would you assume that the
other binary package shares the same version than the package currently
treated ? It might well be that the other binary package shares the same
version as the source package.

Though, given the use cases we have for those variables and given the
official definition of that variable in deb-substvars(5), I think this
change should probably be done.

Other opinions are welcome of course...

Can you tell us for which package you needed this change? 

Cheers,
-- 
Raphaël Hertzog

Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/


Reply via email to