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

Re: camlzip 1.01-1 uploaded ...



On Fri, Feb 22, 2002 at 02:10:08PM +0100, Jérôme Marant wrote:
> On Fri, Feb 22, 2002 at 02:05:24PM +0100, Stefano Zacchiroli wrote:
> > On Thu, Feb 21, 2002 at 03:41:37PM +0100, Sven wrote:
> > > Please have a look at it if you are maintaining an ocaml library package, and
> > > comment as needed, and take it as example for your work.
> > 
> > Ok I will look at it and use as an example for the set of libraries I
> > maintain.
> > 
> > BTW what do you do to rename the camlzip package in libzip-ocaml? That
> > is, how I manage the renaming? Have I to simply rename the binary
> > packages leaving source packages as they are or I have to create a new
> > source package (with related delay for new packages) and ask the release
> > manager to remove the old package?
> 
>   It depends whether you want to keep smooth upgraded between the old
>   package and the new package.
>   If you want it smooth, you have to provide a dummy package depending
>   on the new package. Otherwise, create a new one and ask for the
>   removal of the old one. However, users might not understand what's
>   happening on their system.

I put these in the camlzip control files, and it works fine for upgrade :

Package: libzip-ocaml
Architecture: any
Section: libs
Depends: ocaml (>=3.04), ocaml (<<3.05), ${shlibs:Depends}
Conflicts: camlzip (<< 1.01-2)
Description: ocaml compression libraries

Package: libzip-ocaml-dev
Architecture: any
Section: devel
Depends: ocaml (>=3.04), ocaml (<<3.05), zlib1g (>> 1.1.3), libzip-ocaml (=
${Source-Version})
Conflicts: camlzip
Replaces: camlzip
Provides: camlzip


Notice how the libzip-ocaml package conflicts with older versions of camlzip
only, and has a ${shlibs:Depends} in its depends to autmatically pull in the
needed library dependencies.

The libzip-ocaml-dev, provides conflicts and replaces camlzip, but no version
here. Also it depends on libzip-ocaml with (= ${Source-Version}).

This should take care of a smooth upgrade path, and allow the installation of
it, even if you specift apt-get install camlzip.

Friendly,

Sven Luther



Reply to: