From: Khem Raj <raj.khem@gmail.com>
To: openembedded-devel@lists.openembedded.org
Subject: [meta-networking][PATCH 04/18] opensaf: Upgrade to 5.18.09
Date: Sun, 23 Dec 2018 13:35:43 -0800 [thread overview]
Message-ID: <20181223213557.7834-4-raj.khem@gmail.com> (raw)
In-Reply-To: <20181223213557.7834-1-raj.khem@gmail.com>
Degrade certain Werror into warnings to get it building with
gcc >= 8
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
.../0001-Fix-string-overflow-in-snprintf.patch | 12 ++++++------
.../{opensaf_5.18.04.bb => opensaf_5.18.09.bb} | 7 ++++---
2 files changed, 10 insertions(+), 9 deletions(-)
rename meta-networking/recipes-daemons/opensaf/{opensaf_5.18.04.bb => opensaf_5.18.09.bb} (90%)
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf/0001-Fix-string-overflow-in-snprintf.patch b/meta-networking/recipes-daemons/opensaf/opensaf/0001-Fix-string-overflow-in-snprintf.patch
index db6796d05d..93c75777fe 100644
--- a/meta-networking/recipes-daemons/opensaf/opensaf/0001-Fix-string-overflow-in-snprintf.patch
+++ b/meta-networking/recipes-daemons/opensaf/opensaf/0001-Fix-string-overflow-in-snprintf.patch
@@ -1,4 +1,4 @@
-From ae7178a78aba2e5766b70191617113487fd7ad0b Mon Sep 17 00:00:00 2001
+From 88661a60629894353512c53ed32f2b901f64149c Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 16 Apr 2018 18:29:17 -0700
Subject: [PATCH] Fix string overflow in snprintf
@@ -53,7 +53,7 @@ index 81e521e..d53cc48 100644
TRACE_ENTER();
diff --git a/src/smf/smfd/SmfUpgradeCampaign.cc b/src/smf/smfd/SmfUpgradeCampaign.cc
-index 45cdce8..6761bcf 100644
+index c30ea14..098f17a 100644
--- a/src/smf/smfd/SmfUpgradeCampaign.cc
+++ b/src/smf/smfd/SmfUpgradeCampaign.cc
@@ -447,7 +447,7 @@ SaAisErrorT SmfUpgradeCampaign::tooManyRestarts(bool *o_result) {
@@ -66,11 +66,11 @@ index 45cdce8..6761bcf 100644
/* Read the SmfCampRestartInfo object smfCampRestartCnt attr */
std::string obj = "smfRestartInfo=info," +
@@ -473,7 +473,7 @@ SaAisErrorT SmfUpgradeCampaign::tooManyRestarts(bool *o_result) {
- attrsmfCampRestartCnt.setName("smfCampRestartCnt");
- attrsmfCampRestartCnt.setType("SA_IMM_ATTR_SAUINT32T");
+ attrsmfCampRestartCnt.SetAttributeName("smfCampRestartCnt");
+ attrsmfCampRestartCnt.SetAttributeType("SA_IMM_ATTR_SAUINT32T");
char buf[5];
- snprintf(buf, 4, "%d", curCnt);
+ snprintf(buf, 4, "%hd", curCnt);
- attrsmfCampRestartCnt.addValue(buf);
- imoCampRestartInfo.addValue(attrsmfCampRestartCnt);
+ attrsmfCampRestartCnt.AddAttributeValue(buf);
+ imoCampRestartInfo.AddValue(attrsmfCampRestartCnt);
diff --git a/meta-networking/recipes-daemons/opensaf/opensaf_5.18.04.bb b/meta-networking/recipes-daemons/opensaf/opensaf_5.18.09.bb
similarity index 90%
rename from meta-networking/recipes-daemons/opensaf/opensaf_5.18.04.bb
rename to meta-networking/recipes-daemons/opensaf/opensaf_5.18.09.bb
index c534c6206b..f1aedc4def 100644
--- a/meta-networking/recipes-daemons/opensaf/opensaf_5.18.04.bb
+++ b/meta-networking/recipes-daemons/opensaf/opensaf_5.18.09.bb
@@ -29,8 +29,8 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/${BPN}/releases/${BPN}-${PV}.tar.gz \
file://0001-Fix-string-overflow-in-snprintf.patch \
file://0008-check-for-size-before-using-strncpy.patch \
"
-SRC_URI[md5sum] = "21836e43b13ad33bed9bd0ed391e5a6e"
-SRC_URI[sha256sum] = "e55dc2645487fb22938e8386b99eef6eb7aff43a246ce3e92488daf6ee46247a"
+SRC_URI[md5sum] = "45044fde0b35eac057a5fa05c27b8040"
+SRC_URI[sha256sum] = "230a0ea628ba278170a913746c39b2c8cd529d7dc25326b2e17b5c095cf94025"
inherit autotools useradd systemd pkgconfig
@@ -48,7 +48,8 @@ PACKAGECONFIG[plm] = "--enable-ais-plm,--disable-ais-plm,libvirt openhpi"
PACKAGECONFIG ?= "${@bb.utils.contains('DISTRO_FEATURES', 'systemd', ' systemd', '', d)}"
PKGLIBDIR="${libdir}"
-
+CPPFLAGS += "-Wno-error=stringop-overflow= -Wno-error=stringop-truncation"
+CXXFLAGS += "-Wno-error=stringop-overflow= -Wno-error=stringop-truncation -Wno-error=format-truncation="
LDFLAGS += "-Wl,--as-needed -latomic -Wl,--no-as-needed"
do_install_append() {
--
2.20.1
next prev parent reply other threads:[~2018-12-23 21:36 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-12-23 21:35 [meta-oe][PATCH 01/18] modemmanager: Fix build with gcc9 Khem Raj
2018-12-23 21:35 ` [meta-oe][PATCH 02/18] breakpad: Update to latest Khem Raj
2018-12-23 21:35 ` [meta-oe][PATCH 03/18] ltrace: Fix a NULL string use Khem Raj
2018-12-23 21:35 ` Khem Raj [this message]
2018-12-23 21:35 ` [meta-oe][PATCH 05/18] libgpiod: Rrecommend python3 only for PN-python package Khem Raj
2018-12-23 21:35 ` [meta-oe][PATCH 06/18] srecord: GPL-3.0 and LGPL-3.0 is correct license Khem Raj
2018-12-23 21:35 ` [meta-oe][PATCH 07/18] ttf-droid: Delete from staging install area instead of sources Khem Raj
2018-12-23 21:35 ` [meta-oe][PATCH 08/18] lio-utils: Switch SRC_URI to use datera mirror on github Khem Raj
2018-12-23 21:35 ` [meta-oe][PATCH 09/18] breakpad: Fix build with gcc9 on x86 Khem Raj
2018-12-23 21:35 ` [meta-networking][PATCH 10/18] miniupnpd: Fix cross compile on OE Khem Raj
2018-12-23 21:35 ` [meta-oe][PATCH 11/18] open-vm-tools: Upgrade to 10.3.5 Khem Raj
2018-12-23 21:35 ` [meta-multimedia][PATCH 12/18] tvheadend: Add dependency on dvb-apps Khem Raj
2018-12-23 21:35 ` [meta-oe][PATCH 13/18] mozjs: Remove -Werror=format from CXXFLAGS Khem Raj
2018-12-23 21:35 ` [meta-python][PATCH 14/18] python-msgpack: Upgrade to 0.6.0 Khem Raj
2018-12-23 21:35 ` [meta-python][PATCH 15/18] python-grpcio: Upgrade to 1.17.1 Khem Raj
2018-12-23 21:35 ` [meta-python][PATCH 16/18] python-pyflame: Upgrade to 1.6.7 Khem Raj
2018-12-23 21:45 ` Andrew Jeffery
2018-12-23 21:35 ` [meta-oe][PATCH 17/18] redis: Update to 4.0.12 Khem Raj
2018-12-23 21:35 ` [meta-oe][PATCH 18/18] android-tools: Disable for powerpc/powerpc64 Khem Raj
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20181223213557.7834-4-raj.khem@gmail.com \
--to=raj.khem@gmail.com \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.