Accepting request 459188 from Base:System

1

OBS-URL: https://build.opensuse.org/request/show/459188
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/gnutls?expand=0&rev=97
This commit is contained in:
Dominique Leuenberger 2017-02-22 12:50:20 +00:00 committed by Git OBS Bridge
parent 556f692995
commit ffec47260a
7 changed files with 75 additions and 5 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0e97f243ae72b70307d684b84c7fe679385aa7a7a0e37e5be810193dcc17d4ff
size 7264448

Binary file not shown.

View File

@ -0,0 +1,53 @@
From 35c6a78f3b24bf4192e3f01ee6322b42b6fc27fb Mon Sep 17 00:00:00 2001
From: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Date: Wed, 15 Feb 2017 18:42:22 +0100
Subject: [PATCH] gnutls.pc: do not include libidn2 in Requires.private
The libidn2 versions available do not include libidn2.pc,
thus the inclusion was causing problems when using pkg-config.
Instead we include -lidn2 in Libs.private.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
---
configure.ac | 12 +++++++-----
lib/gnutls.pc.in | 2 +-
2 files changed, 8 insertions(+), 6 deletions(-)
diff --git a/configure.ac b/configure.ac
index 6907b215f..4cad4fa3a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -492,11 +492,13 @@ if test "$try_libidn" = yes;then
idna_support="IDNA 2008 (libidn2)"
AC_DEFINE([HAVE_LIBIDN2], 1, [Define if IDNA 2008 support is enabled.])
AC_SUBST([LIBIDN_LIBS], [-lidn2])
- if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
- GNUTLS_REQUIRES_PRIVATE="Requires.private: libidn2"
- else
- GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libidn2"
- fi
+ AC_SUBST([LIBIDN2_LIBS], [-lidn2]) dnl used in gnutls.pc.in
+dnl enable once libidn2.pc is widespread; and remove LIBIDN2_LIBS from gnutls.pc.in (Libs.private)
+dnl if test "x$GNUTLS_REQUIRES_PRIVATE" = "x"; then
+dnl GNUTLS_REQUIRES_PRIVATE="Requires.private: libidn2"
+dnl else
+dnl GNUTLS_REQUIRES_PRIVATE="${GNUTLS_REQUIRES_PRIVATE}, libidn2"
+dnl fi
],[
with_libidn2=no;
AC_MSG_WARN(*** LIBIDN2 was not found. You will not be able to use IDN2008 support)
diff --git a/lib/gnutls.pc.in b/lib/gnutls.pc.in
index 441b45db0..c03757928 100644
--- a/lib/gnutls.pc.in
+++ b/lib/gnutls.pc.in
@@ -19,6 +19,6 @@ Description: Transport Security Layer implementation for the GNU system
URL: http://www.gnutls.org/
Version: @VERSION@
Libs: -L${libdir} -lgnutls
-Libs.private: @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ @LTLIBNSL@ @LTLIBPTHREAD@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@ @LTLIBUNISTRING@
+Libs.private: @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ @LTLIBNSL@ @LTLIBPTHREAD@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@ @LTLIBUNISTRING@ @LIBIDN2_LIBS@
@GNUTLS_REQUIRES_PRIVATE@
Cflags: -I${includedir}
--
2.11.1

3
gnutls-3.5.9.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:82b10f0c4ef18f4e64ad8cef5dbaf14be732f5095a41cf366b4ecb4050382951
size 7166932

BIN
gnutls-3.5.9.tar.xz.sig Normal file

Binary file not shown.

View File

@ -1,3 +1,18 @@
-------------------------------------------------------------------
Mon Feb 20 09:52:38 UTC 2017 - astieger@suse.com
- GnuTLS 3.5.9:
* libgnutls: OpenPGP references removed, functionality deprecated
* libgnutls: Improve detection of AVX support
* libgnutls: Add support for IDNA2008 with libidn2 FATE#321897
* p11tool: re-use ID from corresponding objects when writing
certificates.
* API and ABI modifications:
gnutls_idna_map: Added
gnutls_idna_reverse_map: Added
- prevent pkgconfig issues due to libidn2 when building with GnuTLS
add gnutls-3.5.9-pkgconfig.patch
-------------------------------------------------------------------
Mon Jan 9 10:07:19 UTC 2017 - meissner@suse.com

View File

@ -29,7 +29,7 @@
%define gnutls_dane_sover 0
%endif
Name: gnutls
Version: 3.5.8
Version: 3.5.9
Release: 0
Summary: The GNU Transport Layer Security Library
License: LGPL-2.1+ and GPL-3.0+
@ -40,12 +40,13 @@ Source0: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.5/%{name}-%{version}.tar.x
Source1: ftp://ftp.gnutls.org/gcrypt/gnutls/v3.5/%{name}-%{version}.tar.xz.sig
Source2: %{name}.keyring
Source3: baselibs.conf
Patch0: gnutls-3.5.9-pkgconfig.patch
BuildRequires: autogen
BuildRequires: automake
BuildRequires: datefudge
BuildRequires: fdupes
BuildRequires: gcc-c++
BuildRequires: libidn-devel
BuildRequires: libidn2-devel
BuildRequires: libnettle-devel >= 3.1
BuildRequires: libtasn1-devel >= 4.9
BuildRequires: libtool
@ -197,6 +198,7 @@ GnuTLS Wrappers for GNU Guile - dialect of scheme.
%prep
%setup -q
%patch0 -p1
%build
export LDFLAGS="-pie"