Re: replacing Source-Version substvar
On Thu, Aug 02, 2007 at 10:56:30PM +0300, George Danchev wrote:
> On Thursday 02 August 2007, Eric Cooper wrote:
> > I want to get rid of lintian's "substvar-source-version-is-deprecated"
> > warning in my packages, which currently have this:
> > Package: libsyslog-ocaml-dev
> > Depends: ocaml-nox-${F:OCamlABI}, libsyslog-ocaml (= ${Source-Version})
> > ...
> >
> > Should this now be ${source:Version} or ${binary:Version} -- and why?
>
> The simple rule is:
>
> if libsyslog-ocaml is a `Architecture: any' package use ${binary:Version}
> if libsyslog-ocaml is a `Architecture: all' package use ${source:Version}
Thanks!
> The above example is not correct since, there is no libsyslog-ocaml binary
> package, but you will get the idea.
(The version about to be uploaded has one, because the latest bugfix
needed a C stub and therefore a separate package for the runtime DLL.)
--
Eric Cooper e c c @ c m u . e d u
Reply to: