From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?J=C3=B6rg=20Krause?= Date: Thu, 9 Jan 2020 11:32:41 +0100 Subject: [Buildroot] [PATCH] package/libupnp18: add config option --enable-reuseaddr Message-ID: <20200109103241.3786-1-joerg.krause@embedded.rocks> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Enable the option to use SO_REUSEADDR on the built-in miniserver socket to allow clean restarts [1]. This fixes a runtime issue with Gerbera and possible other programs which does not allow a graceful restart otherwise. [1] https://github.com/pupnp/pupnp/commit/629dec75610260a669c7c3ed40c9332b7917b562 Signed-off-by: J?rg Krause --- package/libupnp18/libupnp18.mk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/package/libupnp18/libupnp18.mk b/package/libupnp18/libupnp18.mk index ca82a54413..f73c656831 100644 --- a/package/libupnp18/libupnp18.mk +++ b/package/libupnp18/libupnp18.mk @@ -13,6 +13,9 @@ LIBUPNP18_LICENSE = BSD-3-Clause LIBUPNP18_LICENSE_FILES = COPYING LIBUPNP18_DEPENDENCIES = host-pkgconf +# Bind the internal miniserver socket with reuseaddr to allow clean restarts. +LIBUPNP18_CONF_OPTS += --enable-reuseaddr + ifeq ($(BR2_PACKAGE_OPENSSL),y) LIBUPNP18_CONF_OPTS += --enable-open-ssl LIBUPNP18_DEPENDENCIES += openssl -- 2.24.1