From patchwork Mon Feb 1 17:57:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1434266 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; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=YExCRlaX; 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 4DTwfS1wyfz9sj1 for ; Tue, 2 Feb 2021 04:58:24 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 7DD2987006; Mon, 1 Feb 2021 17:58:22 +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 8rqAS2mYHJRB; Mon, 1 Feb 2021 17:58:20 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id 2B6EB86FF2; Mon, 1 Feb 2021 17:58:20 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 020971BF962 for ; Mon, 1 Feb 2021 17:58:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id F302685BA9 for ; Mon, 1 Feb 2021 17:58:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dNKLAuGh4H0Y for ; Mon, 1 Feb 2021 17:58:17 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6261E85735 for ; Mon, 1 Feb 2021 17:58:17 +0000 (UTC) Received: by mail-wr1-f42.google.com with SMTP id p15so17559458wrq.8 for ; Mon, 01 Feb 2021 09:58:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5yONzg2UOXuN09Wjh+/f83igrD20ECrgE4gIMSDiJJo=; b=YExCRlaXJTjYWMCIfwtl7iSBbiuTMg0LekWkwJ+UFXzVK+ZBoWCzCbH+/MKT+szesY I94fxL5Rh7qSVYBtP2N2IMFAeKC/mWPbQZJ/UjU2A8PttBtq/vpPVgZL+Cwkww++aqHz at9+gHXt/+KYyjCx5t3hv68XG6Zv7RsOJABCbuvOPeeGnQQDxbbj/KB8oz9uB6weSCkN UWqMDAJ9SIeO0ALl4t+vTU/gKiwwZ7ky2h9Gp60ZuvC5g9xnBNHTDgfTsJlfPzniVPMi DDDXP5cqJRFaaF+SpNkbSrH62Hn+RtJXUmFzDh9ojkTMcL49GTA9QgfWjik0ZX5eJtR7 F4bA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=5yONzg2UOXuN09Wjh+/f83igrD20ECrgE4gIMSDiJJo=; b=GXx5r4kOkRd0DNSoZMXwZA+Jf/onJtLE4nIRqiRugvU9cswJavls/ebNdD2bqFsu8y CVGIhyPG+pGu/cQX5TEQebHr5Cxji/Ut3NhoeewREQ13aKmRLslTBLYpiWLqfy4iDitF OkQDg7HZuI2UUra/ZMSn98m5V8B45dRyDOg3YAVjoAS3Ykim3eVnLkGkylqa+N3O9m8H Zwh+Mw55gzRFcpNLtFiKVlg7kIhcmq5rBBvcUS7WKCvfAn6NZ44OhnbHcIPQkCFzeKtH Vw1D6lkpPgJNkUZS9qv78YXrUN5WLd8aMrM+YxPxvmMVnKgIQ3MXYhGy1euxZ3G3fEWl 6kBw== X-Gm-Message-State: AOAM532NIhATz6WJreJb3czC9HFX3NNMYOI0IwjqAmg3rg73r7F3SIQA SdRU548J5sWA5An89aoWLuWKiMeEj8ZN4Q== X-Google-Smtp-Source: ABdhPJxWswLznyiZj6DJdP3/KaLTNUdYkNSCYSDgDOdVaHagmzqVAHOY0KWKvFbsAE3FKHaU0e6v+Q== X-Received: by 2002:a05:6000:1803:: with SMTP id m3mr19129482wrh.34.1612202295365; Mon, 01 Feb 2021 09:58:15 -0800 (PST) Received: from kali.home (2a01cb0881b76d00c2afd0dfa851d2b9.ipv6.abo.wanadoo.fr. [2a01:cb08:81b7:6d00:c2af:d0df:a851:d2b9]) by smtp.gmail.com with ESMTPSA id q9sm75784wme.18.2021.02.01.09.58.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 01 Feb 2021 09:58:14 -0800 (PST) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Mon, 1 Feb 2021 18:57:00 +0100 Message-Id: <20210201175700.992327-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.29.2 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/1] package/gmrender-resurrect: bump to version 0.0.9 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: , Cc: Hiroshi Kawashima , Fabrice Fontaine , Thomas Petazzoni Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" - Drop patch (already in version) - Update indentation in hash file (two spaces) https://github.com/hzeller/gmrender-resurrect/releases/tag/v0.0.9 Signed-off-by: Fabrice Fontaine --- .../0001-Drop-UpnpInit.patch | 175 ------------------ .../gmrender-resurrect.hash | 4 +- .../gmrender-resurrect/gmrender-resurrect.mk | 2 +- 3 files changed, 3 insertions(+), 178 deletions(-) delete mode 100644 package/gmrender-resurrect/0001-Drop-UpnpInit.patch diff --git a/package/gmrender-resurrect/0001-Drop-UpnpInit.patch b/package/gmrender-resurrect/0001-Drop-UpnpInit.patch deleted file mode 100644 index 18ec7bb515..0000000000 --- a/package/gmrender-resurrect/0001-Drop-UpnpInit.patch +++ /dev/null @@ -1,175 +0,0 @@ -From dc8c4d4dc234311b3099e7f1efadf5d9733c81e9 Mon Sep 17 00:00:00 2001 -From: Fabrice Fontaine -Date: Fri, 21 Aug 2020 21:29:00 +0200 -Subject: [PATCH] Drop UpnpInit - -UpnpInit has been dropped from libupnp 1.14.x as it can't be fixed -against CallStranger a.k.a. CVE-2020-12695 so replace it by UpnpInit2 -which is available since version 1.6.7 and -https://github.com/pupnp/pupnp/commit/2bcbdffd89a70364147d345ec5e70a3fce5cbc29 - -Signed-off-by: Fabrice Fontaine -[Upstream status: -https://github.com/hzeller/gmrender-resurrect/pull/214] ---- - dist-scripts/centos7/README.md | 2 +- - dist-scripts/debian/gmediarender.1 | 8 ++------ - dist-scripts/fedora/README.md | 2 +- - src/main.c | 13 ++++--------- - src/upnp_device.c | 18 +++++++++--------- - src/upnp_device.h | 2 +- - 6 files changed, 18 insertions(+), 27 deletions(-) - -diff --git a/dist-scripts/centos7/README.md b/dist-scripts/centos7/README.md -index 278d777..ed82fb6 100644 ---- a/dist-scripts/centos7/README.md -+++ b/dist-scripts/centos7/README.md -@@ -45,7 +45,7 @@ Additional configuration is also recommended, sice there's no configuration file - # vi /etc/systemd/system/gmediarender.service.d/customize.conf # or nano, or emacs, or whatever editor you like - [Service] - ExecStart= -- ExecStart=/usr/bin/gmediarender --port=49494 --ip-address= -f "DLNA Renderer GMediaRender" -+ ExecStart=/usr/bin/gmediarender --port=49494 --interface-name= -f "DLNA Renderer GMediaRender" - - # systemctl daemon-reload - # systemctl start gmediarender.service -diff --git a/dist-scripts/debian/gmediarender.1 b/dist-scripts/debian/gmediarender.1 -index 96123ff..b2b1359 100644 ---- a/dist-scripts/debian/gmediarender.1 -+++ b/dist-scripts/debian/gmediarender.1 -@@ -50,12 +50,8 @@ Usually, it is desirable for the renderer - to show up on controllers under a recognisable and unique name. This is - the option to set that name. - .TP --.B \-I, \-\-ip\-address \fI\\fP --The local IP address the service is running and advertised on. -- --This can --only be a single address, and must be explicitly specified (i.e. not --0.0.0.0). -+.B \-I, \-\-interface\-name \fI\\fP -+The local interface name the service is running and advertised on. - .TP - .B \-p, \-\-port \fI\\fP - Port to listen to. [49152..65535]. -diff --git a/dist-scripts/fedora/README.md b/dist-scripts/fedora/README.md -index 7b9ea4b..45aa536 100644 ---- a/dist-scripts/fedora/README.md -+++ b/dist-scripts/fedora/README.md -@@ -43,7 +43,7 @@ Additional configuration is also recommended, sice there's no configuration file - # vi /etc/systemd/system/gmediarender.service.d/customize.conf # or nano, or emacs, or whatever editor you like - [Service] - ExecStart= -- ExecStart=/usr/bin/gmediarender --port=49494 --ip-address= -f "DLNA Renderer GMediaRender" -+ ExecStart=/usr/bin/gmediarender --port=49494 --interface-name= -f "DLNA Renderer GMediaRender" - - # systemctl daemon-reload - # systemctl start gmediarender.service -diff --git a/src/main.c b/src/main.c -index ef720e3..2030c49 100644 ---- a/src/main.c -+++ b/src/main.c -@@ -69,11 +69,7 @@ static gboolean show_transport_scpd = FALSE; - static gboolean show_outputs = FALSE; - static gboolean daemon_mode = FALSE; - --// IP-address seems strange in libupnp: they actually don't bind to --// that address, but to INADDR_ANY (miniserver.c in upnp library). --// Apparently they just use this for the advertisement ? Anyway, 0.0.0.0 would --// not work. --static const gchar *ip_address = NULL; -+static const gchar *interface_name = NULL; - static int listen_port = 49494; - - #ifdef GMRENDER_UUID -@@ -92,9 +88,8 @@ static const gchar *mime_filter = NULL; - static GOptionEntry option_entries[] = { - { "version", 0, 0, G_OPTION_ARG_NONE, &show_version, - "Output version information and exit", NULL }, -- { "ip-address", 'I', 0, G_OPTION_ARG_STRING, &ip_address, -- "The local IP address the service is running and advertised " -- "(only one, 0.0.0.0 won't work)", NULL }, -+ { "interface-name", 'I', 0, G_OPTION_ARG_STRING, &interface_name, -+ "The local interface name the service is running and advertised", NULL }, - // The following is not very reliable, as libupnp does not set - // SO_REUSEADDR by default, so it might increment (sending patch). - { "port", 'p', 0, G_OPTION_ARG_INT, &listen_port, -@@ -302,7 +297,7 @@ int main(int argc, char **argv) - listen_port); - return EXIT_FAILURE; - } -- device = upnp_device_init(upnp_renderer, ip_address, listen_port); -+ device = upnp_device_init(upnp_renderer, interface_name, listen_port); - if (device == NULL) { - Log_error("main", "ERROR: Failed to initialize UPnP device"); - return EXIT_FAILURE; -diff --git a/src/upnp_device.c b/src/upnp_device.c -index db65e4f..3151238 100644 ---- a/src/upnp_device.c -+++ b/src/upnp_device.c -@@ -416,13 +416,13 @@ static UPNP_CALLBACK(event_handler, EventType, event, userdata) - - static gboolean initialize_device(struct upnp_device_descriptor *device_def, - struct upnp_device *result_device, -- const char *ip_address, -+ const char *interface_name, - unsigned short port) - { - int rc; - char *buf; - -- rc = UpnpInit(ip_address, port); -+ rc = UpnpInit2(interface_name, port); - /* There have been situations reported in which UPNP had issues - * initializing right after network came up. #129 - */ -@@ -430,13 +430,13 @@ static gboolean initialize_device(struct upnp_device_descriptor *device_def, - static const int kRetryTimeMs = 1000; - while (rc != UPNP_E_SUCCESS && retries_left--) { - usleep(kRetryTimeMs * 1000); -- Log_error("upnp", "UpnpInit(ip=%s, port=%d) Error: %s (%d). Retrying... (%ds)", -- ip_address, port, UpnpGetErrorMessage(rc), rc, retries_left); -- rc = UpnpInit(ip_address, port); -+ Log_error("upnp", "UpnpInit2(interface=%s, port=%d) Error: %s (%d). Retrying... (%ds)", -+ interface_name, port, UpnpGetErrorMessage(rc), rc, retries_left); -+ rc = UpnpInit2(interface_name, port); - } - if (UPNP_E_SUCCESS != rc) { -- Log_error("upnp", "UpnpInit(ip=%s, port=%d) Error: %s (%d). Giving up.", -- ip_address, port, UpnpGetErrorMessage(rc), rc); -+ Log_error("upnp", "UpnpInit2(interface=%s, port=%d) Error: %s (%d). Giving up.", -+ interface_name, port, UpnpGetErrorMessage(rc), rc); - return FALSE; - } - Log_info("upnp", "Registered IP=%s port=%d\n", -@@ -483,7 +483,7 @@ static gboolean initialize_device(struct upnp_device_descriptor *device_def, - } - - struct upnp_device *upnp_device_init(struct upnp_device_descriptor *device_def, -- const char *ip_address, -+ const char *interface_name, - unsigned short port) - { - int rc; -@@ -516,7 +516,7 @@ struct upnp_device *upnp_device_init(struct upnp_device_descriptor *device_def, - webserver_register_buf(srv->scpd_url, buf, "text/xml"); - } - -- if (!initialize_device(device_def, result_device, ip_address, port)) { -+ if (!initialize_device(device_def, result_device, interface_name, port)) { - UpnpFinish(); - free(result_device); - return NULL; -diff --git a/src/upnp_device.h b/src/upnp_device.h -index 3e635e1..8c8e783 100644 ---- a/src/upnp_device.h -+++ b/src/upnp_device.h -@@ -49,7 +49,7 @@ struct upnp_device; - struct action_event; - - struct upnp_device *upnp_device_init(struct upnp_device_descriptor *device_def, -- const char *ip_address, -+ const char *interface_name, - unsigned short port); - - void upnp_device_shutdown(struct upnp_device *device); diff --git a/package/gmrender-resurrect/gmrender-resurrect.hash b/package/gmrender-resurrect/gmrender-resurrect.hash index dc474be612..526b2b6c34 100644 --- a/package/gmrender-resurrect/gmrender-resurrect.hash +++ b/package/gmrender-resurrect/gmrender-resurrect.hash @@ -1,3 +1,3 @@ # Locally calculated -sha256 1f0cef76e4543879c9cd31cad73d6c4f778b965884c586405efcf63f2bdbb06f gmrender-resurrect-0.0.8.tar.gz -sha256 c38aee9e3c8c4d5d594ff548a1be05453023016d6286931f6512db215ec1fd42 COPYING +sha256 c3a9c80c7058a9a1f32175da25a564fb3021a7055c2df3941e8da8860a509009 gmrender-resurrect-0.0.9.tar.gz +sha256 c38aee9e3c8c4d5d594ff548a1be05453023016d6286931f6512db215ec1fd42 COPYING diff --git a/package/gmrender-resurrect/gmrender-resurrect.mk b/package/gmrender-resurrect/gmrender-resurrect.mk index 3500ab3760..4a7efd71ab 100644 --- a/package/gmrender-resurrect/gmrender-resurrect.mk +++ b/package/gmrender-resurrect/gmrender-resurrect.mk @@ -4,7 +4,7 @@ # ################################################################################ -GMRENDER_RESURRECT_VERSION = 0.0.8 +GMRENDER_RESURRECT_VERSION = 0.0.9 GMRENDER_RESURRECT_SITE = $(call github,hzeller,gmrender-resurrect,v$(GMRENDER_RESURRECT_VERSION)) # Original distribution does not have default configure, # so we need to autoreconf: