Gentoo Archives: gentoo-commits

From: "Maxim Koltsov (maksbotan)" <maksbotan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-libs/ucommon/files/6.1: install_gcrypt.m4_file.patch disable_rtf_gen_doxy.patch gcrypt_autotools.patch
Date: Fri, 27 Jun 2014 08:47:05
Message-Id: 20140627084659.936F62004E@flycatcher.gentoo.org
1 maksbotan 14/06/27 08:46:59
2
3 Added: install_gcrypt.m4_file.patch
4 disable_rtf_gen_doxy.patch gcrypt_autotools.patch
5 Log:
6 Bump to 6.1.8, thanks to slepnoga
7
8 (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key F8DBDADE)
9
10 Revision Changes Path
11 1.1 dev-libs/ucommon/files/6.1/install_gcrypt.m4_file.patch
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ucommon/files/6.1/install_gcrypt.m4_file.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ucommon/files/6.1/install_gcrypt.m4_file.patch?rev=1.1&content-type=text/plain
15
16 Index: install_gcrypt.m4_file.patch
17 ===================================================================
18 diff --git a/m4/libgcrypt.m4 b/m4/libgcrypt.m4
19 new file mode 100644
20 --- /dev/null
21 +++ m4/libgcrypt.m4
22 @@ -0,0 +1,123 @@
23 +dnl Autoconf macros for libgcrypt
24 +dnl Copyright (C) 2002, 2004 Free Software Foundation, Inc.
25 +dnl
26 +dnl This file is free software; as a special exception the author gives
27 +dnl unlimited permission to copy and/or distribute it, with or without
28 +dnl modifications, as long as this notice is preserved.
29 +dnl
30 +dnl This file is distributed in the hope that it will be useful, but
31 +dnl WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
32 +dnl implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
33 +
34 +
35 +dnl AM_PATH_LIBGCRYPT([MINIMUM-VERSION,
36 +dnl [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND ]]])
37 +dnl Test for libgcrypt and define LIBGCRYPT_CFLAGS and LIBGCRYPT_LIBS.
38 +dnl MINIMUN-VERSION is a string with the version number optionalliy prefixed
39 +dnl with the API version to also check the API compatibility. Example:
40 +dnl a MINIMUN-VERSION of 1:1.2.5 won't pass the test unless the installed
41 +dnl version of libgcrypt is at least 1.2.5 *and* the API number is 1. Using
42 +dnl this features allows to prevent build against newer versions of libgcrypt
43 +dnl with a changed API.
44 +dnl
45 +AC_DEFUN([AM_PATH_LIBGCRYPT],
46 +[ AC_ARG_WITH(libgcrypt-prefix,
47 + AC_HELP_STRING([--with-libgcrypt-prefix=PFX],
48 + [prefix where LIBGCRYPT is installed (optional)]),
49 + libgcrypt_config_prefix="$withval", libgcrypt_config_prefix="")
50 + if test x$libgcrypt_config_prefix != x ; then
51 + if test x${LIBGCRYPT_CONFIG+set} != xset ; then
52 + LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
53 + fi
54 + fi
55 +
56 + AC_PATH_TOOL(LIBGCRYPT_CONFIG, libgcrypt-config, no)
57 + tmp=ifelse([$1], ,1:1.2.0,$1)
58 + if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
59 + req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
60 + min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
61 + else
62 + req_libgcrypt_api=0
63 + min_libgcrypt_version="$tmp"
64 + fi
65 +
66 + AC_MSG_CHECKING(for LIBGCRYPT - version >= $min_libgcrypt_version)
67 + ok=no
68 + if test "$LIBGCRYPT_CONFIG" != "no" ; then
69 + req_major=`echo $min_libgcrypt_version | \
70 + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\1/'`
71 + req_minor=`echo $min_libgcrypt_version | \
72 + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\2/'`
73 + req_micro=`echo $min_libgcrypt_version | \
74 + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\)/\3/'`
75 + libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
76 + major=`echo $libgcrypt_config_version | \
77 + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\1/'`
78 + minor=`echo $libgcrypt_config_version | \
79 + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\2/'`
80 + micro=`echo $libgcrypt_config_version | \
81 + sed 's/\([[0-9]]*\)\.\([[0-9]]*\)\.\([[0-9]]*\).*/\3/'`
82 + if test "$major" -gt "$req_major"; then
83 + ok=yes
84 + else
85 + if test "$major" -eq "$req_major"; then
86 + if test "$minor" -gt "$req_minor"; then
87 + ok=yes
88 + else
89 + if test "$minor" -eq "$req_minor"; then
90 + if test "$micro" -ge "$req_micro"; then
91 + ok=yes
92 + fi
93 + fi
94 + fi
95 + fi
96 + fi
97 + fi
98 + if test $ok = yes; then
99 + AC_MSG_RESULT([yes ($libgcrypt_config_version)])
100 + else
101 + AC_MSG_RESULT(no)
102 + fi
103 + if test $ok = yes; then
104 + # If we have a recent libgcrypt, we should also check that the
105 + # API is compatible
106 + if test "$req_libgcrypt_api" -gt 0 ; then
107 + tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
108 + if test "$tmp" -gt 0 ; then
109 + AC_MSG_CHECKING([LIBGCRYPT API version])
110 + if test "$req_libgcrypt_api" -eq "$tmp" ; then
111 + AC_MSG_RESULT([okay])
112 + else
113 + ok=no
114 + AC_MSG_RESULT([does not match. want=$req_libgcrypt_api got=$tmp])
115 + fi
116 + fi
117 + fi
118 + fi
119 + if test $ok = yes; then
120 + LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
121 + LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
122 + ifelse([$2], , :, [$2])
123 + if test x"$host" != x ; then
124 + libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
125 + if test x"$libgcrypt_config_host" != xnone ; then
126 + if test x"$libgcrypt_config_host" != x"$host" ; then
127 + AC_MSG_WARN([[
128 +***
129 +*** The config script $LIBGCRYPT_CONFIG was
130 +*** built for $libgcrypt_config_host and thus may not match the
131 +*** used host $host.
132 +*** You may want to use the configure option --with-libgcrypt-prefix
133 +*** to specify a matching config script.
134 +***]])
135 + fi
136 + fi
137 + fi
138 + else
139 + LIBGCRYPT_CFLAGS=""
140 + LIBGCRYPT_LIBS=""
141 + ifelse([$3], , :, [$3])
142 + fi
143 + AC_SUBST(LIBGCRYPT_CFLAGS)
144 + AC_SUBST(LIBGCRYPT_LIBS)
145 +])
146
147
148
149 1.1 dev-libs/ucommon/files/6.1/disable_rtf_gen_doxy.patch
150
151 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ucommon/files/6.1/disable_rtf_gen_doxy.patch?rev=1.1&view=markup
152 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ucommon/files/6.1/disable_rtf_gen_doxy.patch?rev=1.1&content-type=text/plain
153
154 Index: disable_rtf_gen_doxy.patch
155 ===================================================================
156 --- Doxyfile.orig 2014-06-26 23:56:45.724303475 +0300
157 +++ Doxyfile 2014-06-26 23:57:12.875021734 +0300
158 @@ -40,7 +40,7 @@
159 GENERATE_HTMLHELP = YES
160 GENERATE_TREEVIEW = NO
161 TREEVIEW_WIDTH = 256
162 -GENERATE_LATEX = YES
163 +GENERATE_LATEX = NO
164 COMPACT_LATEX = YES
165 PDF_HYPERLINKS = YES
166 USE_PDFLATEX = NO
167
168
169
170 1.1 dev-libs/ucommon/files/6.1/gcrypt_autotools.patch
171
172 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ucommon/files/6.1/gcrypt_autotools.patch?rev=1.1&view=markup
173 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/ucommon/files/6.1/gcrypt_autotools.patch?rev=1.1&content-type=text/plain
174
175 Index: gcrypt_autotools.patch
176 ===================================================================
177 diff --git a/Makefile.am b/Makefile.am
178 --- a/Makefile.am
179 +++ b/Makefile.am
180 @@ -8,6 +8,8 @@
181 # WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
182 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
183
184 +ACLOCAL_AMFLAGS = -I m4
185 +
186 EXTRA_DIST = autogen.sh README* *.pc.in *.spec.in *.spec *-config.in \
187 *-config.1 Doxyfile cmodel.sh BUILDS SUPPORT COPYING* COPYRIGHT \
188 CMakeLists.txt ucommon-config.cmake ucommon.pc.cmake cmake-abi.sh \
189 diff --git a/configure.ac b/configure.ac
190 --- a/configure.ac
191 +++ b/configure.ac
192 @@ -40,6 +40,9 @@
193
194 CHECKFLAGS="$CHECKFLAGS"
195
196 +m4_include([m4/libgcrypt.m4])
197 +
198 +
199 case "$with_crypto" in
200 ssl|openssl)
201 ssl="openssl"
202 @@ -698,6 +701,8 @@
203 gnutls|gnu)
204 if test ! -z "$GNUTLS_LIBS" ; then
205 SECURE_LIBS="$GNUTLS_LIBS"
206 + AM_PATH_LIBGCRYPT
207 + SECURE_LIBS="$GNUTLS_LIBS $LIBGCRYPT_LIBS"
208 SECURE="gnutls"
209 fi
210 ;;
211 diff --git a/utils/Makefile.am b/utils/Makefile.am
212 --- a/utils/Makefile.am
213 +++ b/utils/Makefile.am
214 @@ -9,9 +9,9 @@
215 # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
216
217 MAINTAINERCLEANFILES = Makefile.in Makefile
218 -AM_CXXFLAGS = -I$(top_srcdir)/inc @UCOMMON_FLAGS@
219 +AM_CXXFLAGS = -I$(top_srcdir)/inc @UCOMMON_FLAGS@ @LIBGCRYPT_CFLAGS@
220 AM_CPPFLAGS = -I$(top_srcdir)/inc
221 -LDADD = ../corelib/libucommon.la @UCOMMON_LIBS@ @UCOMMON_CLINK@
222 +LDADD = ../corelib/libucommon.la @UCOMMON_LIBS@ @UCOMMON_CLINK@ @LIBGCRYPT_LIBS@
223 EXTRA_DIST = *.1
224
225 man_MANS = args.1 scrub-files.1 mdsum.1 zerofill.1 car.1 sockaddr.1 \
226 @@ -30,7 +30,7 @@
227 scrub_files_LDFLAGS = @SECURE_LOCAL@
228
229 mdsum_SOURCES = mdsum.cpp
230 -mdsum_LDFLAGS = @SECURE_LOCAL@
231 +mdsum_LDFLAGS = @SECURE_LOCAL@ @LIBGCRYPT_LIBS@
232
233 zerofill_SOURCES = zerofill.cpp
234 zerofill_LDFLAGS = @SECURE_LOCAL@