Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/qpdf: fix build with gcc 4.8
@ 2020-02-17 21:46 Fabrice Fontaine
  2020-02-18  2:51 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Fabrice Fontaine @ 2020-02-17 21:46 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/ad7fb68ae87850a85509eed80fd0cae8721b10c5

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...ests-cxx11.cc-fix-build-with-gcc-4.8.patch | 38 +++++++++++++++++++
 1 file changed, 38 insertions(+)
 create mode 100644 package/qpdf/0001-libtests-cxx11.cc-fix-build-with-gcc-4.8.patch

diff --git a/package/qpdf/0001-libtests-cxx11.cc-fix-build-with-gcc-4.8.patch b/package/qpdf/0001-libtests-cxx11.cc-fix-build-with-gcc-4.8.patch
new file mode 100644
index 0000000000..76504c7475
--- /dev/null
+++ b/package/qpdf/0001-libtests-cxx11.cc-fix-build-with-gcc-4.8.patch
@@ -0,0 +1,38 @@
+From e70c2605a11d12a8eeee3e7eec46077956e11e1f Mon Sep 17 00:00:00 2001
+From: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+Date: Mon, 17 Feb 2020 22:36:08 +0100
+Subject: [PATCH] libtests/cxx11.cc: fix build with gcc 4.8
+
+Build fails on gcc 4.8 since version 9.1.1 and commit
+752416554086d5d34323bc14164d5084db83cfbd:
+
+libtests/cxx11.cc: In function 'void do_regex()':
+libtests/cxx11.cc:347:42: error: 'strlen' is not a member of 'std'
+     std::cregex_iterator m3(str7, str7 + std::strlen(str7), expr4);
+                                          ^
+
+To fix the build failure, add missing include on cstring
+
+Fixes:
+ - http://autobuild.buildroot.org/results/ad7fb68ae87850a85509eed80fd0cae8721b10c5
+
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+[Upstream status: https://github.com/qpdf/qpdf/pull/400]
+---
+ libtests/cxx11.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/libtests/cxx11.cc b/libtests/cxx11.cc
+index fa1dc6b..91ed7b1 100644
+--- a/libtests/cxx11.cc
++++ b/libtests/cxx11.cc
+@@ -1,5 +1,6 @@
+ #include <iostream>
+ #include <cassert>
++#include <cstring>
+ #include <functional>
+ #include <type_traits>
+ #include <cstdint>
+-- 
+2.24.1
+
-- 
2.24.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH 1/1] package/qpdf: fix build with gcc 4.8
  2020-02-17 21:46 [Buildroot] [PATCH 1/1] package/qpdf: fix build with gcc 4.8 Fabrice Fontaine
@ 2020-02-18  2:51 ` Thomas Petazzoni
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2020-02-18  2:51 UTC (permalink / raw)
  To: buildroot

On Mon, 17 Feb 2020 22:46:01 +0100
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:

> Fixes:
>  - http://autobuild.buildroot.org/results/ad7fb68ae87850a85509eed80fd0cae8721b10c5
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
>  ...ests-cxx11.cc-fix-build-with-gcc-4.8.patch | 38 +++++++++++++++++++
>  1 file changed, 38 insertions(+)
>  create mode 100644 package/qpdf/0001-libtests-cxx11.cc-fix-build-with-gcc-4.8.patch

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-02-18  2:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-17 21:46 [Buildroot] [PATCH 1/1] package/qpdf: fix build with gcc 4.8 Fabrice Fontaine
2020-02-18  2:51 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox