Package: dpkg-dev Version: 1.14.5 Tags: patch 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}). The following patch fixes this little problem. < Stephen *** dpkg-1.14.5/scripts/dpkg-gencontrol.pl Tue Jun 19 08:11:37 2007 --- scripts/dpkg-gencontrol.pl Mon Jul 16 16:30:57 2007 *************** *** 215,220 **** --- 215,222 ---- $f{'Version'} = $forceversion if defined($forceversion); &init_substvars; + $substvar{'binary:Version'} = $forceversion if defined($forceversion); + init_substvar_arch(); for $_ (keys %fi) { *** dpkg-1.14.5/scripts/controllib.pl Tue Jun 19 08:11:37 2007 --- scripts/controllib.pl Mon Jul 16 16:31:49 2007 *************** *** 545,550 **** --- 545,551 ---- # XXX: Source-Version is now deprecated, remove in the future. $substvar{'Source-Version'}= $fi{"L Version"}; + # binary:Version is overridden by dpkg-gencontrol if passed -v flag. $substvar{'binary:Version'} = $fi{"L Version"}; $substvar{'source:Version'} = $fi{"L Version"}; $substvar{'source:Version'} =~ s/\+b[0-9]+$//; -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]