mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-22 03:30:05 +02:00
libnpupnp: bump (#5961)
This commit is contained in:
@@ -9,14 +9,13 @@ COPYRIGHT="2000-2003 Intel Corporation
|
||||
LICENSE="BSD (3-clause)"
|
||||
REVISION="3"
|
||||
SOURCE_URI="https://framagit.org/medoc92/npupnp/-/archive/libnpupnp-v${portVersion}/npupnp-libnpupnp-v${portVersion}.tar.bz2"
|
||||
CHECKSUM_SHA256="6c19004bebc0d74900f9b6e025e8eb54030fe788341b58085a7992b3cdb2a9ed"
|
||||
CHECKSUM_SHA256="20f3963f761fdf12e78e9f75ebdcd65c86d7ebd0449e1345b10387cab9b33b14"
|
||||
SOURCE_DIR="npupnp-libnpupnp-v$portVersion"
|
||||
PATCHES="libnpupnp-$portVersion.patchset"
|
||||
|
||||
ARCHITECTURES="!x86_gcc2 ?x86 x86_64"
|
||||
SECONDARY_ARCHITECTURES="x86"
|
||||
|
||||
libVersion="4.0.2"
|
||||
libVersion="4.2.0"
|
||||
libVersionCompat="$libVersion compat >= ${libVersion%%.*}"
|
||||
|
||||
PROVIDES="
|
||||
@@ -71,7 +70,7 @@ BUILD()
|
||||
{
|
||||
./autogen.sh
|
||||
|
||||
LDFLAGS="-lnetwork" runConfigure ./configure \
|
||||
CXXFLAGS="-D_DEFAULT_SOURCE" LDFLAGS="-lnetwork" runConfigure ./configure \
|
||||
--enable-client \
|
||||
--enable-debug \
|
||||
--enable-device \
|
||||
@@ -1,39 +0,0 @@
|
||||
From 4c464f6c022ca3945430a146c2a1606fc6d6b5e5 Mon Sep 17 00:00:00 2001
|
||||
From: Jean-Francois Dockes <jf@dockes.org>
|
||||
Date: Sat, 6 Feb 2021 15:58:25 +0100
|
||||
Subject: [PATCH] Haiku OS: fake the MULTICAST flag on interfaces
|
||||
|
||||
---
|
||||
src/utils/netif.cpp | 10 +++++++---
|
||||
1 file changed, 7 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/src/utils/netif.cpp b/src/utils/netif.cpp
|
||||
index d99c7fc..5b3d8ec 100644
|
||||
--- a/src/utils/netif.cpp
|
||||
+++ b/src/utils/netif.cpp
|
||||
@@ -448,9 +448,7 @@ Interfaces::Internal::Internal()
|
||||
std::vector<Interface> vifs;
|
||||
for (ifa = ifap; ifa != nullptr; ifa = ifa->ifa_next) {
|
||||
LOGDEB("NetIF::Interfaces: I/F name " << ifa->ifa_name << "\n");
|
||||
-
|
||||
- // Skip interfaces which are address-less, LOOPBACK, DOWN, or
|
||||
- // that don't support MULTICAST.
|
||||
+ // Skip interfaces which are address-less.
|
||||
if (nullptr == ifa->ifa_addr) {
|
||||
LOGDEB("NetIF::Interfaces: Skipping " << ifa->ifa_name <<
|
||||
" because it has no address.\n");
|
||||
@@ -475,6 +473,12 @@ Interfaces::Internal::Internal()
|
||||
LOGDEB("NetIF::Interfaces: " << ifa->ifa_name << " has MULTICAST\n");
|
||||
ifit->m->setflag(Interface::Flags::MULTICAST);
|
||||
}
|
||||
+#ifdef __HAIKU__
|
||||
+ // It seems that Haiku does not set the MULTICAST flag even on
|
||||
+ // interfaces which do support the function. So, force it and hope for the
|
||||
+ // best:
|
||||
+ ifit->m->setflag(Interface::Flags::MULTICAST);
|
||||
+#endif
|
||||
ifit->m->index = if_nametoindex(ifa->ifa_name);
|
||||
switch (ifa->ifa_addr->sa_family) {
|
||||
case AF_INET:
|
||||
--
|
||||
GitLab
|
||||
Reference in New Issue
Block a user