[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: d/control: Depends on same version



On 09/04/2016 09:40 PM, Muri Nicanor wrote:
> if i have source package foo-x.y that builds binary packages foo_x.y and
> libfoo_x.y, how can i declare a dependency from foo on libfoo where
> libfoo has to be the same version of foo?

If both are Arch: any (or linux-any or something similar):

Depends: libfoo (= ${binary:Version})

However, if one of the packages is Arch: all, and if you want to be
binNMU-friendly, you should probably rather use something like

Depends: libfoo (>= ${binary:Version}), libfoo (<< ${binary:Version}+b+~)

(Don't use it for the case where both are Arch: any though.)

Regards,
Christian


Reply to: