Skip to contentSkip to conversation

ola: add upstream patch to fix build on AArch64

PATCH New Thomas Petazzoni 2 participants 3 messages Nov 21, 2013 – Nov 22, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ola: add upstream patch to fix build on AArch64

Fixes:

http://autobuild.buildroot.org/results/596/5967dfd4bd7c2b68e2911a98b9b84c8fe7adf0aa/build-end.log

---
A new version of Ola, 0.8.33 has been released, it would be good to bump the version in the future version of Buildroot.

---
 package/ola/ola-0001-fix-build-warning.patch | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)
 create mode 100644 package/ola/ola-0001-fix-build-warning.patch
package/ola/ola-0001-fix-build-warning.patch new file +27 -0
new file mode 100644
index 0000000..1fdb58f
@@ -0,0 +1,27 @@
+Fix build on 64 bits architectures
+
+This upstream patch fixes a warning that, due to -Werror, is causing
+build failures on 64 bits architectures.
+
+Signed-off-by: Thomas Petazzoni <[email protected]>
+
+commit ea375582b0bfee93d66608ffc807078ffc48e961
+Author: Simon Newton <[email protected]>
+Date:   Wed Oct 30 09:23:49 2013 -0700
+
+    * Avoid a compiler warning
+
+diff --git a/plugins/e131/e131/PreamblePacker.cpp b/plugins/e131/e131/PreamblePacker.cpp
+index ef29e18..8dfcc72 100644
+--- a/plugins/e131/e131/PreamblePacker.cpp
++++ b/plugins/e131/e131/PreamblePacker.cpp
+@@ -77,7 +77,8 @@ const uint8_t *PreamblePacker::Pack(const PDUBlock<PDU> &pdu_block,
+   if (!m_send_buffer)
+     Init();
+ 
+-  unsigned int size = MAX_DATAGRAM_SIZE - sizeof(ACN_HEADER);
++  unsigned int size = MAX_DATAGRAM_SIZE -
++      static_cast<unsigned int>(sizeof(ACN_HEADER));
+   if (!pdu_block.Pack(m_send_buffer + sizeof(ACN_HEADER), &size)) {
+     OLA_WARN << "Failed to pack E1.31 PDU";
+     return NULL;
Signature · 1 line
1.8.1.2
#1 lore raw

PATCH 2/2 ola: disable -Werror

By default, the ola build uses -Werror, so let's pass --disable-fatal-warnings to remove this and avoid build failures caused by warnings.

---
 package/ola/ola.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
package/ola/ola.mk +2 -1
index 835ca4e..bc7de24 100644
@@ -19,7 +19,8 @@ OLA_CONF_OPT = \
 	--disable-tcmalloc \
 	--disable-unittests \
 	--disable-root-check \
-	--disable-java-libs
+	--disable-java-libs \
+	--disable-fatal-warnings
 
 # sets where to find python libs built for target and required by ola
 OLA_CONF_ENV = PYTHONPATH=$(TARGET_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages
Signature · 1 line
1.8.1.2