* [Buildroot] [PATCH 1/1] boost: fix build with domoticz
@ 2018-01-16 18:29 Fabrice Fontaine
2018-01-16 22:11 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2018-01-16 18:29 UTC (permalink / raw)
To: buildroot
Fix domoticz build with boost 1.66 and g++5
Patch fetch from one of the answer of
https://github.com/domoticz/domoticz/issues/2034:
workaround suggested to the boost developers
Fixes:
- http://autobuild.buildroot.net/results/dec57c19e9aa2e367e23de2232c1d22a2f226a32
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
package/boost/0005-fix-build-with-g-5.patch | 32 +++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
create mode 100644 package/boost/0005-fix-build-with-g-5.patch
diff --git a/package/boost/0005-fix-build-with-g-5.patch b/package/boost/0005-fix-build-with-g-5.patch
new file mode 100644
index 0000000000..49149e6ebf
--- /dev/null
+++ b/package/boost/0005-fix-build-with-g-5.patch
@@ -0,0 +1,32 @@
+From da2793fcde5c4e3ff448b4b21348ef8b1482c678 Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Tue, 16 Jan 2018 14:51:32 +0100
+Subject: [PATCH] fix build with g++5
+
+Patch needed to build domoticz
+
+Patch fetch from one of the answer of
+ https://github.com/domoticz/domoticz/issues/2034:
+ workaround suggested to the boost developers
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ boost/asio/detail/consuming_buffers.hpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/boost/asio/detail/consuming_buffers.hpp b/boost/asio/detail/consuming_buffers.hpp
+index a429f97..b7a887c 100644
+--- a/boost/asio/detail/consuming_buffers.hpp
++++ b/boost/asio/detail/consuming_buffers.hpp
+@@ -102,7 +102,7 @@ public:
+
+ std::advance(next, next_elem_);
+ std::size_t elem_offset = next_elem_offset_;
+- while (next != end && max_size > 0 && result.count < result.max_buffers)
++ while (next != end && max_size > 0 && (result.count) < result.max_buffers)
+ {
+ Buffer next_buf = Buffer(*next) + elem_offset;
+ result.elems[result.count] = boost::asio::buffer(next_buf, max_size);
+--
+2.7.4
+
--
2.14.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] boost: fix build with domoticz
2018-01-16 18:29 [Buildroot] [PATCH 1/1] boost: fix build with domoticz Fabrice Fontaine
@ 2018-01-16 22:11 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2018-01-16 22:11 UTC (permalink / raw)
To: buildroot
Hello,
On Tue, 16 Jan 2018 19:29:00 +0100, Fabrice Fontaine wrote:
> Fix domoticz build with boost 1.66 and g++5
>
> Patch fetch from one of the answer of
> https://github.com/domoticz/domoticz/issues/2034:
> workaround suggested to the boost developers
>
> Fixes:
> - http://autobuild.buildroot.net/results/dec57c19e9aa2e367e23de2232c1d22a2f226a32
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> package/boost/0005-fix-build-with-g-5.patch | 32 +++++++++++++++++++++++++++++
> 1 file changed, 32 insertions(+)
> create mode 100644 package/boost/0005-fix-build-with-g-5.patch
The patch is definitely a bit hackish, so I would prefer a gcc fix. But
until that happens and all gcc 5.x toolchains get updated, it's good to
have a workaround for the problem. So I've applied your patch to the
master branch.
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-01-16 22:11 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-01-16 18:29 [Buildroot] [PATCH 1/1] boost: fix build with domoticz Fabrice Fontaine
2018-01-16 22:11 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox