From 80e2d957e60b7341f1ebd677bd45cd97bdd827d8 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Thu, 8 Jul 2010 20:38:48 +0000 Subject: [PATCH] Add a patch to work around GNU TLS behavior svn path=/nixpkgs/trunk/; revision=22540 --- .../gnome-2.28/desktop/libsoup/2.31.gnutls.patch | 12 ++++++++++++ pkgs/desktops/gnome-2.28/desktop/libsoup/2.31.nix | 1 + 2 files changed, 13 insertions(+) create mode 100644 pkgs/desktops/gnome-2.28/desktop/libsoup/2.31.gnutls.patch diff --git a/pkgs/desktops/gnome-2.28/desktop/libsoup/2.31.gnutls.patch b/pkgs/desktops/gnome-2.28/desktop/libsoup/2.31.gnutls.patch new file mode 100644 index 000000000000..de4b94f09572 --- /dev/null +++ b/pkgs/desktops/gnome-2.28/desktop/libsoup/2.31.gnutls.patch @@ -0,0 +1,12 @@ +diff --git a/libsoup/soup-gnutls.c b/libsoup/soup-gnutls.c +--- a/libsoup/soup-gnutls.c ++++ b/libsoup/soup-gnutls.c +@@ -477,7 +477,7 @@ soup_ssl_wrap_iochannel (GIOChannel *sock, gboolean non_blocking, + goto THROW_CREATE_ERROR; + + /* See http://bugzilla.gnome.org/show_bug.cgi?id=581342 */ +- if (gnutls_priority_set_direct (session, "NORMAL:!VERS-TLS1.1:!VERS-TLS1.0", NULL) != 0) ++ if (gnutls_priority_set_direct (session, "NORMAL:!VERS-TLS1.2:!VERS-TLS1.1:!VERS-TLS1.0", NULL) != 0) + goto THROW_CREATE_ERROR; + + if (gnutls_credentials_set (session, GNUTLS_CRD_CERTIFICATE, diff --git a/pkgs/desktops/gnome-2.28/desktop/libsoup/2.31.nix b/pkgs/desktops/gnome-2.28/desktop/libsoup/2.31.nix index cc1b6467d8c6..6ddc76e0f4be 100644 --- a/pkgs/desktops/gnome-2.28/desktop/libsoup/2.31.nix +++ b/pkgs/desktops/gnome-2.28/desktop/libsoup/2.31.nix @@ -7,6 +7,7 @@ stdenv.mkDerivation { url = mirror://gnome/sources/libsoup/2.31/libsoup-2.31.2.tar.bz2; sha256 = "ae52e970deb0ca5e890d87cf55e555249c086bd56ae1fff69599174ca0075379"; }; + patches = [./2.31.gnutls.patch]; buildInputs = [ pkgconfig libxml2 gnutls libproxy sqlite curl glib GConf gnome_keyring ]; }