Gentoo Archives: gentoo-commits

From: Yixun Lan <dlan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/tinc/files/, net-misc/tinc/
Date: Wed, 12 Oct 2016 10:05:08
Message-Id: 1476266692.2d5cfa648619324bf830739e69bab087449a8f56.dlan@gentoo
1 commit: 2d5cfa648619324bf830739e69bab087449a8f56
2 Author: Yixun Lan <dlan <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 12 10:01:31 2016 +0000
4 Commit: Yixun Lan <dlan <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 12 10:04:52 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d5cfa64
7
8 net-misc/tinc: fix USE=upnp build err
9
10 Gentoo-Bug: 595372
11
12 Package-Manager: portage-2.3.2
13
14 net-misc/tinc/files/tinc-1.1_pre14-upnp.patch | 13 +++++++++++++
15 net-misc/tinc/tinc-1.1_pre14.ebuild | 4 ++++
16 2 files changed, 17 insertions(+)
17
18 diff --git a/net-misc/tinc/files/tinc-1.1_pre14-upnp.patch b/net-misc/tinc/files/tinc-1.1_pre14-upnp.patch
19 new file mode 100644
20 index 00000000..1d037ef
21 --- /dev/null
22 +++ b/net-misc/tinc/files/tinc-1.1_pre14-upnp.patch
23 @@ -0,0 +1,13 @@
24 +diff --git a/src/upnp.c b/src/upnp.c
25 +index abd2f92..3bfc770 100644
26 +--- a/src/upnp.c
27 ++++ b/src/upnp.c
28 +@@ -57,7 +57,7 @@ static struct UPNPDev *upnp_discover(int delay, int *error) {
29 +
30 + #elif MINIUPNPC_API_VERSION <= 14
31 +
32 +- return upnpDiscover(delay, NULL NULL, false, false, 2, error);
33 ++ return upnpDiscover(delay, NULL, NULL, false, false, 2, error);
34 +
35 + #else
36 +
37
38 diff --git a/net-misc/tinc/tinc-1.1_pre14.ebuild b/net-misc/tinc/tinc-1.1_pre14.ebuild
39 index 96313dc..3a9eb67 100644
40 --- a/net-misc/tinc/tinc-1.1_pre14.ebuild
41 +++ b/net-misc/tinc/tinc-1.1_pre14.ebuild
42 @@ -38,6 +38,10 @@ RDEPEND="${DEPEND}
43
44 S="${WORKDIR}/${MY_P}"
45
46 +src_prepare() {
47 + epatch "${FILESDIR}"/${P}-upnp.patch
48 +}
49 +
50 src_configure() {
51 econf \
52 --enable-jumbograms \