kumquat-buildroot/package/qt5/qt5webengine-chromium/0002-Don-t-rebase-sysroot-path.patch
James Hilliard 577d886886 package/qt5/qt5webengine-chromium: new package
We need to add a separate package for the chromium submodule so that
we can apply patches for python3 support to it and replace catapult
with a python3 compatible version.

Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2022-05-17 21:55:53 +02:00

33 lines
1.4 KiB
Diff

From bfc520671693587a0b81842018326da35aa97f80 Mon Sep 17 00:00:00 2001
From: James Hilliard <james.hilliard1@gmail.com>
Date: Thu, 3 Feb 2022 20:41:08 -0700
Subject: [PATCH] Don't rebase sysroot path
Just use the actual sysroot as rebase_path will generate an invalid
sysroot path.
Fixes:
/home/buildroot/buildroot/output/per-package/qt5webengine/host/opt/ext-toolchain/bin/../lib/gcc/aarch64-buildroot-linux-gnu/10.3.0/../../../../aarch64-buildroot-linux-gnu/bin/ld: cannot find crti.o: No such file or directory
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
---
chromium/build/config/posix/BUILD.gn | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chromium/build/config/posix/BUILD.gn b/chromium/build/config/posix/BUILD.gn
index e61554c5656..dc957225869 100644
--- a/chromium/build/config/posix/BUILD.gn
+++ b/chromium/build/config/posix/BUILD.gn
@@ -27,7 +27,7 @@ config("runtime_library") {
if (!is_apple && sysroot != "") {
# Pass the sysroot to all C compiler variants, the assembler, and linker.
- sysroot_flags = [ "--sysroot=" + rebase_path(sysroot, root_build_dir) ]
+ sysroot_flags = [ "--sysroot=" + sysroot ]
if (is_linux || is_chromeos) {
# This is here so that all files get recompiled after a sysroot roll and
# when turning the sysroot on or off. (defines are passed via the command
--
2.25.1