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

Re: Versioning fast-development libraries (call for help with debtags packaging)



#include <hallo.h>
* Enrico Zini [Sun, Aug 01 2004, 08:59:19PM]:
> On Sun, Aug 01, 2004 at 01:36:10PM +0200, Enrico Zini wrote:
> 
> > Is there some more restrictive versioning and dependancy scheme I could
> > use?  I tried setting shlibs so that packages would depend on =version
> > instead of >=version, but that seems to be a bit too restrictive.
> 
> Nice folks in IRC suggested me to Provide: libtagcoll-api-1.0 and
> Depend: libtagcoll-api-1.0, then change the virtual package depend when
> the API/ABI changes.

For the records: we used this method in Mono. The upstream version is
extracted in rules using:

VERSION = $(shell dpkg-parsechangelog | grep ^Vers | cut -d\  -f2)
UPVERSION = $(shell echo $(VERSION) | sed 's,-.*,,')

and passed to substvars via

        dh_gencontrol -i -- -Vmono:upversion=$(UPVERSION)

and used in debian/conrol later (Provides: libmono-${mono:upversion}).
However, a drawback of this method is that you cannot specify virtual
packages as build-depends so we use this method only where it is
absolutely necessary.

Regards,
Eduard.
-- 
Viele Politiker, die in der Opposition geschmeidige Düsenjäger waren,
werden an der Macht bedächtige Segelflieger.
		-- Ignazio Silone



Reply to: