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

Depends on -common (= ${Source-Version}) for GNOME packages



Hi,

As pointed by nutmeg on IRC, having a Depends for packages on common (=
${Source-Version}) is a problem for binary-NMUs and buildds.
(see http://lists.debian.org/debian-policy/2004/01/msg00034.html).

It would probably be better to adapt depends to have >= Upstream, <<
Next-Upstream.

I've updated libgnome in trunk on the SVN to do this, comments are
welcome.

Basically I have changed the package to use:

* in debian/rules:

upstream-version :=  $(shell dpkg-parsechangelog | sed -n '/^Version:
[0-9\.]\+-.\+/{s/^Version: \([0-9\.]\+\)-.\+/\1/;p;}')

DEB_DH_GENCONTROL_ARGS := -- -VUpstream-Version=$(upstream-version)


* debian/control.in

Depends: ... libgnome2-common (>= ${Upstream-Version}), libgnome2-common
(<< ${Upstream-Version}.1)


What do you think about this ? If this is ok, it could be nice to adapt
GNOME packages to use this since it helps the autobuild process.


Cheers,

Sebastien Bacher




Reply to: