diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-08-02 19:14:55 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-08-02 19:14:55 +0100 |
commit | b24bd25253fe093f722ab576d29fdc41d04cb1ee (patch) | |
tree | 0fcf2afd9f852c4d4c291cf8afaa2c244d598105 /media-libs/liblo | |
parent | 121ed4eec41fbf03e1998d09eede1bf449da63b9 (diff) |
gentoo resync : 02.08.2019
Diffstat (limited to 'media-libs/liblo')
-rw-r--r-- | media-libs/liblo/Manifest | 3 | ||||
-rw-r--r-- | media-libs/liblo/files/liblo-0.29-ipv6_build_fix.patch | 133 | ||||
-rw-r--r-- | media-libs/liblo/liblo-0.29.ebuild | 48 |
3 files changed, 0 insertions, 184 deletions
diff --git a/media-libs/liblo/Manifest b/media-libs/liblo/Manifest index 3f1da0cf4fae..378249a03bb3 100644 --- a/media-libs/liblo/Manifest +++ b/media-libs/liblo/Manifest @@ -1,6 +1,3 @@ -AUX liblo-0.29-ipv6_build_fix.patch 4943 BLAKE2B 3555606b1f3aa1409facd5bb81947b02bfc5eab60463134e591249d3eef0b3638eaa002feb4b101decd344efe751310b15d8e8e645d2a2fc9345a88987a2eb20 SHA512 3f077109bcc8e0e5ffb18e41b8e27a9809aa00f59dbba40c30f3a83a526aad4ca25e620b0fb59825de5da37e27b4596572cfad0769c330eece1cfe857293dc3f -DIST liblo-0.29.tar.gz 645313 BLAKE2B 2ef68c49446c83e13541e626eb666360f4b1b579abd2685a9eeaf18989e0252860a7c2eb99e9f6991210873b60dd4b0a62f4f2adfe88c8ac2e069b41fea0e2d4 SHA512 11e20725a049c55c02ef8cd106be5802507f3df95422d8dad10009bdd1237af7517e3261c7336c3005e21ae8fd1e663badef46e4bae006c7af70520bdb336c7c DIST liblo-0.30.tar.gz 641498 BLAKE2B d884cc723d770f45414e838b6f2520c1f3b2a11972a9977d19b20ba68bc653f895eeb21ba0182a09fde1f096c9be084def1572f747463cd71e96bf0022ef7549 SHA512 51132933cc23237b70ed08fa7986a4a9f838529b83807746b358bcc171f8bbce7f37115b7c855520c9219bae93c74e502aebfb90e44dabdc6d0a00b8335336e3 -EBUILD liblo-0.29.ebuild 954 BLAKE2B 7fb70af478e08e76f4a78ef76cf4fe55437765097bcfd0041eacf189238f6b0a5521d462bc2e19b990e8d1b197b731db2cc424d1d9cfab9257ddc29b433a025f SHA512 bbb2fdae4173ece64cf88700ca30bf206c1c1c134e4f6d9ce4f008536d065cc38113102440d0c4a70ef369a50466678c1f8d56a12661757c0bd5352709722fc5 EBUILD liblo-0.30.ebuild 916 BLAKE2B 2f92abf52d3aaedf60ecf0916bd454ce9678f9aebef4c87708170ab50545f748ad7da596c0fbd9843595b4d060cda3eaa9b6fb0f5d83e18e621f5fc29d68fff6 SHA512 0e1c6be66f68f6446e20873a3ec4becfda57ec4e52d3b5d9c660574b3c994a371e4702166fc36264862baaab2111c09d6886752032a81321346464c70219a055 MISC metadata.xml 470 BLAKE2B 1402a4921f55313ebaa73a1b4733f9e850943fe23033fdd0980df892665ed42355762d27c64f2091a23d4d72e991498628dcca0a26df55603b086ed3c87ab6f5 SHA512 2604ac7fbd125c9f45faeefcad35a40bcd65d4034311cda5a95ceaaa3904b7e46b6e449f0373ad6f0ffca66ff9bd23d785a035a63888adc754939e19fb93eb56 diff --git a/media-libs/liblo/files/liblo-0.29-ipv6_build_fix.patch b/media-libs/liblo/files/liblo-0.29-ipv6_build_fix.patch deleted file mode 100644 index 484fddbd6032..000000000000 --- a/media-libs/liblo/files/liblo-0.29-ipv6_build_fix.patch +++ /dev/null @@ -1,133 +0,0 @@ -From 968dff4d576ca102525c81beddb36a623890424b Mon Sep 17 00:00:00 2001 -From: Stephen Sinclair <radarsat1@gmail.com> -Date: Tue, 29 Aug 2017 14:32:24 -0300 -Subject: [PATCH] Resolve hostname using getnameinfo for ipv6 support. - -Iterates on interfaces, possibly searching for a pre-selected -interface, and resolves the hostname associated with non-localhost -addresses. - -Fixes #56, fix compilation with --enable-ipv6. ---- - src/server.c | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++-------- - src/testlo.c | 7 ++++++ - 2 files changed, 72 insertions(+), 9 deletions(-) - -diff --git a/src/server.c b/src/server.c -index cf20495..4aff673 100644 ---- a/src/server.c -+++ b/src/server.c -@@ -55,6 +55,10 @@ - #endif - #include <sys/un.h> - #include <arpa/inet.h> -+#include <netinet/in.h> -+#ifdef HAVE_GETIFADDRS -+#include <ifaddrs.h> -+#endif - #endif - - #if defined(WIN32) || defined(_MSC_VER) -@@ -298,20 +302,72 @@ void lo_server_resolve_hostname(lo_server s) - /* Set hostname to empty string */ - hostname[0] = '\0'; - --#ifdef ENABLE_IPV6 -+#if defined(ENABLE_IPV6) && defined(HAVE_GETIFADDRS) - /* Try it the IPV6 friendly way first */ -- for (it = ai; it; it = it->ai_next) { -- if (getnameinfo(it->ai_addr, it->ai_addrlen, hostname, -- sizeof(hostname), NULL, 0, NI_NAMEREQD) == 0) { -+ do { -+ struct ifaddrs *ifa, *ifa_list; -+ if (getifaddrs(&ifa_list)) - break; -+ ifa = ifa_list; -+ -+ while (ifa) { -+ if (!ifa->ifa_addr) { -+ ifa = ifa->ifa_next; -+ continue; -+ } -+ -+ if (s->addr_if.iface) { -+ if (s->addr_if.size == sizeof(struct in_addr) -+ && (ifa->ifa_addr->sa_family == AF_INET)) -+ { -+ struct sockaddr_in *sin = (struct sockaddr_in*)ifa->ifa_addr; -+ if (memcmp(&sin->sin_addr, &s->addr_if.a.addr, sizeof(struct in_addr))!=0 -+ || (s->addr_if.iface && ifa->ifa_name -+ && strcmp(s->addr_if.iface, ifa->ifa_name)!=0)) -+ { -+ ifa = ifa->ifa_next; -+ continue; -+ } -+ } -+ else if (s->addr_if.size == sizeof(struct in6_addr) -+ && (ifa->ifa_addr->sa_family == AF_INET6)) -+ { -+ struct sockaddr_in6 *sin = (struct sockaddr_in6*)ifa->ifa_addr; -+ if (memcmp(&sin->sin6_addr, &s->addr_if.a.addr6, -+ sizeof(struct in6_addr))!=0 -+ || (s->addr_if.iface && ifa->ifa_name -+ && strcmp(s->addr_if.iface, ifa->ifa_name)!=0)) -+ { -+ ifa = ifa->ifa_next; -+ continue; -+ } -+ } -+ } -+ -+ if ((ifa->ifa_addr->sa_family == AF_INET -+ && (!s->addr_if.iface || s->addr_if.size == sizeof(struct in_addr)) -+ && (getnameinfo(ifa->ifa_addr, sizeof(struct sockaddr_in), hostname, -+ sizeof(hostname), NULL, 0, NI_NAMEREQD) == 0)) -+ || (ifa->ifa_addr->sa_family == AF_INET6 -+ && (!s->addr_if.iface || s->addr_if.size == sizeof(struct in6_addr)) -+ && (getnameinfo(ifa->ifa_addr, sizeof(struct sockaddr_in6), hostname, -+ sizeof(hostname), NULL, 0, NI_NAMEREQD) == 0))) -+ { -+ /* check to make sure getnameinfo() didn't just set the hostname to "::". -+ Needed on Darwin. */ -+ if (hostname[0] == ':') -+ hostname[0] = '\0'; -+ else if (strcmp(hostname, "localhost")==0) -+ hostname[0] = '\0'; -+ else -+ break; -+ } -+ ifa = ifa->ifa_next; - } -- } - -- /* check to make sure getnameinfo() didn't just set the hostname to "::". -- Needed on Darwin. */ -- if (hostname[0] == ':') { -- hostname[0] = '\0'; -+ freeifaddrs(ifa_list); - } -+ while (0); - #endif - - /* Fallback to the oldschool (i.e. more reliable) way */ -diff --git a/src/testlo.c b/src/testlo.c -index c128d10..c69570c 100644 ---- a/src/testlo.c -+++ b/src/testlo.c -@@ -704,6 +704,13 @@ void test_multicast(lo_server_thread st) - - DOING("test_multicast"); - -+#ifdef ENABLE_IPV6 -+ // Print a warning but we let it fail, prefer to actually fix IPv6 -+ // support rather than just skip the test! -+ printf("WARNING: Compiled with --enable-ipv6, multicast not supported;" -+ "failure expected.\n"); -+#endif -+ - /* test multicast server and sender */ - /* message is sent from st otherwise reply doesn't work */ - ms = lo_server_new_multicast("224.0.1.1", "15432", error); --- -2.14.1 - diff --git a/media-libs/liblo/liblo-0.29.ebuild b/media-libs/liblo/liblo-0.29.ebuild deleted file mode 100644 index 034568c3215a..000000000000 --- a/media-libs/liblo/liblo-0.29.ebuild +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 -inherit autotools ltprune - -DESCRIPTION="Lightweight OSC (Open Sound Control) implementation" -HOMEPAGE="http://plugin.org.uk/liblo" -SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" - -LICENSE="LGPL-2.1" -SLOT="0" -KEYWORDS="amd64 ppc ppc64 x86 ~ppc-macos" -IUSE="doc ipv6 static-libs" - -RESTRICT="test" - -DEPEND="doc? ( app-doc/doxygen )" - -PATCHES=( - "${FILESDIR}/${P}-ipv6_build_fix.patch" #627832 -) - -src_prepare() { - default - - # don't build examples by default - sed -i '/^SUBDIRS =/s/examples//' Makefile.am || die - - eautoreconf -} - -src_configure() { - use doc || export ac_cv_prog_HAVE_DOXYGEN=false - - # switching threads on/off breaks ABI, bugs #473282, #473286 and #473356 - myeconfargs=( - --enable-threads - $(use_enable ipv6) - $(use_enable static-libs static) - ) - econf "${myeconfargs[@]}" -} - -src_install() { - default - prune_libtool_files -} |