On Sat, 21 Jul 2012 03:38:22 +0900, Tsukasa Hamano wrote:

> The SSL library is used two usage in liboauth.
> 
> * for HTTPS communication by libcurl
> * for OAuth hash/signature
> 
> They are fully independent usage.
> Now, The package is using NSS for hash/signature due to --enable-nss
> was specified. However we do not need to specifiy libcurl ssl backend.
> 
> Therefore, We should specify to liboauth-dev:
> Depends: libcurl4-dev libnss3-dev

libcurl4-dev is a virtual package, so we need a real one too.

What I've tried now is:

#v+
diff -Nru liboauth-0.9.4/debian/control liboauth-0.9.4/debian/control
--- liboauth-0.9.4/debian/control   2011-11-05 12:41:07.000000000 +0100
+++ liboauth-0.9.4/debian/control   2012-07-28 19:14:03.000000000 +0200
@@ -2,7 +2,7 @@
 Priority: optional
 Maintainer: Bilal Akhtar <bilalakh...@ubuntu.com>
 Build-Depends: debhelper (>= 8.1.3),
-               libcurl4-nss-dev,
+               libcurl4-gnutls-dev | libcurl4-dev,
                libnss3-dev,
                libtool,
                locales-all | language-pack-en,
@@ -16,7 +16,7 @@
 Package: liboauth-dev
 Section: libdevel
 Architecture: any
-Depends: liboauth0 (= ${binary:Version}), libcurl4-nss-dev, ${misc:Depends}
+Depends: liboauth0 (= ${binary:Version}), libcurl4-gnutls-dev | libcurl4-dev, 
libnss3-dev, ${misc:Depends}
 Description: C library for implementing OAuth 1.0 (development files)
  liboauth is a collection of C functions implementing the
  OAuth Core 1.0 standard API. liboauth provides basic functions to escape
#v-

which has a very interesting effect:
The runtime dependencies for liboauth0 change from
    Depends: libc6 (>= 2.4), libcurl3-nss (>= 7.16.2-1), libnss3-1d (>= 
3.12.0~1.9b1)
to
    Depends: libc6 (>= 2.4), libcurl3-gnutls (>= 7.16.2), libnss3 (>= 
2:3.13.4-2~) | libnss3-1d (>= 3.12.0~1.9b1)

and with the rebuilt library installed, the bug in #650138 is gone!


Cheers,
gregor
 
-- 
 .''`.  Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer  -  http://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: David Bowie: Ground Control to Major Tom

Attachment: signature.asc
Description: Digital signature

Reply via email to