1 |
polynomial-c 14/01/23 07:41:32 |
2 |
|
3 |
Added: wget-1.15-test_fix.patch wget-1.15-pkg-config.patch |
4 |
Log: |
5 |
Version bump |
6 |
|
7 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x981CA6FC) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 net-misc/wget/files/wget-1.15-test_fix.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/files/wget-1.15-test_fix.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/files/wget-1.15-test_fix.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: wget-1.15-test_fix.patch |
16 |
=================================================================== |
17 |
From 3a47a1a918e9076133c046f8792cf68973f7c585 Mon Sep 17 00:00:00 2001 |
18 |
From: Lars Wendler <polynomial-c@g.o> |
19 |
Date: Wed, 22 Jan 2014 22:07:18 +0100 |
20 |
Subject: [PATCH] Don't use --debug in Test--post-file.px |
21 |
|
22 |
Signed-off-by: Lars Wendler <polynomial-c@g.o> |
23 |
--- |
24 |
tests/Test--post-file.px | 2 +- |
25 |
1 file changed, 1 insertion(+), 1 deletion(-) |
26 |
|
27 |
diff --git a/tests/Test--post-file.px b/tests/Test--post-file.px |
28 |
index 1c017b7..1212af6 100755 |
29 |
--- a/tests/Test--post-file.px |
30 |
+++ b/tests/Test--post-file.px |
31 |
@@ -8,7 +8,7 @@ use HTTPTest; |
32 |
|
33 |
############################################################################### |
34 |
|
35 |
-my $cmdline = $WgetTest::WGETPATH . " -d --post-file=nofile http://localhost:{{port}}/"; |
36 |
+my $cmdline = $WgetTest::WGETPATH . " --post-file=nofile http://localhost:{{port}}/"; |
37 |
|
38 |
my $expected_error_code = 3; |
39 |
|
40 |
-- |
41 |
1.8.5.3 |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.1 net-misc/wget/files/wget-1.15-pkg-config.patch |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/files/wget-1.15-pkg-config.patch?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/wget/files/wget-1.15-pkg-config.patch?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: wget-1.15-pkg-config.patch |
52 |
=================================================================== |
53 |
From 0f3c2a0720dd6dd86837d72f032644058e56cacd Mon Sep 17 00:00:00 2001 |
54 |
From: Mike Frysinger <vapier@g.o> |
55 |
Date: Wed, 22 Jan 2014 14:01:24 +0100 |
56 |
Subject: [PATCH] detect openssl/pcre/libuuid/zlib via pkg-config if it's |
57 |
available |
58 |
|
59 |
Newer versions of these packages ship with pkg-config files, so if we can |
60 |
detect it via those, do so. If that fails, fall back to the old methods. |
61 |
|
62 |
Forward-ported to 1.15 release from b97942cd6b496501b396ea3bc2710010f4591542 |
63 |
(Mon, 21 May 2012 18:39:59 -0400) |
64 |
|
65 |
Signed-off-by: Lars Wendler <polynomial-c@g.o> |
66 |
--- |
67 |
configure.ac | 102 +++++++++++++++++++++++++++++++++++++++++------------------ |
68 |
1 file changed, 72 insertions(+), 30 deletions(-) |
69 |
|
70 |
diff --git a/configure.ac b/configure.ac |
71 |
index b24588f..088ef22 100644 |
72 |
--- a/configure.ac |
73 |
+++ b/configure.ac |
74 |
@@ -68,6 +68,9 @@ AC_ARG_WITH(ssl, |
75 |
AC_ARG_WITH(zlib, |
76 |
[[ --without-zlib disable zlib ]]) |
77 |
|
78 |
+AC_ARG_ENABLE(pcre, AC_HELP_STRING([--disable-pcre], |
79 |
+ [Disable PCRE style regular expressions])) |
80 |
+ |
81 |
AC_ARG_ENABLE(opie, |
82 |
[ --disable-opie disable support for opie or s/key FTP login], |
83 |
ENABLE_OPIE=$enableval, ENABLE_OPIE=yes) |
84 |
@@ -237,12 +240,26 @@ dnl |
85 |
dnl Checks for libraries. |
86 |
dnl |
87 |
|
88 |
+PKG_PROG_PKG_CONFIG |
89 |
+ |
90 |
AS_IF([test x"$with_zlib" != xno], [ |
91 |
with_zlib=yes |
92 |
- AC_CHECK_LIB(z, compress) |
93 |
+ PKG_CHECK_MODULES([ZLIB], zlib, [ |
94 |
+ LIBS="$ZLIB_LIBS $LIBS" |
95 |
+ CFLAGS="$ZLIB_CFLAGS $CFLAGS" |
96 |
+ ], [ |
97 |
+ AC_CHECK_LIB(z, compress) |
98 |
+ ]) |
99 |
]) |
100 |
|
101 |
AS_IF([test x"$with_ssl" = xopenssl], [ |
102 |
+ PKG_CHECK_MODULES([OPENSSL], [openssl], [ |
103 |
+ AC_MSG_NOTICE([compiling in support for SSL via OpenSSL]) |
104 |
+ AC_LIBOBJ([openssl]) |
105 |
+ LIBS="$OPENSSL_LIBS $LIBS" |
106 |
+ CFLAGS="$OPENSSL_CFLAGS -DHAVE_LIBSSL $CFLAGS" |
107 |
+ LIBSSL=" " # ntlm check below wants this |
108 |
+ ], [ |
109 |
dnl As of this writing (OpenSSL 0.9.6), the libcrypto shared library |
110 |
dnl doesn't record its dependency on libdl, so we need to make sure |
111 |
dnl -ldl ends up in LIBS on systems that have it. Most OSes use |
112 |
@@ -276,9 +293,9 @@ AS_IF([test x"$with_ssl" = xopenssl], [ |
113 |
;; |
114 |
esac |
115 |
|
116 |
- AS_IF([test x$ssl_found != xyes], [ |
117 |
- dnl Now actually check for -lssl if it wasn't already found |
118 |
- AC_LIB_HAVE_LINKFLAGS([ssl], [crypto], [ |
119 |
+ AS_IF([test x$ssl_found != xyes], [ |
120 |
+ dnl Now actually check for -lssl if it wasn't already found |
121 |
+ AC_LIB_HAVE_LINKFLAGS([ssl], [crypto], [ |
122 |
#include <openssl/ssl.h> |
123 |
#include <openssl/x509.h> |
124 |
#include <openssl/err.h> |
125 |
@@ -286,17 +303,18 @@ AS_IF([test x"$with_ssl" = xopenssl], [ |
126 |
#include <openssl/des.h> |
127 |
#include <openssl/md4.h> |
128 |
#include <openssl/md5.h> |
129 |
- ], [SSL_library_init ()]) |
130 |
- if test x"$LIBSSL" != x |
131 |
- then |
132 |
- ssl_found=yes |
133 |
- AC_MSG_NOTICE([compiling in support for SSL via OpenSSL]) |
134 |
- AC_LIBOBJ([openssl]) |
135 |
- LIBS="$LIBSSL $LIBS" |
136 |
- elif test x"$with_ssl" != x |
137 |
- then |
138 |
- AC_MSG_ERROR([--with-ssl=openssl was given, but SSL is not available.]) |
139 |
- fi |
140 |
+ ], [SSL_library_init ()]) |
141 |
+ if test x"$LIBSSL" != x |
142 |
+ then |
143 |
+ ssl_found=yes |
144 |
+ AC_MSG_NOTICE([compiling in support for SSL via OpenSSL]) |
145 |
+ AC_LIBOBJ([openssl]) |
146 |
+ LIBS="$LIBSSL $LIBS" |
147 |
+ elif test x"$with_ssl" != x |
148 |
+ then |
149 |
+ AC_MSG_ERROR([--with-ssl=openssl was given, but SSL is not available.]) |
150 |
+ fi |
151 |
+ ]) |
152 |
]) |
153 |
|
154 |
], [ |
155 |
@@ -305,6 +323,13 @@ AS_IF([test x"$with_ssl" = xopenssl], [ |
156 |
dnl default is -lgnutls |
157 |
with_ssl=gnutls |
158 |
|
159 |
+ PKG_CHECK_MODULES([GNUTLS], [gnutls], [ |
160 |
+ AC_MSG_NOTICE([compiling in support for SSL via GnuTLS]) |
161 |
+ AC_LIBOBJ([gnutls]) |
162 |
+ LIBS="$GNUTLS_LIBS $LIBS" |
163 |
+ CFLAGS="$GNUTLS_CFLAGS -DHAVE_LIBGNUTLS $CFLAGS" |
164 |
+ ], [ |
165 |
+ |
166 |
dnl Now actually check for -lgnutls |
167 |
AC_LIB_HAVE_LINKFLAGS([gnutls], [], [ |
168 |
#include <gnutls/gnutls.h> |
169 |
@@ -319,6 +344,8 @@ AS_IF([test x"$with_ssl" = xopenssl], [ |
170 |
AC_MSG_ERROR([--with-ssl=gnutls was given, but GNUTLS is not available.]) |
171 |
fi |
172 |
|
173 |
+ ]) |
174 |
+ |
175 |
AC_CHECK_FUNCS(gnutls_priority_set_direct) |
176 |
]) # endif: --with-ssl != no? |
177 |
]) # endif: --with-ssl == openssl? |
178 |
@@ -535,26 +562,41 @@ dnl |
179 |
dnl Check for UUID |
180 |
dnl |
181 |
|
182 |
-AC_CHECK_HEADER(uuid/uuid.h, |
183 |
- AC_CHECK_LIB(uuid, uuid_generate, |
184 |
- [LIBS="${LIBS} -luuid" |
185 |
- AC_DEFINE([HAVE_LIBUUID], 1, |
186 |
- [Define if libuuid is available.]) |
187 |
- ]) |
188 |
-) |
189 |
+AC_ARG_WITH(libuuid, AC_HELP_STRING([--without-libuuid], |
190 |
+ [Generate UUIDs for WARC files via libuuid])) |
191 |
+AS_IF([test "X$with_libuuid" != "Xno"],[ |
192 |
+ PKG_CHECK_MODULES([UUID], uuid, [ |
193 |
+ LIBS="$UUID_LIBS $LIBS" |
194 |
+ CFLAGS="$UUID_CFLAGS $CFLAGS" |
195 |
+ ], [ |
196 |
+ AC_CHECK_HEADER(uuid/uuid.h, |
197 |
+ AC_CHECK_LIB(uuid, uuid_generate, |
198 |
+ [LIBS="${LIBS} -luuid" |
199 |
+ AC_DEFINE([HAVE_LIBUUID], 1, |
200 |
+ [Define if libuuid is available.]) |
201 |
+ ]) |
202 |
+ ) |
203 |
+ ]) |
204 |
+]) |
205 |
|
206 |
dnl |
207 |
dnl Check for PCRE |
208 |
dnl |
209 |
|
210 |
-AC_CHECK_HEADER(pcre.h, |
211 |
- AC_CHECK_LIB(pcre, pcre_compile, |
212 |
- [LIBS="${LIBS} -lpcre" |
213 |
- AC_DEFINE([HAVE_LIBPCRE], 1, |
214 |
- [Define if libpcre is available.]) |
215 |
- ]) |
216 |
-) |
217 |
- |
218 |
+AS_IF([test "X$enable_pcre" != "Xno"],[ |
219 |
+ PKG_CHECK_MODULES([PCRE], libpcre, [ |
220 |
+ LIBS="$PCRE_LIBS $LIBS" |
221 |
+ CFLAGS="$PCRE_CFLAGS $CFLAGS" |
222 |
+ ], [ |
223 |
+ AC_CHECK_HEADER(pcre.h, |
224 |
+ AC_CHECK_LIB(pcre, pcre_compile, |
225 |
+ [LIBS="${LIBS} -lpcre" |
226 |
+ AC_DEFINE([HAVE_LIBPCRE], 1, |
227 |
+ [Define if libpcre is available.]) |
228 |
+ ]) |
229 |
+ ) |
230 |
+ ]) |
231 |
+]) |
232 |
|
233 |
dnl Needed by src/Makefile.am |
234 |
AM_CONDITIONAL([IRI_IS_ENABLED], [test "X$iri" != "Xno"]) |
235 |
-- |
236 |
1.8.5.3 |