Bug#386113: error in dpkg-buildpackage for asterisk

Pierre Machard pmachard at debian.org
Thu Oct 12 12:21:07 UTC 2006


severity 386113 minor
tags     386113 +wontfix
retitle  386113 [Backports only]: error in dpkg-buildpackage for asterisk
thanks,

Hi,

On Tue, Sep 05, 2006 at 12:46:55PM +0200, sboily at pro-formatique.com wrote:
[...]
> compilation.
> ${source:Version}
> dpkg-gencontrol: warning: unknown substitution variable
> ${source:Version}
> dh_md5sums -i
> dh_builddeb -i
> dpkg-deb: parse error, in file `debian/asterisk/DEBIAN/control' near line
> 6 package `asterisk':
>  `Depends' field, reference to `asterisk-classic': error in version:
> version string is empty
> dh_builddeb: command returned error code 512
> make: *** [binary-indep] Error 1
[...]
> 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)

To fix your problem simply modify the Depends line of debian/control to 
something like:

Depends: asterisk-classic (>= 1:1.2.12.1.dfsg-1) | asterisk-bristuff (>= 1:1.2.12.1.dfsg-1), adduser (>= 3.63)

This is not a bug, but it could be marked as wontfix to keep a trace.

Dear maintainers, fill free to change it if you disagree.

Cheers,
-- 
Pierre Machard




More information about the Pkg-voip-maintainers mailing list