How can I make a Debian package dependent on another package with exactly the same version

I am creating a Debian package that integrates a number of other closely related packages, declaring them as dependencies. I want these dependencies to be exactly the same as the package. Is there a way in the Debian build system to avoid hard-coding this in the control file (other than preprocessing the control file)?

Sort of:

Depends: libfoo = ${version}, libbar = ${version}
+3
source share
1 answer

I support zookeeper in Debian, the zookeeperd binary package (with 'd' at the end) should depend on the same version of the zookeeper binary package, so debian/controlI have:

Package: zookeeperd
Depends: ${misc:Depends}, zookeeper (= ${binary:Version}), lsb-base (>= 3.2-14)

Debian Policy, 4.10.

+9

Source: https://habr.com/ru/post/1763018/


All Articles