1 |
commit: 5a27b2e7330527a3b1020be3a43ad021197226dc |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 27 13:25:56 2017 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 27 13:25:56 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5a27b2e7 |
7 |
|
8 |
net-libs/wvstreams: Add patch for bug #614810. |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.3 |
11 |
|
12 |
...ytes-should-be-enough-right-question-mark.patch | 11 +++ |
13 |
net-libs/wvstreams/wvstreams-4.6.1-r5.ebuild | 96 ++++++++++++++++++++++ |
14 |
2 files changed, 107 insertions(+) |
15 |
|
16 |
diff --git a/net-libs/wvstreams/files/wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch b/net-libs/wvstreams/files/wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch |
17 |
new file mode 100644 |
18 |
index 00000000000..15fb13ca633 |
19 |
--- /dev/null |
20 |
+++ b/net-libs/wvstreams/files/wvstreams-4.6.1-2048-bytes-should-be-enough-right-question-mark.patch |
21 |
@@ -0,0 +1,11 @@ |
22 |
+--- a/utils/wvtask.cc |
23 |
++++ b/utils/wvtask.cc |
24 |
+@@ -429,7 +429,7 @@ |
25 |
+ total = (val+1) * (size_t)1024; |
26 |
+ |
27 |
+ if (!use_shared_stack()) |
28 |
+- total = 1024; // enough to save the do_task stack frame |
29 |
++ total = 2048; // enough to save the do_task stack frame |
30 |
+ |
31 |
+ // set up a stack frame for the new task. This runs once |
32 |
+ // per get_stack. |
33 |
|
34 |
diff --git a/net-libs/wvstreams/wvstreams-4.6.1-r5.ebuild b/net-libs/wvstreams/wvstreams-4.6.1-r5.ebuild |
35 |
new file mode 100644 |
36 |
index 00000000000..8d33d4bb718 |
37 |
--- /dev/null |
38 |
+++ b/net-libs/wvstreams/wvstreams-4.6.1-r5.ebuild |
39 |
@@ -0,0 +1,96 @@ |
40 |
+# Copyright 1999-2017 Gentoo Foundation |
41 |
+# Distributed under the terms of the GNU General Public License v2 |
42 |
+ |
43 |
+EAPI=6 |
44 |
+inherit autotools eutils flag-o-matic toolchain-funcs versionator |
45 |
+ |
46 |
+DESCRIPTION="A network programming library in C++" |
47 |
+HOMEPAGE="http://alumnit.ca/wiki/?WvStreams" |
48 |
+SRC_URI="https://wvstreams.googlecode.com/files/${P}.tar.gz" |
49 |
+ |
50 |
+LICENSE="GPL-2" |
51 |
+SLOT="0" |
52 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~sparc ~x86" |
53 |
+IUSE="pam doc +ssl +dbus debug boost" |
54 |
+ |
55 |
+#Tests fail if openssl is not compiled with -DPURIFY. Gentoo's isn't. FAIL! |
56 |
+RESTRICT="test" |
57 |
+ |
58 |
+#QA Fail: xplc is compiled as a part of wvstreams. |
59 |
+#It'll take a larger patching effort to get it extracted, since upstream integrated it |
60 |
+#more tightly this time. Probably for the better since upstream xplc seems dead. |
61 |
+ |
62 |
+RDEPEND=" |
63 |
+ <dev-libs/openssl-1.1:0= |
64 |
+ sys-libs/readline:0= |
65 |
+ sys-libs/zlib |
66 |
+ dbus? ( >=sys-apps/dbus-1.4.20 ) |
67 |
+ pam? ( virtual/pam ) |
68 |
+" |
69 |
+DEPEND=" |
70 |
+ ${RDEPEND} |
71 |
+ virtual/pkgconfig |
72 |
+ doc? ( app-doc/doxygen ) |
73 |
+ boost? ( >=dev-libs/boost-1.34.1:= ) |
74 |
+" |
75 |
+DOCS="ChangeLog README*" |
76 |
+PATCHES=( |
77 |
+ "${FILESDIR}"/${P}-autoconf.patch |
78 |
+ "${FILESDIR}"/${P}-fix-c++14.patch |
79 |
+ "${FILESDIR}"/${P}-gcc47.patch |
80 |
+ "${FILESDIR}"/${P}-glibc212.patch |
81 |
+ "${FILESDIR}"/${P}-openssl-1.0.0.patch |
82 |
+ "${FILESDIR}"/${P}-parallel-make.patch |
83 |
+ "${FILESDIR}"/${P}-_DEFAULT_SOURCE.patch |
84 |
+ "${FILESDIR}"/${P}-2048-bytes-should-be-enough-right-question-mark.patch |
85 |
+) |
86 |
+ |
87 |
+src_prepare() { |
88 |
+ default |
89 |
+ |
90 |
+ eautoreconf |
91 |
+} |
92 |
+ |
93 |
+src_configure() { |
94 |
+ append-flags -fno-strict-aliasing |
95 |
+ append-flags -fno-tree-dce -fno-optimize-sibling-calls #421375 |
96 |
+ |
97 |
+ tc-export AR CXX |
98 |
+ |
99 |
+ use boost && export ac_cv_header_tr1_functional=no |
100 |
+ |
101 |
+ econf \ |
102 |
+ $(use_enable debug) \ |
103 |
+ $(use_with dbus) \ |
104 |
+ $(use_with pam) \ |
105 |
+ --cache-file=${T}/config.cache \ |
106 |
+ --disable-optimization \ |
107 |
+ --localstatedir=/var \ |
108 |
+ --with-openssl \ |
109 |
+ --with-zlib \ |
110 |
+ --without-qt \ |
111 |
+ --without-tcl \ |
112 |
+ --without-valgrind |
113 |
+} |
114 |
+ |
115 |
+src_compile() { |
116 |
+ default |
117 |
+ |
118 |
+ if use doc; then |
119 |
+ doxygen || die |
120 |
+ fi |
121 |
+} |
122 |
+ |
123 |
+src_test() { |
124 |
+ emake test |
125 |
+} |
126 |
+ |
127 |
+src_install() { |
128 |
+ default |
129 |
+ |
130 |
+ if use doc; then |
131 |
+ #the list of files is too big for dohtml -r Docs/doxy-html/* |
132 |
+ docinto html |
133 |
+ dodoc -r Docs/doxy-html/* |
134 |
+ fi |
135 |
+} |