Bug#386113: error in dpkg-buildpackage for asterisk
George Danchev
danchev at spnet.net
Tue Oct 17 14:18:02 UTC 2006
On Tuesday 17 October 2006 16:07, Thiago Martins wrote:
> Em Qui, 2006-10-12 às 15:55 +0200, Pierre Machard escreveu:
> > tags 386113 -wontfix
> > tags 386113 +patch
> > severity 386113 important
> > retitle 386113 Asterisk must build-depend upon dpkg ( >= 1.13.19)
> > thanks,
> >
> > On Thu, Oct 12, 2006 at 02:21:07PM +0200, Pierre Machard wrote:
> > > > Depends: asterisk-classic (>= ) | asterisk-bristuff (>= ), adduser
> > > > (>= 3.63)
> > >
> > > The problem is that you are backporting asterisk with an older dpkg.
> > > The substvar 'source:Version' as been added into dpkg 1.13.19.
> > >
> > > With a recent dpkg the line [1] would have been expanded.
> > > [1] : Depends: asterisk-classic (>= ${source:Version}) |
> > > asterisk-bristuff (>= ${source:Version}), adduser (>= 3.63)
> >
> > Which means that asterisk must build-depend upon dpkg ( >= 1.13.19)
> >
> > Thanks Duck for the hint,
>
> Mmmm...
>
> I think this is not right...
>
> I have a dpkg-1.13.11 installed and I build the package
> asterisk-1:1.2.10.dfsg-2.dapper.2235 with the same debian/control file,
> look:
>
> .../asterisk-1.2.10.dfsg$ head -n20 debian/control
> --cuted--
> Package: asterisk
> Architecture: all
> Section: comm
> Depends: asterisk-classic (= ${Source-Version})|asterisk-bristuff (=
> ${Source-Version}), adduser (>= 3.63)
> Conflicts: asterisk-oh323 (<= 0.6.6pre3-3)
> --end--
>
> And after binary target:
> .../asterisk-1.2.10.dfsg$ head debian/asterisk/DEBIAN/control
> Package: asterisk
> Version: 1:1.2.10.dfsg-2.dapper.2235
> Section: comm
> Priority: optional
> Architecture: all
> Depends: asterisk-classic (= 1:1.2.10.dfsg-2.dapper.2235) |
> asterisk-bristuff (= 1:1.2.10.dfsg-2.dapper.2235), adduser (>= 3.63)
> ...
>
> Has all of you can see, my dpkg-1.13.11 understands "${Source-Version}".
You seems to be confusing ${Source-Version} with ${source:Version}. The latter
s understood by dpkg-dev >= 1.13.19, so build-depending on it is perfectly in
order. When referring to an arch: all package, use >= ${source:Version}, when
referring to an arch: any package, use = ${binary:Version}.
> BUT! With new asterisk package (on the same Linux):
> .../asterisk-1.2.12.1.dfsg$ head -n20 debian/control
> --cuted--
> Package: asterisk
> Architecture: all
> Section: comm
> Depends: asterisk-classic (>= ${Source:Version}) | asterisk-bristuff (>=
> ${Source:Version}), adduser (>= 3.63)
> --end--
Hm, why ${Source:Version} is written with a capital 'S' ?
--
pub 4096R/0E4BD0AB 2003-03-18 <people.fccf.net/danchev/key pgp.mit.edu>
fingerprint 1AE7 7C66 0A26 5BFF DF22 5D55 1C57 0C89 0E4B D0AB
More information about the Pkg-voip-maintainers
mailing list