[Pkg-gnutls-maint] [PATCH] Add a package for the Guile bindings

Andreas Metzler ametzler at downhill.at.eu.org
Sat Nov 3 12:12:57 UTC 2007


On 2007-11-03 Ludovic Courtès <ludo at chbouib.org> wrote:
> Andreas Metzler <ametzler at downhill.at.eu.org> writes:

> > Should the .so symlink libguile-gnutls-v-0.so really go into
> > guile-gnutls instead of the libgnutls-dev package?

> Right, I just noticed it, sorry (I attached an updated patch).
[...]

Hmm.
> --- /dev/null
> +++ b/guile-gnutls.install
> @@ -0,0 +1,2 @@
> +debian/tmp/usr/lib/libguile-gnutls*.so* usr/lib
> +debian/tmp/usr/share/guile/site usr/share/guile

debian/tmp/usr/lib/libguile-gnutls*.so* matches libguile-gnutls-v-0.so,
therefore libguile-gnutls-v-0.so will be installed in guile-gnutls.

> diff --git a/libgnutls-dev.install b/libgnutls-dev.install
> index 53aa369..e278b55 100644
> --- a/libgnutls-dev.install
> +++ b/libgnutls-dev.install
> @@ -1,10 +1,9 @@
>  debian/tmp/usr/include/* usr/include
> -debian/tmp/usr/lib/lib*.so usr/lib
> -debian/tmp/usr/lib/lib*.a usr/lib
> +debian/tmp/usr/lib/libgnutls*.so usr/lib
> +debian/tmp/usr/lib/libgnutls*.a usr/lib

This part of change stops the libguile-*.so from being included in
libgnutls-dev.

So with the previous version of the patch we had libguile-*.so in both
libgnutls-dev and guile-gnutls, with your new version they are only
shipped in guile-gnutls. My original question/suggestion was to put
them only in libgnutls-dev. ;-) Wait, see below....

>> And since you are upstream:
>> Shouldn't the version-info of the generated libraries be somehow
>> managed?

> Not necessarily.  The `libguile-gnutls' libs contains a version number
> in their name, and that's what matters the most since they're
> dynamically loaded by the Guile modules (see `load-extension' in the
> `.scm' files); note that these libraries are not supposed to be used by
> C programs.  So, when a new version of the Guile bindings is released,
> we bump that number in the library name so that the `.scm' files load
> the right library.

So I guess these are not really libraries but are dlopened. I guess I
should not ship a shlibs files either. Shipping the .so link in
guile-gnutls makes sense, too.

If these are not really libraries that are handled by the regular
dynamic linker, should they really be installed directly in /usr/lib?
Should not a private guile subdirctory be used the same way perl,
python or even mono handels this? I do realize that all guile packages
do as you did, it just seems wrong.
cu andreas

-- 
`What a good friend you are to him, Dr. Maturin. His other friends are
so grateful to you.'
`I sew his ears on from time to time, sure'



More information about the Pkg-gnutls-maint mailing list