Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libmicrohttpd/, net-libs/libmicrohttpd/files/
Date: Fri, 14 Apr 2017 16:30:42
Message-Id: 1492187433.0f39cd3420fe6b5ce309555fd6c271150533b744.blueness@gentoo
1 commit: 0f39cd3420fe6b5ce309555fd6c271150533b744
2 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 14 16:30:16 2017 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 14 16:30:33 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0f39cd34
7
8 net-libs/libmicrohttpd: version bump to 0.9.53
9
10 Package-Manager: Portage-2.3.3, Repoman-2.3.1
11
12 net-libs/libmicrohttpd/Manifest | 1 +
13 ...microhttpd-0.9.53-fix-build-without-epoll.patch | 21 ++++++++
14 net-libs/libmicrohttpd/libmicrohttpd-0.9.53.ebuild | 62 ++++++++++++++++++++++
15 3 files changed, 84 insertions(+)
16
17 diff --git a/net-libs/libmicrohttpd/Manifest b/net-libs/libmicrohttpd/Manifest
18 index 7acdd328062..1fff86a96ce 100644
19 --- a/net-libs/libmicrohttpd/Manifest
20 +++ b/net-libs/libmicrohttpd/Manifest
21 @@ -2,3 +2,4 @@ DIST libmicrohttpd-0.9.47.tar.gz 1075636 SHA256 96bdab4352a09fd3952a346bc0189853
22 DIST libmicrohttpd-0.9.49.tar.gz 1087716 SHA256 9407d8252548ab97ace3276e0032f073820073c0599d43baff832902a8dab11c SHA512 9bae8d187e9567ef706a6d1b806417f2b5f667195adf7a86f96f156982e4cbcf472da10b3220c0679aeceb2c74e7778153160f3b697ac7444de038505b6e94f8 WHIRLPOOL 837c8612eb227c266ed3af773912bdbc215cbadc29766c5de10bce4a0588301213ea6ea140d3c15e6ec96c3dc3bc6b50caee892f30350d1c5e05b83639a61223
23 DIST libmicrohttpd-0.9.51.tar.gz 1114110 SHA256 3000bb0ba219061f2ea60251b8ea3d5f694e8c6ce1706bbff57e7e24867a23c7 SHA512 462178033d5fabc53885189a7f73a343a1a0d2f54e8ff6310a3e74ace3316567927c453773e62ff35150ec36658605d6d0a9c1c38c5d3186d543ca313f4a5912 WHIRLPOOL 9c68282e4f423f251e950f0016d3394c7ce97c85e86a57525a31f832fd2b6b32790a0395a0a0701ad0f4104ff575488ffaed547684d7c3f6f809a3e92bde464d
24 DIST libmicrohttpd-0.9.52.tar.gz 1244489 SHA256 54797f6e763d417627f89f60e4ae0a431dab0523f92f83def23ea02d0defafea SHA512 2cb7fa6ed59ec5f48748cd2aedea8a68629f02ffcf8e86c6d5b57a6622bb5f0ffd7dabfd6c04cc99047ca81eb76efe2a79b34bd6e3de329261a319369232fcf4 WHIRLPOOL b70f91dba5e6e69fe42066345d51bb72248b1c4271fa88c0599d78adf17b3eb79144e5a83159f1636a79a6c9081ebb6274d90fa307d4f78a3edbfc7e0d6bd10a
25 +DIST libmicrohttpd-0.9.53.tar.gz 1301214 SHA256 9b15ec2d381f44936323adfd4f989fa35add517cccbbfa581896b02a393c2cc4 SHA512 2e29595c980cdcf12c1cead62f8938cc32e8c93d3a848e7473c5d5f596c6b6858732df0a3293b93d89577e5a325a62fe82adf3921a76d7184a647489364d7e2c WHIRLPOOL 940eb42aaca8581ab7c7f2f3f6c246bf001956965d5529491d780f377eb00cffbf28aec3069b6a8eb691a78d84e77555ec5554b10ce066a11333d6cae19641a4
26
27 diff --git a/net-libs/libmicrohttpd/files/libmicrohttpd-0.9.53-fix-build-without-epoll.patch b/net-libs/libmicrohttpd/files/libmicrohttpd-0.9.53-fix-build-without-epoll.patch
28 new file mode 100644
29 index 00000000000..ff27c26e3e6
30 --- /dev/null
31 +++ b/net-libs/libmicrohttpd/files/libmicrohttpd-0.9.53-fix-build-without-epoll.patch
32 @@ -0,0 +1,21 @@
33 +commit 01df8861c19a203cea9ef26570893c2b9c0e48b2
34 +Author: Evgeny Grin (Karlson2k) <k2k@×××××.ru>
35 +Date: Wed Apr 12 21:11:28 2017 +0300
36 +
37 + Fixed GNU/Linux builds without epoll
38 +
39 +diff --git a/src/microhttpd/daemon.c b/src/microhttpd/daemon.c
40 +index 49a1b82..02713e3 100644
41 +--- a/src/microhttpd/daemon.c
42 ++++ b/src/microhttpd/daemon.c
43 +@@ -2251,8 +2251,10 @@ send_param_adapter (struct MHD_Connection *connection,
44 + if (0 < ret)
45 + {
46 + /* write successful */
47 ++#ifdef EPOLL_SUPPORT
48 + if (left > (uint64_t)ret)
49 + connection->epoll_state &= ~MHD_EPOLL_STATE_WRITE_READY;
50 ++#endif /* EPOLL_SUPPORT */
51 + return ret;
52 + }
53 + err = MHD_socket_get_error_();
54
55 diff --git a/net-libs/libmicrohttpd/libmicrohttpd-0.9.53.ebuild b/net-libs/libmicrohttpd/libmicrohttpd-0.9.53.ebuild
56 new file mode 100644
57 index 00000000000..9afe482cd6b
58 --- /dev/null
59 +++ b/net-libs/libmicrohttpd/libmicrohttpd-0.9.53.ebuild
60 @@ -0,0 +1,62 @@
61 +# Copyright 1999-2017 Gentoo Foundation
62 +# Distributed under the terms of the GNU General Public License v2
63 +
64 +EAPI="6"
65 +
66 +MY_P="${P/_/}"
67 +
68 +DESCRIPTION="Small C library to run an HTTP server as part of another application"
69 +HOMEPAGE="https://www.gnu.org/software/libmicrohttpd/"
70 +SRC_URI="mirror://gnu/${PN}/${MY_P}.tar.gz"
71 +
72 +LICENSE="LGPL-2.1"
73 +SLOT="0/12"
74 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86"
75 +IUSE="epoll messages ssl static-libs test"
76 +
77 +RDEPEND="ssl? (
78 + dev-libs/libgcrypt:0=
79 + net-libs/gnutls
80 + )"
81 +
82 +# We disable tests below because they're broken,
83 +# but if enabled, we'll need this.
84 +DEPEND="${RDEPEND}
85 + test? (
86 + ssl? ( net-misc/curl[ssl] )
87 + )"
88 +
89 +S=${WORKDIR}/${MY_P}
90 +
91 +DOCS="AUTHORS NEWS README ChangeLog"
92 +
93 +src_prepare() {
94 + eapply "${FILESDIR}"/${P}-fix-build-without-epoll.patch
95 + eapply_user
96 +}
97 +
98 +src_configure() {
99 + econf \
100 + --enable-bauth \
101 + --enable-dauth \
102 + --disable-examples \
103 + --enable-postprocessor \
104 + --disable-thread-names \
105 + $(use_enable epoll) \
106 + $(use_enable test curl) \
107 + $(use_enable messages) \
108 + $(use_enable ssl https) \
109 + $(use_with ssl gnutls) \
110 + $(use_enable static-libs static)
111 +}
112 +
113 +# tests are broken in the portage environment.
114 +src_test() {
115 + :
116 +}
117 +
118 +src_install() {
119 + default
120 +
121 + use static-libs || find "${ED}" -name '*.la' -delete
122 +}