1 |
commit: d5fc70b062c01731a5f807d9b44d305b17052f24 |
2 |
Author: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 23 13:24:47 2016 +0000 |
4 |
Commit: Michael Haubenwallner <haubi <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 30 10:21:28 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5fc70b0 |
7 |
|
8 |
net-misc/wget: add gnulib cygwin patch (#584312) |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
.../wget-1.17.1-gnulib-cygwin-sys_select.patch | 22 ++++++++++++++++++++++ |
13 |
net-misc/wget/wget-1.17.1-r1.ebuild | 1 + |
14 |
2 files changed, 23 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/wget/files/wget-1.17.1-gnulib-cygwin-sys_select.patch b/net-misc/wget/files/wget-1.17.1-gnulib-cygwin-sys_select.patch |
17 |
new file mode 100644 |
18 |
index 0000000..0755136 |
19 |
--- /dev/null |
20 |
+++ b/net-misc/wget/files/wget-1.17.1-gnulib-cygwin-sys_select.patch |
21 |
@@ -0,0 +1,22 @@ |
22 |
+https://lists.gnu.org/archive/html/bug-gnulib/2016-03/msg00065.html |
23 |
+ |
24 |
+--- gnulib/lib/sys_select.in.h.orig 2014-08-03 15:31:22.000000000 +0200 |
25 |
++++ gnulib/lib/sys_select.in.h 2016-05-19 12:57:51.243064700 +0200 |
26 |
+@@ -81,7 +81,7 @@ |
27 |
+ Also, Mac OS X, AIX, HP-UX, IRIX, Solaris, Interix declare select() |
28 |
+ in <sys/time.h>. |
29 |
+ But avoid namespace pollution on glibc systems. */ |
30 |
+-# ifndef __GLIBC__ |
31 |
++# if !(defined __GLIBC__ || defined __NEWLIB__) |
32 |
+ # include <sys/time.h> |
33 |
+ # endif |
34 |
+ |
35 |
+@@ -102,7 +102,7 @@ |
36 |
+ But avoid namespace pollution on glibc systems. |
37 |
+ Do this after the include_next (for the sake of OpenBSD 5.0) but before |
38 |
+ the split double-inclusion guard (for the sake of Solaris). */ |
39 |
+-#if !(defined __GLIBC__ && !defined __UCLIBC__) |
40 |
++#if !((defined __GLIBC__ || defined __NEWLIB__) && !defined __UCLIBC__) |
41 |
+ # include <signal.h> |
42 |
+ #endif |
43 |
+ |
44 |
|
45 |
diff --git a/net-misc/wget/wget-1.17.1-r1.ebuild b/net-misc/wget/wget-1.17.1-r1.ebuild |
46 |
index c9bfcbc..ad8ff31 100644 |
47 |
--- a/net-misc/wget/wget-1.17.1-r1.ebuild |
48 |
+++ b/net-misc/wget/wget-1.17.1-r1.ebuild |
49 |
@@ -51,6 +51,7 @@ pkg_setup() { |
50 |
|
51 |
src_prepare() { |
52 |
epatch "${FILESDIR}"/${P}-progress-bar-segv.patch |
53 |
+ epatch "${FILESDIR}"/${P}-gnulib-cygwin-sys_select.patch |
54 |
} |
55 |
|
56 |
src_configure() { |