From 9c3debacab7d3ae9d54676eef0eafbe2b14b7ec4 Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sat, 3 Dec 2022 14:35:44 +0100 Subject: [PATCH 1/2] electron19: fix build with Python 3.11 --- srcpkgs/electron19/template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srcpkgs/electron19/template b/srcpkgs/electron19/template index c7cb81120d41..ed40a221ebe3 100644 --- a/srcpkgs/electron19/template +++ b/srcpkgs/electron19/template @@ -198,6 +198,9 @@ pre_configure() { sed 's|//third_party/usb_ids/usb.ids|/usr/share/hwdata/usb.ids|g' \ -i services/device/public/cpp/usb/BUILD.gn + vsed -e 's|python3.10|python3.11|g' -i third_party/electron_node/configure + vsed -e "s|(3, 10)|(3, 11)|" -i third_party/electron_node/configure + mkdir -p third_party/node/linux/node-linux-x64/bin ln -sf /usr/bin/node third_party/node/linux/node-linux-x64/bin/ rm -f third_party/devtools-frontend/src/third_party/esbuild/esbuild From 9875efbb4e00b37134878af20d5988022df0796d Mon Sep 17 00:00:00 2001 From: Michal Vasilek Date: Sat, 3 Dec 2022 14:43:55 +0100 Subject: [PATCH 2/2] electron19: fix build with gcc 12 --- srcpkgs/electron19/template | 3 +++ 1 file changed, 3 insertions(+) diff --git a/srcpkgs/electron19/template b/srcpkgs/electron19/template index ed40a221ebe3..068136be7623 100644 --- a/srcpkgs/electron19/template +++ b/srcpkgs/electron19/template @@ -201,6 +201,9 @@ pre_configure() { vsed -e 's|python3.10|python3.11|g' -i third_party/electron_node/configure vsed -e "s|(3, 10)|(3, 11)|" -i third_party/electron_node/configure + # Add missing include + vsed -e "s|#include |&\n#include |" -i base/third_party/symbolize/symbolize.h + mkdir -p third_party/node/linux/node-linux-x64/bin ln -sf /usr/bin/node third_party/node/linux/node-linux-x64/bin/ rm -f third_party/devtools-frontend/src/third_party/esbuild/esbuild