1 |
commit: 07e047c01702ae8d626e555d4834ed84b9a16b24 |
2 |
Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Dec 29 14:18:30 2020 +0000 |
4 |
Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Dec 29 14:19:54 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=07e047c0 |
7 |
|
8 |
net-misc/wget2: Avoid bashisms in configure script |
9 |
|
10 |
Attempt to fix build with autoconf-2.70 |
11 |
|
12 |
Bug: https://bugs.gentoo.org/750857 |
13 |
Package-Manager: Portage-3.0.12, Repoman-3.0.2 |
14 |
Signed-off-by: Lars Wendler <polynomial-c <AT> gentoo.org> |
15 |
|
16 |
.../wget2/files/wget2-1.99.2-autoconf270.patch | 26 +++++++ |
17 |
.../wget2/files/wget2-1.99.2-avoid_bashisms.patch | 84 ++++++++++++++++++++++ |
18 |
net-misc/wget2/wget2-1.99.2.ebuild | 4 ++ |
19 |
3 files changed, 114 insertions(+) |
20 |
|
21 |
diff --git a/net-misc/wget2/files/wget2-1.99.2-autoconf270.patch b/net-misc/wget2/files/wget2-1.99.2-autoconf270.patch |
22 |
new file mode 100644 |
23 |
index 00000000000..f4f3dc19263 |
24 |
--- /dev/null |
25 |
+++ b/net-misc/wget2/files/wget2-1.99.2-autoconf270.patch |
26 |
@@ -0,0 +1,26 @@ |
27 |
+From 580af869093cfda6bc8a9d5901850354a16b3666 Mon Sep 17 00:00:00 2001 |
28 |
+From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@×××.de> |
29 |
+Date: Fri, 25 Dec 2020 18:55:34 +0100 |
30 |
+Subject: [PATCH] * configure.ac: Use AC_CONFIG_MACRO_DIR only once |
31 |
+ |
32 |
+This fixes #547 (autotools 2.70 is more restrictive). |
33 |
+Reported by: Gabriele Balducci |
34 |
+--- |
35 |
+ configure.ac | 1 - |
36 |
+ 1 file changed, 1 deletion(-) |
37 |
+ |
38 |
+diff --git a/configure.ac b/configure.ac |
39 |
+index 7e29b8cba..0a4dc05b9 100644 |
40 |
+--- a/configure.ac |
41 |
++++ b/configure.ac |
42 |
+@@ -100,7 +100,6 @@ AC_CONFIG_FILES([include/wget/wgetver.h]) |
43 |
+ |
44 |
+ AC_CONFIG_SRCDIR([src/wget.c]) |
45 |
+ AC_CONFIG_HEADERS([config.h]) |
46 |
+-AC_CONFIG_MACRO_DIR([m4]) |
47 |
+ |
48 |
+ # Non-verbose make |
49 |
+ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) |
50 |
+-- |
51 |
+GitLab |
52 |
+ |
53 |
|
54 |
diff --git a/net-misc/wget2/files/wget2-1.99.2-avoid_bashisms.patch b/net-misc/wget2/files/wget2-1.99.2-avoid_bashisms.patch |
55 |
new file mode 100644 |
56 |
index 00000000000..9b57117135a |
57 |
--- /dev/null |
58 |
+++ b/net-misc/wget2/files/wget2-1.99.2-avoid_bashisms.patch |
59 |
@@ -0,0 +1,84 @@ |
60 |
+From c2a27f61db2de16fbadd1d52802c667cb0a2f819 Mon Sep 17 00:00:00 2001 |
61 |
+From: =?UTF-8?q?Tim=20R=C3=BChsen?= <tim.ruehsen@×××.de> |
62 |
+Date: Thu, 29 Oct 2020 23:05:18 +0100 |
63 |
+Subject: [PATCH] * configure.ac: Fix configure.ac bashisms |
64 |
+ |
65 |
+Reported-by: Brian Inglis |
66 |
+ |
67 |
+Backported to 1.99.2 release |
68 |
+Signed-off-by: Lars Wendler <polynomial-c@g.o> |
69 |
+--- |
70 |
+ configure.ac | 18 +++++++++--------- |
71 |
+ 1 file changed, 9 insertions(+), 9 deletions(-) |
72 |
+ |
73 |
+diff --git a/configure.ac b/configure.ac |
74 |
+index ab3d9fdf..158d5aea 100644 |
75 |
+--- a/configure.ac |
76 |
++++ b/configure.ac |
77 |
+@@ -350,13 +350,13 @@ if test "$enable_doc" = yes; then |
78 |
+ if test -n "$DOXYGEN" || test -n "$PANDOC"; then |
79 |
+ LIBWGET_DOCS_INFO="yes (found:" |
80 |
+ if test -n "$DOXYGEN"; then |
81 |
+- LIBWGET_DOCS_INFO+=" Doxygen)" |
82 |
++ LIBWGET_DOCS_INFO="$LIBWGET_DOCS_INFO Doxygen)" |
83 |
+ else |
84 |
+ LIBWGET_DOCS_INFO="no" |
85 |
+ fi |
86 |
+ WGET2_DOCS_INFO="yes (found:" |
87 |
+ if test -n "$PANDOC"; then |
88 |
+- WGET2_DOCS_INFO+=" Pandoc)" |
89 |
++ WGET2_DOCS_INFO="$WGET2_DOCS_INFO Pandoc)" |
90 |
+ else |
91 |
+ WGET2_DOCS_INFO="no" |
92 |
+ fi |
93 |
+@@ -440,7 +440,7 @@ PKG_PROG_PKG_CONFIG |
94 |
+ |
95 |
+ AC_ARG_WITH(ssl, AS_HELP_STRING([--with-ssl], [Use SSL/TLS with specified library. Options: 'gnutls' (default), 'openssl', 'wolfssl' or 'none']), with_ssl=$withval, with_ssl=gnutls) |
96 |
+ |
97 |
+-AS_IF([test "x$with_ssl" == "xgnutls"], [ |
98 |
++AS_IF([test "x$with_ssl" = "xgnutls"], [ |
99 |
+ PKG_CHECK_MODULES([GNUTLS], [gnutls], [ |
100 |
+ with_gnutls=yes |
101 |
+ LIBS="$GNUTLS_LIBS $LIBS" |
102 |
+@@ -454,14 +454,14 @@ AS_IF([test "x$with_ssl" == "xgnutls"], [ |
103 |
+ |
104 |
+ AS_IF([test "x$with_gnutls" == xyes], [ |
105 |
+ AC_SEARCH_LIBS(gnutls_hash, gnutls, [with_gnutls_hash=yes]) |
106 |
+- AS_IF([test "x$with_gnutls_hash" == xyes], |
107 |
++ AS_IF([test "x$with_gnutls_hash" = xyes], |
108 |
+ [AC_CHECK_HEADERS([gnutls/crypto.h], [], [], [#include <gnutls/gnutls.h>])]) |
109 |
+ AC_CHECK_HEADERS([gnutls/ocsp.h]) |
110 |
+ AC_CHECK_FUNCS(gnutls_srp_server_get_username gnutls_transport_get_int) |
111 |
+ ]) |
112 |
+ ]) |
113 |
+ |
114 |
+-AS_IF([test "x$with_ssl" == "xopenssl"], [ |
115 |
++AS_IF([test "x$with_ssl" = "xopenssl"], [ |
116 |
+ PKG_CHECK_MODULES([OPENSSL], [openssl], [ |
117 |
+ with_openssl=yes |
118 |
+ LIBS="$OPENSSL_LIBS $LIBS" |
119 |
+@@ -474,7 +474,7 @@ AS_IF([test "x$with_ssl" == "xopenssl"], [ |
120 |
+ ]) |
121 |
+ ]) |
122 |
+ |
123 |
+- AS_IF([test "x$with_openssl" == xyes], [ |
124 |
++ AS_IF([test "x$with_openssl" = xyes], [ |
125 |
+ AC_CHECK_HEADERS([openssl/ssl.h]) |
126 |
+ AC_CHECK_HEADERS([openssl/x509_vfy.h]) |
127 |
+ AC_CHECK_FUNCS(SSL_new X509_STORE_add_lookup) |
128 |
+@@ -846,9 +846,9 @@ AC_CONFIG_FILES([Makefile |
129 |
+ AC_OUTPUT |
130 |
+ |
131 |
+ # Check if expected TLS library was found and print it |
132 |
+-AS_IF([test "x$with_ssl" == xwolfssl && test "x$with_wolfssl" == xno], [ssl_enabled="(not found)"], |
133 |
+- [test "x$with_ssl" == xopenssl && test "x$with_openssl" == xno], [ssl_enabled="(not found)"], |
134 |
+- [test "x$with_ssl" == xgnutls && test "x$with_gnutls" == xno], [ssl_enabled="(not found)"], |
135 |
++AS_IF([test "x$with_ssl" = xwolfssl && test "x$with_wolfssl" = xno], [ssl_enabled="(not found)"], |
136 |
++ [test "x$with_ssl" = xopenssl && test "x$with_openssl" = xno], [ssl_enabled="(not found)"], |
137 |
++ [test "x$with_ssl" = xgnutls && test "x$with_gnutls" = xno], [ssl_enabled="(not found)"], |
138 |
+ []) |
139 |
+ |
140 |
+ AC_MSG_NOTICE([Summary of build options: |
141 |
+-- |
142 |
+2.30.0 |
143 |
+ |
144 |
|
145 |
diff --git a/net-misc/wget2/wget2-1.99.2.ebuild b/net-misc/wget2/wget2-1.99.2.ebuild |
146 |
index 6e48cfdc1ee..9b2066895e5 100644 |
147 |
--- a/net-misc/wget2/wget2-1.99.2.ebuild |
148 |
+++ b/net-misc/wget2/wget2-1.99.2.ebuild |
149 |
@@ -52,6 +52,10 @@ PATCHES=( |
150 |
# Upstream attempts to be "smart" by calling ldconfig in |
151 |
# install-exec-hook |
152 |
"${FILESDIR}"/${PN}-1.99.2-remove_ldconfig_call.patch |
153 |
+ |
154 |
+ # Fixes from upstream |
155 |
+ "${FILESDIR}"/${P}-avoid_bashisms.patch |
156 |
+ "${FILESDIR}"/${P}-autoconf270.patch |
157 |
) |
158 |
|
159 |
src_prepare() { |