Re: Depending on a -bin package built from the same source version
Hi,
On 10/03/13 18:48, Antonio Valentino wrote:
The question is how to specify the the dependency.
The GUI app have to depend from binaries built from the same source code
(not previous of later versions).
For what I can understand the correct approach should be the one
described in [3,4], something like
Depends: polsarpro-bin (>= ${source:Version}),
polsarpro-bin (<< ${source:Version}.1~)
but the cme tool (provided by [5]) keeps on complaining about it:
$ cme check dpkg-control
Reading package lists... Done
Building dependency tree
Reading state information... Done
Connecting to qa.debian.org to check polsarpro-bin versions. Please wait...
Warning in 'binary:polsarpro Depends:1' value 'polsarpro-bin (>=
${source:Version})': package polsarpro-bin is unknown. Check for typos
if not a virtual package.
Warning in 'binary:polsarpro Depends:2' value 'polsarpro-bin (<<
${source:Version}.1~)': package polsarpro-bin is unknown. Check for
typos if not a virtual package.
Configuration item 'binary:polsarpro Depends:2' has a wrong value:
dependency 'polsarpro-bin (<< ${source:Version}.1~)' does not match grammar
Should I care about it?
Not about the "unknownness" of the package as you're currently packaging it.
But about the wrong version value: you can't combine a placeholder and
other characters.
Is there a better solution to address the specific problem?
Yes, simply depend on version equality:
Depends: polsarpro-bin (= ${source:Version})
Remark: you might want to check [1] if a binary:Version placeholder
wouldn't be a better choice.
Cheers, Eric
[1] http://wiki.debian.org/binNMU
Reply to: