From patchwork Thu Jan 9 10:32:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Krause?= X-Patchwork-Id: 1220296 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.133; helo=hemlock.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=embedded.rocks Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" header.d=embedded.rocks header.i=@embedded.rocks header.a=rsa-sha256 header.s=default header.b=c+O55FA8; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47tjB82Pfzz9sP6 for ; Thu, 9 Jan 2020 21:33:03 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B635388026; Thu, 9 Jan 2020 10:33:01 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fg4CVoYnnSrp; Thu, 9 Jan 2020 10:33:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 16D3C8803E; Thu, 9 Jan 2020 10:33:01 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id AB2991BF3C4 for ; Thu, 9 Jan 2020 10:33:00 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id A813386194 for ; Thu, 9 Jan 2020 10:33:00 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lQS3IURUNnvs for ; Thu, 9 Jan 2020 10:32:59 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.142]) by fraxinus.osuosl.org (Postfix) with ESMTPS id E041486190 for ; Thu, 9 Jan 2020 10:32:58 +0000 (UTC) Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id BE03A2400FF for ; Thu, 9 Jan 2020 11:32:55 +0100 (CET) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 47tj9v6d3Rz9rxn for ; Thu, 9 Jan 2020 11:32:51 +0100 (CET) Authentication-Results: mail.embedded.rocks (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=embedded.rocks DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embedded.rocks; h=content-transfer-encoding:content-type:content-type :mime-version:x-mailer:message-id:date:date:subject:subject:from :from:received:received; s=default; t=1578565970; x=1579170771; bh=MbnFt1dgEuxRtxwW7x1C3pj59yUQLYTLrVd7ppvM1mI=; b=c+O55FA8qB1X uzpvmqfLzjkkYkbXKUTGDwriG8+UsX2FEzbN6TVjjn0g90xKRJIiKkoPQcOmqN17 LU2jBuV2/hXvUii3SoTZXOQtwtRX2GrWHyI289r04GJKMegRdppdJsP9g2MKcBY+ X/6uW+vf9l3wNK15gYTbueFtH1nWkIOjGZ5ysajFsqVrcApRvIURr0rtXQhkhPua 1OYo774BPMv5zpuGXaO15o9uLMzB4PhPaAvhmhJGW/Qg7J2cmb1+dpPqa0F7GMmn R0htJ8+z77qrV8mwMXOSDds2yPWr1k2391Hi8EQtJH3o7UM9a4cFdlMHalN5d/82 WsP4Ds5TFg== Received: from mail.embedded.rocks ([127.0.0.1]) by localhost (mail.embedded.rocks [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id qE2tg-WXa5eg; Thu, 9 Jan 2020 11:32:50 +0100 (CET) Received: from nzxt.fritz.box (port-92-195-3-85.dynamic.as20676.net [92.195.3.85]) (Authenticated sender: joerg.krause@embedded.rocks) by mail.embedded.rocks (Postfix) with ESMTPSA; Thu, 9 Jan 2020 11:32:50 +0100 (CET) From: =?utf-8?q?J=C3=B6rg_Krause?= To: buildroot@buildroot.org Date: Thu, 9 Jan 2020 11:32:41 +0100 Message-Id: <20200109103241.3786-1-joerg.krause@embedded.rocks> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [Buildroot] [PATCH] package/libupnp18: add config option --enable-reuseaddr X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" 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