Re: Version substitution in debian/control
Francois Marier <email@example.com> writes:
> I'm trying to find a way to make a package depend on a specific version of
> another package, with a slight difference.
> I would like
> package "foo" with upstream version 220.127.116.1170630
> to depend exactly on
> package "bar" with upstream version 1.0.0
> and not work with
> package bar with upstream version greater than 1.0.0
> So I guess it would be similar to requiring the same upstream version
> except but truncating the last part of package foo's version before
> doing the comparison.
> I've had a look at deb-substvars(5), but as far as I can see, I'd have
> to use a custom substitution in debian/substvars and update that one
> every time package bar is released.
You could dynamically generate the debian/substvars entry in debian/rules
by parsing the version number of the package (probably via
dpkg-parsechangelog) and chopping off the last part.
Russ Allbery (firstname.lastname@example.org) <http://www.eyrie.org/~eagle/>