Gentoo Archives: gentoo-commits

From: "Alon Bar-Lev (alonbl)" <alonbl@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-libs/gnutls/files: gnutls-3.2.1-build-gmp-2.patch gnutls-3.2.1-build-gmp-1.patch gnutls-3.2.1-build-gmp-3.patch gnutls-3.2.1-build-gmp.patch
Date: Mon, 03 Jun 2013 20:17:22
Message-Id: 20130603201717.61BC72171D@flycatcher.gentoo.org
1 alonbl 13/06/03 20:17:17
2
3 Added: gnutls-3.2.1-build-gmp-2.patch
4 gnutls-3.2.1-build-gmp-1.patch
5 gnutls-3.2.1-build-gmp-3.patch
6 Removed: gnutls-3.2.1-build-gmp.patch
7 Log:
8 backport patches from upstream related to bug#472056, should solve bug#472196
9
10 (Portage version: 2.2.0_alpha177/cvs/Linux x86_64, signed Manifest commit with key BF20DC51)
11
12 Revision Changes Path
13 1.1 net-libs/gnutls/files/gnutls-3.2.1-build-gmp-2.patch
14
15 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/files/gnutls-3.2.1-build-gmp-2.patch?rev=1.1&view=markup
16 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/files/gnutls-3.2.1-build-gmp-2.patch?rev=1.1&content-type=text/plain
17
18 Index: gnutls-3.2.1-build-gmp-2.patch
19 ===================================================================
20 From f3ef68f4f79434fadc3f28c649744e57f3eef99b Mon Sep 17 00:00:00 2001
21 From: Nikos Mavrogiannopoulos <nmav@××××××.org>
22 Date: Mon, 3 Jun 2013 21:21:44 +0200
23 Subject: [PATCH] Add nettle dependencies to libcrypto.la
24
25 ---
26 lib/Makefile.am | 1 -
27 lib/nettle/Makefile.am | 1 +
28 2 files changed, 1 insertions(+), 1 deletions(-)
29
30 diff --git a/lib/Makefile.am b/lib/Makefile.am
31 index 3beb7c7..006f695 100644
32 --- a/lib/Makefile.am
33 +++ b/lib/Makefile.am
34 @@ -140,7 +140,6 @@ thirdparty_libadd += $(LIBTASN1_LIBS)
35 endif
36
37 if ENABLE_NETTLE
38 -thirdparty_libadd += $(NETTLE_LIBS) $(HOGWEED_LIBS) $(GMP_LIBS)
39 libgnutls_la_LIBADD += nettle/libcrypto.la
40 endif
41
42 diff --git a/lib/nettle/Makefile.am b/lib/nettle/Makefile.am
43 index 3dcb928..7b3f4c0 100644
44 --- a/lib/nettle/Makefile.am
45 +++ b/lib/nettle/Makefile.am
46 @@ -37,5 +37,6 @@ endif
47
48 noinst_LTLIBRARIES = libcrypto.la
49
50 +libcrypto_la_LIBADD = $(NETTLE_LIBS) $(HOGWEED_LIBS) $(GMP_LIBS)
51 libcrypto_la_SOURCES = pk.c mpi.c mac.c cipher.c rnd.c init.c egd.c egd.h \
52 gnettle.h
53 --
54 1.7.1
55
56
57
58
59 1.1 net-libs/gnutls/files/gnutls-3.2.1-build-gmp-1.patch
60
61 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/files/gnutls-3.2.1-build-gmp-1.patch?rev=1.1&view=markup
62 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/files/gnutls-3.2.1-build-gmp-1.patch?rev=1.1&content-type=text/plain
63
64 Index: gnutls-3.2.1-build-gmp-1.patch
65 ===================================================================
66 From 02eb70d6d96f624ed6cc55dfa62734495dffbb44 Mon Sep 17 00:00:00 2001
67 From: Nikos Mavrogiannopoulos <nmav@××××××.org>
68 Date: Sun, 2 Jun 2013 19:10:52 +0200
69 Subject: [PATCH] Directly link to gmp library. Based on original patch by Alon Bar-Lev <alon.barlev@×××××.com>.
70
71 ---
72 lib/Makefile.am | 2 +-
73 lib/gnutls.pc.in | 2 +-
74 lib/nettle/Makefile.am | 5 ++++-
75 m4/hooks.m4 | 11 +++++++++++
76 4 files changed, 17 insertions(+), 3 deletions(-)
77
78 diff --git a/lib/Makefile.am b/lib/Makefile.am
79 index f1e672c..3beb7c7 100644
80 --- a/lib/Makefile.am
81 +++ b/lib/Makefile.am
82 @@ -140,7 +140,7 @@ thirdparty_libadd += $(LIBTASN1_LIBS)
83 endif
84
85 if ENABLE_NETTLE
86 -thirdparty_libadd += $(NETTLE_LIBS) $(HOGWEED_LIBS)
87 +thirdparty_libadd += $(NETTLE_LIBS) $(HOGWEED_LIBS) $(GMP_LIBS)
88 libgnutls_la_LIBADD += nettle/libcrypto.la
89 endif
90
91 diff --git a/lib/gnutls.pc.in b/lib/gnutls.pc.in
92 index 13f2d3b..a25fcdf 100644
93 --- a/lib/gnutls.pc.in
94 +++ b/lib/gnutls.pc.in
95 @@ -19,6 +19,6 @@ Description: Transport Security Layer implementation for the GNU system
96 URL: http://www.gnutls.org/
97 Version: @VERSION@
98 Libs: -L${libdir} -lgnutls
99 -Libs.private: @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ @LTLIBPTHREAD@ @LTLIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@
100 +Libs.private: @LTLIBZ@ @LTLIBINTL@ @LIBSOCKET@ @LTLIBPTHREAD@ @LTLIBICONV@ @P11_KIT_LIBS@ @LIB_SELECT@ @TSS_LIBS@ @GMP_LIBS@
101 @GNUTLS_REQUIRES_PRIVATE@
102 Cflags: -I${includedir}
103 diff --git a/lib/nettle/Makefile.am b/lib/nettle/Makefile.am
104 index e2b704e..0987c8e 100644
105 --- a/lib/nettle/Makefile.am
106 +++ b/lib/nettle/Makefile.am
107 @@ -25,7 +25,10 @@ AM_CPPFLAGS = \
108 -I$(srcdir)/../includes \
109 -I$(builddir)/../includes \
110 -I$(builddir)/../../gl \
111 - -I$(srcdir)/..
112 + -I$(srcdir)/.. \
113 + $(NETTLE_CFLAGS) \
114 + $(HOGWEED_CFLAGS) \
115 + $(GMP_CFLAGS)
116
117 if ENABLE_MINITASN1
118 AM_CPPFLAGS += -I$(srcdir)/../minitasn1
119 diff --git a/m4/hooks.m4 b/m4/hooks.m4
120 index 3439edb..cd9ef5c 100644
121 --- a/m4/hooks.m4
122 +++ b/m4/hooks.m4
123 @@ -82,6 +82,17 @@ AC_MSG_ERROR([[
124
125 GNUTLS_REQUIRES_PRIVATE="Requires.private: nettle, hogweed"
126
127 + AC_ARG_VAR(GMP_CFLAGS, [C compiler flags for gmp])
128 + AC_ARG_VAR(GMP_LIBS, [linker flags for gmp])
129 + if test x$GMP_LIBS = x; then
130 + AC_CHECK_LIB(gmp, __gmpz_cmp, [GMP_LIBS="-lgmp"], [AC_MSG_ERROR([[
131 +***
132 +*** gmp was not found.
133 +]])])
134 + fi
135 + AC_SUBST(GMP_CFLAGS)
136 + AC_SUBST(GMP_LIBS)
137 +
138 AC_ARG_WITH(included-libtasn1,
139 AS_HELP_STRING([--with-included-libtasn1], [use the included libtasn1]),
140 included_libtasn1=$withval,
141 --
142 1.7.1
143
144
145
146
147 1.1 net-libs/gnutls/files/gnutls-3.2.1-build-gmp-3.patch
148
149 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/files/gnutls-3.2.1-build-gmp-3.patch?rev=1.1&view=markup
150 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-libs/gnutls/files/gnutls-3.2.1-build-gmp-3.patch?rev=1.1&content-type=text/plain
151
152 Index: gnutls-3.2.1-build-gmp-3.patch
153 ===================================================================
154 From 8b64193ac7b30faa2213d5be6ee477db3a1f70a6 Mon Sep 17 00:00:00 2001
155 From: Nikos Mavrogiannopoulos <nmav@××××××.org>
156 Date: Mon, 3 Jun 2013 21:17:39 +0200
157 Subject: [PATCH] correctly place cflags
158
159 ---
160 lib/nettle/Makefile.am | 11 ++++++-----
161 1 files changed, 6 insertions(+), 5 deletions(-)
162
163 diff --git a/lib/nettle/Makefile.am b/lib/nettle/Makefile.am
164 index 0987c8e..3dcb928 100644
165 --- a/lib/nettle/Makefile.am
166 +++ b/lib/nettle/Makefile.am
167 @@ -18,17 +18,18 @@
168 # You should have received a copy of the GNU Lesser General Public License
169 # along with this program. If not, see <http://www.gnu.org/licenses/>
170
171 -AM_CFLAGS = $(WERROR_CFLAGS) $(WSTACK_CFLAGS) $(WARN_CFLAGS)
172 +AM_CFLAGS = $(WERROR_CFLAGS) $(WSTACK_CFLAGS) $(WARN_CFLAGS) \
173 + $(NETTLE_CFLAGS) \
174 + $(HOGWEED_CFLAGS) \
175 + $(GMP_CFLAGS)
176 +
177 AM_CPPFLAGS = \
178 -I$(srcdir)/../../gl \
179 -I$(builddir)/../../gl \
180 -I$(srcdir)/../includes \
181 -I$(builddir)/../includes \
182 -I$(builddir)/../../gl \
183 - -I$(srcdir)/.. \
184 - $(NETTLE_CFLAGS) \
185 - $(HOGWEED_CFLAGS) \
186 - $(GMP_CFLAGS)
187 + -I$(srcdir)/..
188
189 if ENABLE_MINITASN1
190 AM_CPPFLAGS += -I$(srcdir)/../minitasn1
191 --
192 1.7.1