* [Buildroot] [PATCH 1/1] package/reproc: fix build with gcc >= 13
@ 2023-10-22 20:24 Fabrice Fontaine
2023-11-01 16:52 ` Thomas Petazzoni via buildroot
2023-11-08 6:59 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Fontaine @ 2023-10-22 20:24 UTC (permalink / raw)
To: buildroot; +Cc: TIAN Yuanhao, Fabrice Fontaine
Fix the following build failure with gcc >= 13:
In file included from /home/buildroot/autobuild/instance-1/output-1/build/reproc-14.2.4/reproc++/src/reproc.cpp:1:
/home/buildroot/autobuild/instance-1/output-1/build/reproc-14.2.4/reproc++/include/reproc++/reproc.hpp:95:5: error: declaration of 'reproc::options::<unnamed struct> reproc::options::env' changes meaning of 'env' [-Wchanges-meaning]
95 | } env = {};
| ^~~
/home/buildroot/autobuild/instance-1/output-1/build/reproc-14.2.4/reproc++/include/reproc++/reproc.hpp:91:5: note: used here to mean 'class reproc::env'
91 | env::type behavior;
| ^~~
Fixes:
- http://autobuild.buildroot.org/results/11feca3698154c255938ab3b25a34429135c31f8
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
.../0001-reproc-Try-to-fix-gcc-13-build.patch | 37 +++++++++++++++++++
package/reproc/0002-Fix-gcc-13-build.patch | 28 ++++++++++++++
2 files changed, 65 insertions(+)
create mode 100644 package/reproc/0001-reproc-Try-to-fix-gcc-13-build.patch
create mode 100644 package/reproc/0002-Fix-gcc-13-build.patch
diff --git a/package/reproc/0001-reproc-Try-to-fix-gcc-13-build.patch b/package/reproc/0001-reproc-Try-to-fix-gcc-13-build.patch
new file mode 100644
index 0000000000..22b21bcbc7
--- /dev/null
+++ b/package/reproc/0001-reproc-Try-to-fix-gcc-13-build.patch
@@ -0,0 +1,37 @@
+From 0b23d88894ccedde04537fa23ea55cb2f8365342 Mon Sep 17 00:00:00 2001
+From: Daan De Meyer <daan.j.demeyer@gmail.com>
+Date: Sat, 18 Mar 2023 19:38:19 +0100
+Subject: [PATCH] reproc++: Try to fix gcc 13 build
+
+Upstream: https://github.com/DaanDeMeyer/reproc/commit/0b23d88894ccedde04537fa23ea55cb2f8365342
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ reproc++/include/reproc++/reproc.hpp | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
+
+diff --git a/reproc++/include/reproc++/reproc.hpp b/reproc++/include/reproc++/reproc.hpp
+index ab6f1394..e883ecec 100644
+--- a/reproc++/include/reproc++/reproc.hpp
++++ b/reproc++/include/reproc++/reproc.hpp
+@@ -88,7 +88,7 @@ struct redirect {
+
+ struct options {
+ struct {
+- env::type behavior;
++ enum env::type behavior;
+ /*! Implicitly converts from any STL container of string pairs to the
+ environment format expected by `reproc_start`. */
+ class env extra;
+@@ -97,9 +97,9 @@ struct options {
+ const char *working_directory = nullptr;
+
+ struct {
+- redirect in;
+- redirect out;
+- redirect err;
++ struct redirect in;
++ struct redirect out;
++ struct redirect err;
+ bool parent;
+ bool discard;
+ FILE *file;
diff --git a/package/reproc/0002-Fix-gcc-13-build.patch b/package/reproc/0002-Fix-gcc-13-build.patch
new file mode 100644
index 0000000000..3e06a2a396
--- /dev/null
+++ b/package/reproc/0002-Fix-gcc-13-build.patch
@@ -0,0 +1,28 @@
+From 9f399675b821e175f85ac3ee6e3fd2e6056573eb Mon Sep 17 00:00:00 2001
+From: Daan De Meyer <daan.j.demeyer@gmail.com>
+Date: Fri, 21 Apr 2023 19:36:45 +0200
+Subject: [PATCH] Fix gcc 13 build
+
+Upstream: https://github.com/DaanDeMeyer/reproc/commit/9f399675b821e175f85ac3ee6e3fd2e6056573eb
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ reproc++/include/reproc++/reproc.hpp | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/reproc++/include/reproc++/reproc.hpp b/reproc++/include/reproc++/reproc.hpp
+index b52f495e..7b614a94 100644
+--- a/reproc++/include/reproc++/reproc.hpp
++++ b/reproc++/include/reproc++/reproc.hpp
+@@ -88,10 +88,10 @@ struct redirect {
+
+ struct options {
+ struct {
+- enum env::type behavior;
++ reproc::env::type behavior;
+ /*! Implicitly converts from any STL container of string pairs to the
+ environment format expected by `reproc_start`. */
+- class env extra;
++ reproc::env extra;
+ } env = {};
+
+ const char *working_directory = nullptr;
--
2.42.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/reproc: fix build with gcc >= 13
2023-10-22 20:24 [Buildroot] [PATCH 1/1] package/reproc: fix build with gcc >= 13 Fabrice Fontaine
@ 2023-11-01 16:52 ` Thomas Petazzoni via buildroot
2023-11-08 6:59 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni via buildroot @ 2023-11-01 16:52 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: TIAN Yuanhao, buildroot
On Sun, 22 Oct 2023 22:24:33 +0200
Fabrice Fontaine <fontaine.fabrice@gmail.com> wrote:
> Fix the following build failure with gcc >= 13:
>
> In file included from /home/buildroot/autobuild/instance-1/output-1/build/reproc-14.2.4/reproc++/src/reproc.cpp:1:
> /home/buildroot/autobuild/instance-1/output-1/build/reproc-14.2.4/reproc++/include/reproc++/reproc.hpp:95:5: error: declaration of 'reproc::options::<unnamed struct> reproc::options::env' changes meaning of 'env' [-Wchanges-meaning]
> 95 | } env = {};
> | ^~~
> /home/buildroot/autobuild/instance-1/output-1/build/reproc-14.2.4/reproc++/include/reproc++/reproc.hpp:91:5: note: used here to mean 'class reproc::env'
> 91 | env::type behavior;
> | ^~~
>
> Fixes:
> - http://autobuild.buildroot.org/results/11feca3698154c255938ab3b25a34429135c31f8
>
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
> ---
> .../0001-reproc-Try-to-fix-gcc-13-build.patch | 37 +++++++++++++++++++
> package/reproc/0002-Fix-gcc-13-build.patch | 28 ++++++++++++++
> 2 files changed, 65 insertions(+)
> create mode 100644 package/reproc/0001-reproc-Try-to-fix-gcc-13-build.patch
> create mode 100644 package/reproc/0002-Fix-gcc-13-build.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH 1/1] package/reproc: fix build with gcc >= 13
2023-10-22 20:24 [Buildroot] [PATCH 1/1] package/reproc: fix build with gcc >= 13 Fabrice Fontaine
2023-11-01 16:52 ` Thomas Petazzoni via buildroot
@ 2023-11-08 6:59 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2023-11-08 6:59 UTC (permalink / raw)
To: Fabrice Fontaine; +Cc: TIAN Yuanhao, buildroot
>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:
> Fix the following build failure with gcc >= 13:
> In file included from /home/buildroot/autobuild/instance-1/output-1/build/reproc-14.2.4/reproc++/src/reproc.cpp:1:
> /home/buildroot/autobuild/instance-1/output-1/build/reproc-14.2.4/reproc++/include/reproc++/reproc.hpp:95:5:
> error: declaration of 'reproc::options::<unnamed struct>
> reproc::options::env' changes meaning of 'env' [-Wchanges-meaning]
> 95 | } env = {};
> | ^~~
> /home/buildroot/autobuild/instance-1/output-1/build/reproc-14.2.4/reproc++/include/reproc++/reproc.hpp:91:5:
> note: used here to mean 'class reproc::env'
> 91 | env::type behavior;
> | ^~~
> Fixes:
> - http://autobuild.buildroot.org/results/11feca3698154c255938ab3b25a34429135c31f8
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Committed to 2023.08.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-08 6:59 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-22 20:24 [Buildroot] [PATCH 1/1] package/reproc: fix build with gcc >= 13 Fabrice Fontaine
2023-11-01 16:52 ` Thomas Petazzoni via buildroot
2023-11-08 6:59 ` Peter Korsgaard
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.