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" From patchwork Fri Dec 27 03:56:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182467 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp2499676ild; Thu, 26 Dec 2019 19:57:40 -0800 (PST) X-Google-Smtp-Source: APXvYqx12565h+pvZtC8Qkym0whz9qFrVgo8OQMqJtKBtcQKsMJWSSioUDozEVjzACVLCrRTzY0r X-Received: by 2002:a17:902:9b83:: with SMTP id y3mr24552727plp.32.1577419060532; Thu, 26 Dec 2019 19:57:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577419060; cv=none; d=google.com; s=arc-20160816; b=onDWd8GSl6FmohMcPlGx8/84H6/yewJJB+c/0WWivn8P1MhIcuzopqT6Yvq4Weqcwk 0gT8SAbO3KUPG1k/ppuW4T0vvM/C9UbtdvAI8nVhiqvKXnj5YyD9fnHqUBNtMbaJYIWi n2dqpOzwmEWLE/goK5iDfcrnQP7sUSPEmEBa0JoaPSvpWe2grY1+khb11oq2krIPGl3p tUgHe6g0v1kUsN/cbStIqJ5f2dPHVxD4Ay/hIT2WdufwLgGzRMlZX/Jku7Owf9QZgong siniyGTjRq/cNb5aE2fnJyFC4DwE7fi+1gmCm66yVF+gfH/DMOUD47kna8sB3vLqJD3x BpOA== 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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=XAOtNDO1ZGA0sURR83rV4cv+2RCyG8A+r8g2LTpodvQ=; b=opceAuqEvrJmD1qubNBtG9QdpdV/6LcEoxlWkJm1hTsr0eWFgHA6w9w4I0SXUw3PU3 0Vv0OwlGunw2aGVQ0CfBTm0gGcSgr+r4YqEtbfNIGzEl4b6qGPX97PDAVwZKQVBAwuNJ 4CISNCE9j9gKMqLMWvxb32PgNkFyzp941L2a6cX0Bg/HwFPyggSinkhOaPe7WUlCsEYM QTuBRvy7Xhd2V4wCWIjzUTcVwzBvEQWtpOVzPlnPWGnw1iqhPCdjaSOAqCaVwsjOxB3H rvyTj7yZxJ5kXlCS9XF3Q1nloN2sIIq/GQy86elNDjl9ETrWlZeKy65SqyvPC707J3Vn j1bw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=n0yJLEBh; 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 x72si29448234pgx.298.2019.12.26.19.57.40; Thu, 26 Dec 2019 19:57:40 -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=n0yJLEBh; 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 3D4637D3EF; Fri, 27 Dec 2019 03:57:37 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pf1-f169.google.com (mail-pf1-f169.google.com [209.85.210.169]) by mail.openembedded.org (Postfix) with ESMTP id 21FCC7CE27 for ; Fri, 27 Dec 2019 03:56:46 +0000 (UTC) Received: by mail-pf1-f169.google.com with SMTP id i6so7287630pfc.1 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:in-reply-to:references :mime-version:content-transfer-encoding; bh=cLNtGP39qbYu7zE/K2AJ3jsZfewzjvQsxVwBR5ou47I=; b=n0yJLEBhF2CZNnVz04yWIdY+eKTaKp9v5GLkcvcGBB1XkbqKXJwhaAqvV++rfGIMFg 0WVI8RgmL30prSFI9IeVip3Mu2rCO6PsbXtIylZgWKYyeru81c2LDeErWgsMGOWi24pW o73r3Oc8pyH4FQuQkqx16J/e9kgNcxf526XQBrRhv1Xy2Mrv664/bint5Iisfh7ITF00 o2Vfz6JFVrzqXLvJYIowvQMfqKt3P6xQBM0WNvGoHUASz0kAoEqHHapdwXV0s3FQGuD8 rIAe0v/ls6RCL6KOXtJDh770mxJJkgldJ31tKv6Y9GCd7KXXIWBl9KBRFuyi7hmqo2Y8 VXfw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=cLNtGP39qbYu7zE/K2AJ3jsZfewzjvQsxVwBR5ou47I=; b=Vryde85y9peiy3agunKl0G4UGziSCcnk3WBODXeVJt8wzOWuvyEWwj4Pg4WPVEl3jj Bnx6ZyobLHSfkuGY4kDmosGsVPmn4KDyeTstXWWuO2vMGJwHbUiibik7fkBKTeFWTDpf OKQX8i1XG1QTTfxgooZzrSG0jHabcycrhNbprn1ScCPiuZ1MrNZ191kp2egK/AkBI4AC B0FSpygn03Qz+z/muxjegflDQWCZTCo6/7OfXbb5kmwqVYEslEP7yRFgVPXP9OyCmkSv bcDZEE1NJnxyVjcgm75VGXg6Ur8DI/Dqtkt2Q8u2g0ZKYKPtwU0xmATZIrIr3IKfmYx6 tQGg== X-Gm-Message-State: APjAAAWcNPanVfAEZ1BfyfQJLFMIXlDMlil2H3hhO18Q5bHoH8BjxDH0 svXlMn9sA6JUUopy87s60cv8YGhggQY= X-Received: by 2002:a62:1548:: with SMTP id 69mr53473129pfv.239.1577419007704; 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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 19:56:47 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 26 Dec 2019 19:56:36 -0800 Message-Id: <20191227035639.303716-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191227035639.303716-1-raj.khem@gmail.com> References: <20191227035639.303716-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 2/5] wvstreams: 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 --- .../0001-Fix-narrowing-conversion-error.patch | 29 +++++++++++++++++++ .../wvdial/wvstreams_4.6.1.bb | 1 + 2 files changed, 30 insertions(+) create mode 100644 meta-oe/recipes-connectivity/wvdial/wvstreams/0001-Fix-narrowing-conversion-error.patch -- 2.24.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-connectivity/wvdial/wvstreams/0001-Fix-narrowing-conversion-error.patch b/meta-oe/recipes-connectivity/wvdial/wvstreams/0001-Fix-narrowing-conversion-error.patch new file mode 100644 index 0000000000..fc9abd8e63 --- /dev/null +++ b/meta-oe/recipes-connectivity/wvdial/wvstreams/0001-Fix-narrowing-conversion-error.patch @@ -0,0 +1,29 @@ +From c86c524f951f6e973473bfee76fd5366368b2cbc Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 25 Dec 2019 09:32:41 -0800 +Subject: [PATCH] Fix narrowing conversion error + +xplc/moduleloader.cc: In static member function 'static Module* Module::loadModule(const char*)': xplc/moduleloader.cc:67:14: error: narrowing conversion of '-1' from 'int' to 'unsigned int' [-Wnarrowing] 67 | case (int)-1: | ^ + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + xplc/moduleloader.cc | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/xplc/moduleloader.cc b/xplc/moduleloader.cc +index 02dd9a4..c53f5d2 100644 +--- a/xplc/moduleloader.cc ++++ b/xplc/moduleloader.cc +@@ -62,7 +62,7 @@ Module* Module::loadModule(const char* modulename) { + return NULL; + } + +- switch(moduleinfo->version_major) { ++ switch((int)moduleinfo->version_major) { + #ifdef UNSTABLE + case -1: + /* nothing to do */ +-- +2.24.1 + diff --git a/meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb b/meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb index b220f9c1bc..20becaf57d 100644 --- a/meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb +++ b/meta-oe/recipes-connectivity/wvdial/wvstreams_4.6.1.bb @@ -22,6 +22,7 @@ SRC_URI = "http://${BPN}.googlecode.com/files/${BP}.tar.gz \ file://0002-wvrules.mk-Use-_DEFAULT_SOURCE.patch \ file://openssl-buildfix.patch \ file://0001-Forward-port-to-OpenSSL-1.1.x.patch \ + file://0001-Fix-narrowing-conversion-error.patch \ " SRC_URI[md5sum] = "2760dac31a43d452a19a3147bfde571c" From patchwork Fri Dec 27 03:56:37 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182468 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp2499758ild; Thu, 26 Dec 2019 19:57:46 -0800 (PST) X-Google-Smtp-Source: APXvYqz8xC31mzMwcBidwkoFu+8qjtK6K68Isvt5q1ow6J8nEaZDeJ3+lfWLgDIOPTHqZJ2jv5DF X-Received: by 2002:a17:90a:cb8c:: with SMTP id a12mr24071025pju.71.1577419066922; Thu, 26 Dec 2019 19:57:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577419066; cv=none; d=google.com; s=arc-20160816; b=ggHfzj4JK55Lp0M+MRw/CSHbKddzx4PFdQJQkJUlGDZWwDs+F0p/oXmLKDyiqTgm2i /EGWYiMuLQCqoAynadDB+s431EimNIMeXHh5sYsX9Zrdhjy9/Bpi4unDo/9/TIOBZgfe HCJN75tnR/aCOlkyTMRf4HrACmS9lQvMgFncroDoGg01k/a82v2IsdktDD/VlT+rtbxc wgvBVuLtVRr9MUCH8cL8t5TGaBYjtWKNL8gzM1PrLcSTgtqf4ZekxhZNwGs4GrHq4vDc tiL3gqLJdKShRmevHmCQXRx+PvxrDR4XyukD25dyUlmWXjwz11TE8rN7mdPgpRE52COK ar2A== 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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=WwlHbfDGcfhRaT9Z1Ltb7H4hBJqIVLMJWFgYqhqQZeg=; b=zqXexfxVTD1KCXTeUZTSjhwwxp3T4ggqW6Uw5P+XyVTgGPqI25P6jb1BOPCAFUnGWH 3TWsMWJ4pH3WpH77aMRBvmHfmCL8Ny1lErsyX0vUzBo3RkFQRZ8KiUw1UdbczPBKr7DQ 6F7FUqvZBWy/Lx8cZfEhibLzE7/U2qakTWhqCfuK/2/JBlJvT5IYOTqYy2cVqaCmm74x FrIVn5KWf2B+/f8KE/re60RjBsKXKOcNxFeOOedK16pyU5e+chKp1rKb4N5kZ6v06ufb qkEDA0yhiwObdukQc2MnQQxTqimkFT9KSh5qg57mM1IesBPxifMWeYuLDXvKK/71aWZ8 oAsw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=GKk+ufLp; 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 c38si29251260pgb.460.2019.12.26.19.57.46; Thu, 26 Dec 2019 19:57:46 -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=GKk+ufLp; 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 9CEBD7D58A; Fri, 27 Dec 2019 03:57:38 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pl1-f175.google.com (mail-pl1-f175.google.com [209.85.214.175]) by mail.openembedded.org (Postfix) with ESMTP id 2C5F27D3B7 for ; Fri, 27 Dec 2019 03:56:48 +0000 (UTC) Received: by mail-pl1-f175.google.com with SMTP id bd4so11226090plb.8 for ; Thu, 26 Dec 2019 19:56:49 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=P1kYvapk1YhUPCOCWdlQW4iaZ/QqaLE5pMZkRRycYMU=; b=GKk+ufLphkLBsvcw2qThUAdkW/QNco2Kw6bCrtQ39cbt6FfQKOQeHroQADI8WO+zfa RzfV1F+4ajqLFEny7n30cujBNQGdcWwwfaIN6hQ2Sq6KQJeUvJW9nwpRPdsPUn/poCAe e7AV1iRSSUVwxqJQshc7nZcyZFv9Y3arQhwWxRek6HMLPSuZa8kj5T64cvFWbcmV4wdJ PQ3ZYD3anOp+ca1y6ex+oJyIN13tSEn7/drvjgEpds5sucWQH4hyhn0Rg2hAcWX85nCB mEtT518V5iGNEsniYleqe03lHtawBuSqLqOvlwqsx6n95NftEb6vkwyRZkopWPTGYPv0 dJtg== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=P1kYvapk1YhUPCOCWdlQW4iaZ/QqaLE5pMZkRRycYMU=; b=mkTp10WAY4QWKfDpdbSJi8CHr5IzGsESefV+VgLt2eGEniVIExTzClAUl32MhrisLD nD7muDiuJeL/vXapHSjzt/VvwRVGGDlwcMQlJNjR9cDaWz8qUYK1IDOl+EcOwx4xL9QP p+qICTnVhUJy+wzVJD31tleO6gwZrzTBYT5lQa5ScNyqZYtmYVIXjyxWCSNTTldP7Tz5 DFEFGHBsnLeLo6FfBEQAJu8LeJ1F5buiilr591bMmOwVh3XJMAbAdb53Qgk7FQOqlyCC K3SBusZ+wiWnK/wO6wuJfNC8CTgnfm0i+/qS8jz/1mA8JKBAYwc3pinJ2EqWuxRV4G88 A8WA== X-Gm-Message-State: APjAAAVo41g0sQO2GjI32qGmx6viQgjiD5uqIY2CerQxIyRcarDDJOwW xJ3PfS25Io2ez/S7iNtM14NDzyleJUM= X-Received: by 2002:a17:902:244:: with SMTP id 62mr9555608plc.117.1577419008739; Thu, 26 Dec 2019 19:56:48 -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.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 19:56:48 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 26 Dec 2019 19:56:37 -0800 Message-Id: <20191227035639.303716-3-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191227035639.303716-1-raj.khem@gmail.com> References: <20191227035639.303716-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-multimedia][PATCH 3/5] tvheadend: Fix format-truncation warnings 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 --- .../0001-allocate-space-for-buf-on-heap.patch | 46 +++++++++++++++++++ .../recipes-dvb/tvheadend/tvheadend_git.bb | 1 + 2 files changed, 47 insertions(+) create mode 100644 meta-multimedia/recipes-dvb/tvheadend/tvheadend/0001-allocate-space-for-buf-on-heap.patch diff --git a/meta-multimedia/recipes-dvb/tvheadend/tvheadend/0001-allocate-space-for-buf-on-heap.patch b/meta-multimedia/recipes-dvb/tvheadend/tvheadend/0001-allocate-space-for-buf-on-heap.patch new file mode 100644 index 0000000000..cbd76b6abf --- /dev/null +++ b/meta-multimedia/recipes-dvb/tvheadend/tvheadend/0001-allocate-space-for-buf-on-heap.patch @@ -0,0 +1,46 @@ +From d4a405f87fc215c14e610a25b5a6b14060c1ef15 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 25 Dec 2019 13:53:52 -0800 +Subject: [PATCH] allocate space for buf on heap + +Avoids +| src/epggrab/module/xmltv.c:204:47: error: '%s' directive output may be truncated writing between 2 and 2147483645 bytes into a region of size 115 [-Werror=format-truncation=] +| 204 | snprintf(buf, sizeof(buf)-1, "ddprogid://%s/%s", mod->id, s); +| | ^~ + +Upstream-Status: Submitted [https://github.com/tvheadend/tvheadend/pull/1324] +Signed-off-by: Khem Raj +--- + src/epggrab/module/xmltv.c | 6 ++++-- + 1 file changed, 4 insertions(+), 2 deletions(-) + +diff --git a/src/epggrab/module/xmltv.c b/src/epggrab/module/xmltv.c +index 34ab05bdb..b1a956614 100644 +--- a/src/epggrab/module/xmltv.c ++++ b/src/epggrab/module/xmltv.c +@@ -197,11 +197,12 @@ static void parse_xmltv_dd_progid + (epggrab_module_t *mod, const char *s, char **uri, char **suri, + epg_episode_num_t *epnum) + { +- char buf[128]; + if (strlen(s) < 2) return; + ++ char* buf = (char *)malloc(strlen(s) + strlen(mod->id) + 13); ++ buf[strlen(s) + strlen(mod->id) + 12] = '\0'; + /* Raw URI */ +- snprintf(buf, sizeof(buf)-1, "ddprogid://%s/%s", mod->id, s); ++ snprintf(buf, strlen(s) + strlen(mod->id) + 12, "ddprogid://%s/%s", mod->id, s); + + /* SH - series without episode id so ignore */ + if (strncmp("SH", s, 2)) +@@ -219,6 +220,7 @@ static void parse_xmltv_dd_progid + if (buf[e+1]) sscanf(&buf[e+1], "%hu", &(epnum->e_num)); + } + } ++ free(buf); + } + + /** +-- +2.24.1 + diff --git a/meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb b/meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb index a818a961f3..20faef047e 100644 --- a/meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb +++ b/meta-multimedia/recipes-dvb/tvheadend/tvheadend_git.bb @@ -10,6 +10,7 @@ LIC_FILES_CHKSUM = "file://LICENSE.md;md5=9cae5acac2e9ee2fc3aec01ac88ce5db" SRC_URI = "git://github.com/tvheadend/tvheadend.git \ file://0001-adjust-for-64bit-time_t.patch \ + file://0001-allocate-space-for-buf-on-heap.patch \ " SRCREV = "fda89e85e0b6ae796d8a09e178d3937aa7869270" From patchwork Fri Dec 27 03:56:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182469 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp2499831ild; Thu, 26 Dec 2019 19:57:54 -0800 (PST) X-Google-Smtp-Source: APXvYqyGGAyIRygpdGcRCmor6FXFZUpSTJaNGQYZksA0F8f+bn8fQwxOlaY2O2kpAsNAGspAQamJ X-Received: by 2002:a17:90a:2486:: with SMTP id i6mr24585039pje.9.1577419074372; Thu, 26 Dec 2019 19:57:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577419074; cv=none; d=google.com; s=arc-20160816; b=DWlkRui+RBxlbAMaTckuVl6FeT1VoFpmK87g+Id9dZidfQWCbBQzsFwXrU/DNh/vaA 1BNgUggSMFU0s04tpKn5Om4BKAKe8IbfyRC8ByhtUVrSCKxXl9NdLMj1PXr8Go70QNWw 1UuQUebPKY97Qf3/mb6vz9USNlPnzqdAzMep3te/4QtVaaZ1+FuPiO4QEoCG48DS7jYF I2OyOPXZgO5DMps7aDbkYVrOvRMkLN+8C5Y/fc54k04xDJW2OgpYXZW6pAR7DJ7S82r2 AJYHglOlf4wu4z4Rxoomcpi9sn5dvUrJw8IRGbTtuqy4IkN1nRKjOA218jyPxJ5EeTkz iArA== 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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=W5GJUIgEVLLk+vCf2+Qq53r4wl6tfx323zuUsjTMJ7g=; b=dDN7gghUkh+DNz1cXkWp6M6Ylk1Uai+tbz45ghlTEdwmMRxWPXqjxrQkUQqVdEzshw NxzJWSWBiJ0tbL7+JKzylOaUGtOCFKTdWIIM9bq+9m/CqMM32JGr5EPDMwqZ2fRJSDR0 Eol9kLCNS9uJgfkbB5289xQYjg3zY8kCYiOfua/TSGQ5CtlxtnuZzM8eUOjNRXK8x3K+ cmDCg0WxLnpVn4MQ1i9UCj+y0Ubjp4GLC5rbBu1ZsF84U938gNkOWx+W6/hTGoo97UIw 11jRbIP9ux8b4Ew1HFZYheTEdZ/Tlx5Fdh1pj6fmL5SClxk9rGQwEDQze/e+utncNcXy iD0w== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=ot4bX5yL; 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 r125si30521727pfc.246.2019.12.26.19.57.54; Thu, 26 Dec 2019 19:57:54 -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=ot4bX5yL; 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 2A5AB7D5EA; Fri, 27 Dec 2019 03:57:40 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f170.google.com (mail-pg1-f170.google.com [209.85.215.170]) by mail.openembedded.org (Postfix) with ESMTP id AD8937D30C for ; Fri, 27 Dec 2019 03:56:48 +0000 (UTC) Received: by mail-pg1-f170.google.com with SMTP id r11so13849171pgf.1 for ; Thu, 26 Dec 2019 19:56:50 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=KwCfGt5egh4YiPPFN0651XhpHk5DzqSUpC+O+8dvqgs=; b=ot4bX5yLXkDNeRMd1OxVCcJv3cRu0e0oA9hbI+8bSnz7mjRdeG59Vi77f0UiVM8/iI Z1IeZyJ7D+tRFCQM2D5VpfV78M1SbXU8bvf37zQ/AhuJ3HlRBUoFW+1woton/0K/fy6P AiBkbhCV8KL3SG7gR75TiAmfOlFjw47KdAj6Fovb2zqwEjEYE+Mu5XnA0slJt8O199Ad mf00KclCDFHBayuJeUKGbia25dB0MX6h3XI6L7ksFE2+SM1JRUBQHnEF6mSyyemAijMm 01yL0qhrdQ3gAwdnl5cVi5Inyy9Zx8+AgfoDfu3s/Pafp+8YxleqpJchmtmZlBZghlzl J17g== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=KwCfGt5egh4YiPPFN0651XhpHk5DzqSUpC+O+8dvqgs=; b=AopvJB2CBf5zzk2jLGKINLwCZ357h0i9WHIbGdP0glkhS7+EqOy/YlbP++CR+C8xdr dCkNSqgFaXFScW3C1N63PrqBV0V0CC21tysqZdYoWqceHkH5q8JTCudak2+XHnCoFRt9 9N5W4Tp3pdiWBgydcXcwrtW05Cxyqpzd9Jwx6zIxTfl2ffeuD1nH1cIVDMrGiC4txhs5 ZR9LnBk/orbHt2O+hducz93mGMSvtwQo7wC3WRvyVAxideHYIxB+YJIkU4UbCtfVYXLy wQWPevLFH4DagpHZaiP0+mZL8yq6XekCaxMoz8Q54U+dskSNqpmQ5R+yupOzBrFsKtbP myRQ== X-Gm-Message-State: APjAAAVFqmMBiRwfYpAPFwKUHuiWqJiwe9mB94Lftr/hSSJSDX0yTRmk cGcFl/fZXYaxggWxa+YzOY92C/PcMY8= X-Received: by 2002:aa7:855a:: with SMTP id y26mr49402464pfn.175.1577419009443; Thu, 26 Dec 2019 19:56:49 -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.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 19:56:49 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 26 Dec 2019 19:56:38 -0800 Message-Id: <20191227035639.303716-4-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191227035639.303716-1-raj.khem@gmail.com> References: <20191227035639.303716-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-oe][PATCH 4/5] open-vm-tools: Ignore -Warray-bounds 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 --- ...1-utilBacktrace-Ignore-Warray-bounds.patch | 33 +++++++++++++++++++ .../open-vm-tools/open-vm-tools_11.0.1.bb | 1 + 2 files changed, 34 insertions(+) create mode 100644 meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-utilBacktrace-Ignore-Warray-bounds.patch -- 2.24.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-utilBacktrace-Ignore-Warray-bounds.patch b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-utilBacktrace-Ignore-Warray-bounds.patch new file mode 100644 index 0000000000..95664e8552 --- /dev/null +++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools/0001-utilBacktrace-Ignore-Warray-bounds.patch @@ -0,0 +1,33 @@ +From ac3f93ea087d3a5461fe57fe021d0fe9a959e13c Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Wed, 25 Dec 2019 15:25:02 -0800 +Subject: [PATCH] utilBacktrace: Ignore -Warray-bounds + +This is new warning with gcc10, until its fixed ignore it like gcc<10 +did + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- + open-vm-tools/lib/user/utilBacktrace.c | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/open-vm-tools/lib/user/utilBacktrace.c b/open-vm-tools/lib/user/utilBacktrace.c +index b72340ad..97ca53f2 100644 +--- a/open-vm-tools/lib/user/utilBacktrace.c ++++ b/open-vm-tools/lib/user/utilBacktrace.c +@@ -517,6 +517,11 @@ Util_BacktraceWithFunc(int bugNr, // IN: + } else { + outFunc(outFuncData, "Backtrace for bugNr=%d\n",bugNr); + } ++#pragma GCC diagnostic push ++#pragma GCC diagnostic ignored "-Warray-bounds" ++ + Util_BacktraceFromPointerWithFunc(&x[-2], outFunc, outFuncData); ++#pragma GCC diagnostic pop + #endif + } ++ +-- +2.24.1 + diff --git a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb index 9e4aa4881a..eda77c2060 100644 --- a/meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb +++ b/meta-oe/recipes-support/open-vm-tools/open-vm-tools_11.0.1.bb @@ -41,6 +41,7 @@ SRC_URI = "git://github.com/vmware/open-vm-tools.git;protocol=https \ file://0001-GitHub-Issue-367.-Remove-references-to-deprecated-G_.patch;patchdir=.. \ file://0001-Make-HgfsConvertFromNtTimeNsec-aware-of-64-bit-time_.patch;patchdir=.. \ file://0002-hgfsServerLinux-Consider-64bit-time_t-possibility.patch;patchdir=.. \ + file://0001-utilBacktrace-Ignore-Warray-bounds.patch;patchdir=.. \ " SRCREV = "d3edfd142a81096f9f58aff17d84219b457f4987" From patchwork Fri Dec 27 03:56:39 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 182470 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp2499912ild; Thu, 26 Dec 2019 19:58:02 -0800 (PST) X-Google-Smtp-Source: APXvYqzyNRc0B7lfDGYBB/wLJ39ENZSfMX8sMomtbpzvcxQXd1/KdmjKtgS6CgmeaSdQqdLxF+K8 X-Received: by 2002:a63:d411:: with SMTP id a17mr54805286pgh.333.1577419082640; Thu, 26 Dec 2019 19:58:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577419082; cv=none; d=google.com; s=arc-20160816; b=zKYCBrU2m2Y5fFUWoXU0eTNB4qKZ1/iK/vrZSqetJJZzmd7woZnM7StKbuao+ZaS8w RpMU+YZ/QcVKZ3lGIkTEqsxvPl0TIG9Jezx4Ppz8kv015PyVQM37qNGyrekgm7mdCkDJ PoscR50P/QSHxA5t681FKd5hZt7q91Ul8TwE1W4kD8EXevUjoIBMyRfszTFOsoCCvkMX 5/j0hEEUtVHnxeNt/AKFQlsu9BO/FX0zvFDZbZycsknRCmJegGOqiHSzdUeSHkQD7gE+ ZvnbunP3yWMz7M4PtsD7L7dd0g5xlfbafhEFhw3skbyn+2hdL1+8mVAzrDtoJRtsr/CO tjvg== 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:references:in-reply-to:message-id:date:to:from :dkim-signature:delivered-to; bh=rQYwRVqC4ysrERNmcFzt+Qq5JRHVy+iATE1CEeEKbpA=; b=y6ZEZGoXKytlDiPyoKvJnqd1pE0TnRiw18v9WE787FjvjCwWiT0mf/uhc0H7TgcttB jUCqaNqJS9CZXm+62miCNc5G2j/Xf4I7Y4o9KmDd4AOK1EifOdREU74OwgS6zhNammsd CaXq4Toeb/Gi3eSUKWdE7vvWmo4YY4NXN5NZ37omAukW7seIR9G9RVwiXKtohWzaI/I6 v4avsmZWjlNlax3rpF4vVWlymdtHaYXDUPuZgL9YOu9ssDAjhakRxfDRSqL4RmUVJI9b 5bE4Nlpn+dhnbKQjAnxWBnRTkAuBF2rnl+80iOc9Q8bWetzl65vCbyf0CexiqcnuCGnC MdfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@gmail.com header.s=20161025 header.b=gZtbgrBC; 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 b10si29623221plk.205.2019.12.26.19.58.02; Thu, 26 Dec 2019 19:58:02 -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=gZtbgrBC; 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 7B9DD7D3B7; Fri, 27 Dec 2019 03:57:45 +0000 (UTC) X-Original-To: openembedded-devel@lists.openembedded.org Delivered-To: openembedded-devel@lists.openembedded.org Received: from mail-pg1-f196.google.com (mail-pg1-f196.google.com [209.85.215.196]) by mail.openembedded.org (Postfix) with ESMTP id 8464F7CE27 for ; Fri, 27 Dec 2019 03:56:49 +0000 (UTC) Received: by mail-pg1-f196.google.com with SMTP id k197so13822620pga.10 for ; Thu, 26 Dec 2019 19:56:51 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=O1RucZ4wIoQ0yH+H3Z0YoveiZXao/sSqMh0E0Utuat0=; b=gZtbgrBCEL3l92UWyIpce7tT9OnFAP6E+TGc2uRavKUsmFi7qpiQ2X9E7twbqqHpij GHA6f+a+Roqe7bYB+Kyrm/no0RPGYT8lOZNGxsJRtuIAUDfyv2d4feY9stjKsTgTaEWr SZ7tK6BaqsWDFNXjmZupBmp3e2NT4h8Kiwpnibs1ojMh1Fkbs02HJhJjLEspNF0H6MQP yx/tjE38m0A9HCTA181vC4oBRCagb3rLu4yLsfo+IWjOwCKyztvtykWhKRudOU5/Ay+y SQc9waYE0+emars6ZBsLJs/HJmOo+qhyQKiCS9KvemsLwqFFgCZXAHNK0TK4YHqpWw+z cxnw== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=O1RucZ4wIoQ0yH+H3Z0YoveiZXao/sSqMh0E0Utuat0=; b=lbmQn0YfBK0vBVAZOwui4s4GQDdiDKBeQEi7alEXsuGvuufP9BHp1RVq81PFa9Go4N UjUvulV0YezTL4jYFh/6BCohG3ohpHqmoIAzJ6MlO3IbMYsOF/xiihqb8C7iaP3n8UQu AIHM9OjERPUOwHBLhXWfdCckBUzOtSN8s+2KBDKtz/Vhb0wP9Xm/x4yKrKMXo/czoPg4 H4Ym1MCIAVNWqPO6K3F9RNnHPesdYEgnO7khfea2ej6H4HQ/RQMFyUtjfts9ErRwNeCM xtPUGBnQV7InPvMp8/ds78pEd4+cRkw5HzWK2C3WfNapc4Pe7s2ejBrNudoiSTc5lv7i 4ewg== X-Gm-Message-State: APjAAAWwvuDgatlAOwUnVJJ8kduz3ZxkT+SzNZNc78ksia6J5Pi6Rfw3 c6yy1UoznsXUG22DQT9qJdoRcNlQ4Q4= X-Received: by 2002:aa7:961b:: with SMTP id q27mr52749030pfg.23.1577419010359; Thu, 26 Dec 2019 19:56:50 -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.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Dec 2019 19:56:49 -0800 (PST) From: Khem Raj To: openembedded-devel@lists.openembedded.org Date: Thu, 26 Dec 2019 19:56:39 -0800 Message-Id: <20191227035639.303716-5-raj.khem@gmail.com> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191227035639.303716-1-raj.khem@gmail.com> References: <20191227035639.303716-1-raj.khem@gmail.com> MIME-Version: 1.0 Subject: [oe] [meta-networking][PATCH 5/5] ippool: Fix strncpy -Wformat-truncation warning 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 --- .../ippool/ippool/strncpy-truncation.patch | 35 +++++++++++++++++++ .../recipes-daemons/ippool/ippool_1.3.bb | 1 + 2 files changed, 36 insertions(+) create mode 100644 meta-networking/recipes-daemons/ippool/ippool/strncpy-truncation.patch -- 2.24.1 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel diff --git a/meta-networking/recipes-daemons/ippool/ippool/strncpy-truncation.patch b/meta-networking/recipes-daemons/ippool/ippool/strncpy-truncation.patch new file mode 100644 index 0000000000..28cad001db --- /dev/null +++ b/meta-networking/recipes-daemons/ippool/ippool/strncpy-truncation.patch @@ -0,0 +1,35 @@ +Replace strncpy with memcpy + +since the length of data to +be copied has already been determined with strlen(). Replace strncpy() +with memcpy() to address the warning and optimize the code a little. + +| ippool_config.c:112:2: note: 'snprintf' output between 8 and 55 bytes into a destination of size 48 +| 112 | snprintf(prompt, sizeof(prompt), "ippool-%s", server_name); +| | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ + +Upstream-Status: Pending +Signed-off-by: Khem Raj +--- a/cli/cli_readline.c ++++ b/cli/cli_readline.c +@@ -261,6 +261,11 @@ static void cli_rl_display_wrapped_text( + if (left_margin == 0) { + left_margin = 3; + } ++ ++ if (left_margin >= strlen(text_buf)) { ++ left_margin = strlen(text_buf); ++ } ++ + if (right_margin == 0) { + right_margin = 78;; + } +@@ -271,7 +276,7 @@ static void cli_rl_display_wrapped_text( + /* First copy the text heading to the buffer and add a "-", accounting for + * the specified left margin. + */ +- strncpy(&text_buf[0], text1, left_margin - 3); ++ memcpy(&text_buf[0], text1, left_margin - 3); + for (pos = strlen(text1); pos < left_margin - 3; pos++) { + text_buf[pos] = ' '; + } diff --git a/meta-networking/recipes-daemons/ippool/ippool_1.3.bb b/meta-networking/recipes-daemons/ippool/ippool_1.3.bb index 6fa46904b3..3554e688ab 100644 --- a/meta-networking/recipes-daemons/ippool/ippool_1.3.bb +++ b/meta-networking/recipes-daemons/ippool/ippool_1.3.bb @@ -26,6 +26,7 @@ SRC_URI = "https://sourceforge.net/projects/openl2tp/files/${BPN}/${PV}/${BPN}-$ file://0003-cli-Mark-return-of-strtol-as-long-int.patch \ file://0002-link-with-libtirpc.patch \ file://0003-musl-fixes.patch \ + file://strncpy-truncation.patch \ " LIC_FILES_CHKSUM = "file://LICENSE;md5=4c59283b82fc2b166455e0fc23c71c6f"