Felipe Augusto van de Wiel writes:
> Looking in debian/rules I found out that the major from the version
> field is used as soname, as I'm a little bit new with library RC
> bugfix, I just want to know if I did it right, before submit the
> patch.
> 
> I did not touch debian/rules. I added the following entry to
> debian/changelog:
> 
> 
> libopentoken (4.0-1) unstable; urgency=medium
> 
>   * Non-maintainer upload. (Closes: #378715).
>     - Bump SONAME to 4, due to gnat transition.
>     - Dependency changes in debian/control
>       + libopentoken build-depends on gnat (>= 4.1)
>       + libopentoken-dev depends on gnat-4.1
> 
>  -- Felipe Augusto van de Wiel (faw) <[EMAIL PROTECTED]>  Thu,
>  27 Jul 2006 18:36:30 -0300

It is against debian policy to invent a new version number on behalf
of upstream; it should really be 3.0b-3.1 for an NMU, or 3.0b-4 if you
submit the patch to me and I upload the package.

It is okay if the soname does not match the major version number;
there are other examples of this, like libgnutls13 (1.4.1-1).

So therefore, debian/rules must change one way or another.

The soname libopentoken.so.4 is fine, but you may also want to
consider libopentoken.so.3.0b, which requires smaller changes to
debian/rules.  It's up to you.

>       And here is the debian/control:
> 
> Source: libopentoken
> Priority: optional
> Maintainer: Ludovic Brenta <[EMAIL PROTECTED]>

Please change my email address while you're at it: [EMAIL PROTECTED]

> Uploaders: Matthias Klose <[EMAIL PROTECTED]>

No longer necessary, as I don't need a sponsor anymore :) but, if you
want to adopt the package, you can add your sponsor's address here.  I
can be your sponsor for this package if you want.

> Build-Depends: debhelper (>= 4.1.0), gnat (>= 4.1)
> Standards-Version: 3.6.2

Please update to 3.7.2 with no changes required, and say so in the
changelog.

> Package: libopentoken-dev
> Section: libdevel
> Architecture: i386 kfreebsd-i386 powerpc sparc

Sorry I forgot to tell you that earlier but gnat-4.1 supports more
architectures than gnat 3.15p did; so please change that to:

Architecture: amd64 hppa i386 ia64 kfreebsd-i386 powerpc sparc

> Depends: libopentoken3 (= ${Source-Version}), gnat-4.1

Should depend on the proper library package, with a name matching the
soname: so either libopentoken4, or libopentoken3.0b depending on your
choice.

> Description: OpenToken lexical analysis library for Ada
> 
> 
> Tha package built sucessfully, I installed it and here is the
> libopentoken listing:
> 
> $ l /usr/lib/libopentoken.*
> - -rw-r--r-- 1 root root 746130 Jul 27 18:44 /usr/lib/libopentoken.a
> lrwxrwxrwx 1 root root     19 Jul 27 18:47 /usr/lib/libopentoken.so ->
> libopentoken.so.4.0

Good.  These are the files from the -dev package, but you seem to be
missing the actual library.

Also, if you choose libopentoken.so.3.0b for the soname you'll need to
reflect the changes there; you should see either:

/usr/bin/libopentoken.a
/usr/bin/libopentoken.so -> libopentoken.so.4.0
/usr/bin/libopentoken.so.4 -> libopentoken.so.4.0 *
/usr/bin/libopentoken.so.4.0

or

/usr/bin/libopentoken.a
/usr/bin/libopentoken.so -> libopentoken.so.3.0b
/usr/bin/libopentoken.so.3.0b *

(before the upload, it is:

/usr/bin/libopentoken.a
/usr/bin/libopentoken.so -> libopentoken.so.3.0b
/usr/bin/libopentoken.so.3 -> libopentoken.so.3.0b  *
/usr/bin/libopentoken.so.3.0b

The important thing is that programs linked against the library must
find a file with the same name as the soname, I have marked them with
* above)

>  it is ok, I will be happy to send the patch to debian/control and
> debian/changelog to the BTS, probably my AM (Applicant Manager) will
> also take a look to the NMU packages, and if you or him want to
> upload the prepared packages, I will be happy to see that
> happening. ;)

OK, it's up to you.  You can either:

- submit the patch to me and I'll upload in August, after returning
  from vacation (must be version 3.0b-4)

- ask your sponsor to upload an NMU (add his email address to the
  Uploaders: field) (must be version 3.0b-3.1)

- adopt the package (change the maintainer's address to your
  address, and add your sponsor's address to Uploaders; I can be your
  sponsor for this package, too)  (must be version 3.0b-4).

-- 
Ludovic Brenta.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to