From 34fbcf97dd4c72b47ec2171ece39dc15664a38a4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Blin?=
 <sebastien.blin@savoirfairelinux.com>
Date: Tue, 29 Aug 2023 15:15:29 -0400
Subject: [PATCH] pupnp: fix busy loop on iOS device

Upstream ticket: https://github.com/pupnp/pupnp/issues/328
Upstream patch: https://github.com/pupnp/pupnp/pull/428

GitLab: #563
Change-Id: Ie6f8c68a97a96759dd07df7a6a8be8a60968c4f1
---
 contrib/src/upnp/SHA512SUMS |  2 +-
 contrib/src/upnp/rules.mak  | 11 ++---------
 2 files changed, 3 insertions(+), 10 deletions(-)

diff --git a/contrib/src/upnp/SHA512SUMS b/contrib/src/upnp/SHA512SUMS
index dc8242f34b..b6c9d1bc80 100644
--- a/contrib/src/upnp/SHA512SUMS
+++ b/contrib/src/upnp/SHA512SUMS
@@ -1 +1 @@
-ae6ae72a5e784a0f9508af94c4070627e791660fa37966e9825643fd0f88b171826bda9a2ec872d4961bf3454e5a9cd716127f0bdf6e63c789c4e22aab0b7e71  pupnp-release-1.14.13.tar.gz
\ No newline at end of file
+68973e0e5a8f9e64b2311246b7924b0837fd2c7ef30483d3d93ebfeee62bc2293760209d8a5213c0456ce5c37f9f32a6038c9e5d8b461670ba6073db8c2f1394  pupnp-release-1.14.18.tar.gz
\ No newline at end of file
diff --git a/contrib/src/upnp/rules.mak b/contrib/src/upnp/rules.mak
index 6bcd357828..ea5b15d32d 100644
--- a/contrib/src/upnp/rules.mak
+++ b/contrib/src/upnp/rules.mak
@@ -1,9 +1,9 @@
 # UPNP
-UPNP_VERSION := 1.14.13
+UPNP_VERSION := 1.14.18
 UPNP_URL := https://github.com/pupnp/pupnp/archive/release-$(UPNP_VERSION).tar.gz
 
 PKGS += upnp
-ifeq ($(call need_pkg,"libupnp >= 1.14.2"),)
+ifeq ($(call need_pkg,"libupnp >= 1.14.18"),)
 PKGS_FOUND += upnp
 endif
 
@@ -21,13 +21,6 @@ endif
 	$(MOVE)
 
 PUPNP_OPTIONS=--disable-largefile --disable-samples --disable-device --disable-webserver --without-documentation
-ifdef HAVE_IOS
-PUPNP_OPTIONS+= --disable-reuseaddr
-else
-ifdef HAVE_MACOSX
-PUPNP_OPTIONS+= --disable-reuseaddr
-endif
-endif
 
 .upnp: upnp
 ifdef HAVE_WIN32
-- 
GitLab