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

Re: Version substitution in debian/control

Francois Marier <francois@debian.org> writes:

> Hi,

> 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
> 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 (rra@debian.org)               <http://www.eyrie.org/~eagle/>

Reply to: