Bug#386113: error in dpkg-buildpackage for asterisk
Thiago Martins
thiago at principaltelecom.com.br
Tue Oct 17 13:32:24 UTC 2006
Em Ter, 2006-10-17 às 17:18 +0300, George Danchev escreveu:
> 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' ?
Mmm... you right, I change this just to see if the error go away, but I
got the same error, with "s" or with "S"...
I don't understand why the old version works and this new not.
But if you tell me thas is the version of dpkg, I will upgrade it.
Thiago
More information about the Pkg-voip-maintainers
mailing list