From patchwork Fri Dec 27 03:56:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182466 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp2499239ild; Thu, 26 Dec 2019 19:56:59 -0800 (PST) X-Google-Smtp-Source: APXvYqxVJFD931z7C9HvjeQ7hF5ginRPC2rlDeWkCTJ8/YKuybqe6uAhrBbZpUlJVNBOWJ8+8lBS X-Received: by 2002:a17:902:9f92:: with SMTP id g18mr48910337plq.161.1577419019098; Thu, 26 Dec 2019 19:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577419019; cv=none; d=google.com; s=arc-20160816; b=PRvQgJOpZtVCs51OuACxNMH3Mi9bwZbUaD8B1XU4uiQPWhNw9TwC3ElLiaEqZeV/CX xMAq592xGLDaGhMZ074qHkSkIPZCbjSFJeMYq3zSJZeQamUVmcOzmTuML2JIe/fverv4 V8Hh5i8Khao9+0YvsMwXuTZPrKhVFiP7JhjREKKpdTOhfxPytDYitm03iHyu7MAtteDD UDpLkuG+V/6zmTtklR1Lslqv0IWnL4+onaiT1BaUoJNHSwghBdcM/Bak/2+lH+CJG6KI PSHuMGtRXcoEj3DCGcyzyHMPkFnGk+KwGp1pQTux26q7ohbeMBkvuSGQNDPUL3G3/ptO Df7g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:content-transfer-encoding:list-subscribe:list-help :list-post:list-archive:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from:dkim-signature:delivered-to; bh=FxloHWpE5LhNV6GaW6s6iqvyTH4y7z9AR1jZ2C5lPTI=; b=z8SV24pZQ+yVPBHAexe94DPX9IoOa0dF3aa0by51ztYV0Q/SEoorifXGBV8M66ojmW fj/PcOz+JyfGFIkMZkRSQF5RIH90g6mLfTOoqZprVJlRGfJpzMJZ7qzY8QdHsuXl6ELp 5iddU80whylrJyGKC2Cpro180eNJgDEUuZ8nPTfaMfsFHkhV+EaG8T01OI6makLx5RO/ VCbLtUIzhaKul+dYCx/gLlGzF3OQqqgPvddFhYmnMgMqr8+oMDaflqhIWY+fmpUuTmRH NhGyxfawSx7xCQa4yJym4dB0PqPJNMR3DRIZB8I71kn2mV+/5HhjQ0CoFyVhvuh0xMEY X0hQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=lItkXR24; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from mail.openembedded.org (mail.openembedded.org. [140.211.169.62]) by mx.google.com with ESMTP id o4si29815022pgc.175.2019.12.26.19.56.58; Thu, 26 Dec 2019 19:56:59 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) client-ip=140.211.169.62; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=lItkXR24; spf=pass (google.com: best guess record for domain of openembedded-devel-bounces@lists.openembedded.org designates 140.211.169.62 as permitted sender) smtp.mailfrom=openembedded-devel-bounces@lists.openembedded.org; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from ec2-34-214-78-129.us-west-2.compute.amazonaws.com (localhost [127.0.0.1]) by mail.openembedded.org (Postfix) with ESMTP id 63B1E7D3CE; Fri, 27 Dec 2019 03:56:48 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f178.google.com (mail-pl1-f178.google.com [209.85.214.178]) by mail.openembedded.org (Postfix) with ESMTP id 979F27CE27 for ; Fri, 27 Dec 2019 03:56:46 +0000 (UTC) Received: by mail-pl1-f178.google.com with SMTP id y8so11208572pll.13 for ; Thu, 26 Dec 2019 19:56:48 -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=Kjtoqs7if9pvaCMt0JJo8AVdzu4bQOQuAl3qn4s3ab0=; b=lItkXR24PuaLZ/Wmj3t/2QP8lVqE6NiQQ6aORvKpO1AflGwRrpR/Q9KFQYOjHA7wz7 xsEOo3KlWuvig/98QD3tXEnfWuaAuYSxvTWlTYfmJ4k9HkP14SCXDHxzFjXACPfOoR/3 gBpqBq4PeCswCBx5ZN/h3nLa/zOWLlv2oy+RO6sZgUTPnH9XrG7gRZ+OZF1W+8G9DA79 /RuNfSpCFzdgfiyafuqpBZcBFqDFyItAw/NmohwQ+/UqRFVFpbcaM7vZyVP+I5EchKah 6WV/sVKHJ6GXGE3Zs+S/kPW2kKC+EE4atcPoMvTescmMZHDEpv7a9rbqB/lebIPUMBF6 hlug== 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=Kjtoqs7if9pvaCMt0JJo8AVdzu4bQOQuAl3qn4s3ab0=; b=Bad3nGifW7rpUWHoOEtAJI/6A5v3cuZRbHsXTr2acu5EH831lotLDHO01eKd8ZgZHR 2mR51IobgsDhJ+GqP69ecOgbe/iI7SkpaQ6sTvb5AOu6JLV5fBAb4R2iwZZjkb1rQRiD hjW3VlXWVdEGpU9a0PaIaM72rN0hLisyb8zOL/7mZOuAMHnmcNnl3kIpb0eV9IciS7nu 6LIlls0GnsIRUNJK6O8Mgi8fHzgY5yuGhFoNSCIYha7W/PrOBCi42NcM8s3t/mzFAkNT +8SJ8ZcWzuhzEO/07alSAXlQBzCpAQZNZb3hCs0Uk/bd8gCuBZPMP1ZCUFDXFUBgHY9D y/HQ== X-Gm-Message-State: APjAAAVSaut/A4+Yw0N+0S4h8QrcvnvRmFxOTO3BnRiGJwsTRKNE6X0j b00vLYHY+f8xI4F9+VND0Dcgo33U5M8= X-Received: by 2002:a17:902:a614:: with SMTP id u20mr50261851plq.107.1577419007021; Thu, 26 Dec 2019 19:56:47 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:9200:4e0::2f83]) by smtp.gmail.com with ESMTPSA id r30sm36673613pfl.162.2019.12.26.19.56.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 19:56:46 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 26 Dec 2019 19:56:35 -0800 Message-Id: <20191227035639.303716-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 MIME-Version: 1.0 Subject: [oe] [meta-multimedia][PATCH 1/5] mpd: Fix build with gcc10 X-BeenThere: openembedded-devel@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Using the OpenEmbedded metadata to build Distributions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: openembedded-devel-bounces@lists.openembedded.org Errors-To: openembedded-devel-bounces@lists.openembedded.org Signed-off-by: Khem Raj Cc: Andreas Müller --- ...ingBuffer-Include-cstddef-for-size_t.patch | 27 +++++++++++++ ...-Include-stdexcept-for-runtime_error.patch | 38 +++++++++++++++++++ .../recipes-multimedia/musicpd/mpd_0.20.22.bb | 2 + 3 files changed, 67 insertions(+) create mode 100644 meta-multimedia/recipes-multimedia/musicpd/mpd/0001-StringBuffer-Include-cstddef-for-size_t.patch create mode 100644 meta-multimedia/recipes-multimedia/musicpd/mpd/0002-Include-stdexcept-for-runtime_error.patch diff --git a/meta-multimedia/recipes-multimedia/musicpd/mpd/0001-StringBuffer-Include-cstddef-for-size_t.patch b/meta-multimedia/recipes-multimedia/musicpd/mpd/0001-StringBuffer-Include-cstddef-for-size_t.patch new file mode 100644 index 0000000000..1d869aa833 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/musicpd/mpd/0001-StringBuffer-Include-cstddef-for-size_t.patch @@ -0,0 +1,27 @@ +From c14877071f14b218835f7fb034dea11bd1ba56f5 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 25 Dec 2019 09:40:16 -0800 +Subject: [PATCH] StringBuffer: Include cstddef for size_t + +Fixes +a.cpp:3:1: error: 'size_t' does not name a type + 3 | size_t s; + | ^~~~~~ +a.cpp:2:1: note: 'size_t' is defined in header ''; did you forget to '#include '? + +Upstream-Status: Submitted [https://github.com/MusicPlayerDaemon/MPD/pull/697] +Signed-off-by: Khem Raj +--- + src/util/StringBuffer.hxx | 1 + + 1 file changed, 1 insertion(+) + +--- a/src/util/StringBuffer.hxx ++++ b/src/util/StringBuffer.hxx +@@ -31,6 +31,7 @@ + #define STRING_BUFFER_HPP + + #include ++#include + + /** + * A statically allocated string buffer. diff --git a/meta-multimedia/recipes-multimedia/musicpd/mpd/0002-Include-stdexcept-for-runtime_error.patch b/meta-multimedia/recipes-multimedia/musicpd/mpd/0002-Include-stdexcept-for-runtime_error.patch new file mode 100644 index 0000000000..1f11867191 --- /dev/null +++ b/meta-multimedia/recipes-multimedia/musicpd/mpd/0002-Include-stdexcept-for-runtime_error.patch @@ -0,0 +1,38 @@ +From 06f78ced45f6622a2e02cd09e6a2c0c22a98b89e Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 25 Dec 2019 09:41:55 -0800 +Subject: [PATCH 2/2] Include for runtime_error + +Fixes + +../git/src/LocateUri.cxx:65:14: error: 'runtime_error' is not a member of 'std' + 65 | throw std::runtime_error("Unsupported URI scheme"); + | ^~~~~~~~~~~~~ + +Upstream-Status: Inappropriate [ Fixed differently upstream ] +Signed-off-by: Khem Raj +--- + src/LocateUri.cxx | 1 + + src/pcm/PcmConvert.cxx | 1 + + 2 files changed, 2 insertions(+) + +--- a/src/LocateUri.cxx ++++ b/src/LocateUri.cxx +@@ -17,6 +17,7 @@ + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + ++#include + #include "config.h" + #include "LocateUri.hxx" + #include "client/Client.hxx" +--- a/src/pcm/PcmConvert.cxx ++++ b/src/pcm/PcmConvert.cxx +@@ -17,6 +17,7 @@ + * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + ++#include + #include "config.h" + #include "PcmConvert.hxx" + #include "ConfiguredResampler.hxx" diff --git a/meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.22.bb b/meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.22.bb index 6c6ad42375..133ee6e792 100644 --- a/meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.22.bb +++ b/meta-multimedia/recipes-multimedia/musicpd/mpd_0.20.22.bb @@ -19,6 +19,8 @@ DEPENDS += " \ SRC_URI = " \ git://github.com/MusicPlayerDaemon/MPD;branch=v0.20.x \ file://mpd.conf.in \ + file://0001-StringBuffer-Include-cstddef-for-size_t.patch \ + file://0002-Include-stdexcept-for-runtime_error.patch \ " SRCREV = "9274bc15bc41bbe490fde847f8422468cc20375d" S = "${WORKDIR}/git"