diff options
author | Yixun Lan <dlan@gentoo.org> | 2016-10-12 18:01:31 +0800 |
---|---|---|
committer | Yixun Lan <dlan@gentoo.org> | 2016-10-12 18:04:52 +0800 |
commit | 2d5cfa648619324bf830739e69bab087449a8f56 (patch) | |
tree | c02554bd992ff0415360c6b05ac66415a827a68c | |
parent | virtual/eject: Removed sys-block/eject. Bumped to EAPI-6. (diff) | |
download | gentoo-2d5cfa648619324bf830739e69bab087449a8f56.tar.gz gentoo-2d5cfa648619324bf830739e69bab087449a8f56.tar.bz2 gentoo-2d5cfa648619324bf830739e69bab087449a8f56.zip |
net-misc/tinc: fix USE=upnp build err
Gentoo-Bug: 595372
Package-Manager: portage-2.3.2
-rw-r--r-- | net-misc/tinc/files/tinc-1.1_pre14-upnp.patch | 13 | ||||
-rw-r--r-- | net-misc/tinc/tinc-1.1_pre14.ebuild | 4 |
2 files changed, 17 insertions, 0 deletions
diff --git a/net-misc/tinc/files/tinc-1.1_pre14-upnp.patch b/net-misc/tinc/files/tinc-1.1_pre14-upnp.patch new file mode 100644 index 000000000000..1d037efe8c3d --- /dev/null +++ b/net-misc/tinc/files/tinc-1.1_pre14-upnp.patch @@ -0,0 +1,13 @@ +diff --git a/src/upnp.c b/src/upnp.c +index abd2f92..3bfc770 100644 +--- a/src/upnp.c ++++ b/src/upnp.c +@@ -57,7 +57,7 @@ static struct UPNPDev *upnp_discover(int delay, int *error) { + + #elif MINIUPNPC_API_VERSION <= 14 + +- return upnpDiscover(delay, NULL NULL, false, false, 2, error); ++ return upnpDiscover(delay, NULL, NULL, false, false, 2, error); + + #else + diff --git a/net-misc/tinc/tinc-1.1_pre14.ebuild b/net-misc/tinc/tinc-1.1_pre14.ebuild index 96313dca9b16..3a9eb67ae291 100644 --- a/net-misc/tinc/tinc-1.1_pre14.ebuild +++ b/net-misc/tinc/tinc-1.1_pre14.ebuild @@ -38,6 +38,10 @@ RDEPEND="${DEPEND} S="${WORKDIR}/${MY_P}" +src_prepare() { + epatch "${FILESDIR}"/${P}-upnp.patch +} + src_configure() { econf \ --enable-jumbograms \ |