1From 51e8fed854fd9d373bb9b20d7ed8e7cf6ef12312 Mon Sep 17 00:00:00 2001 2From: Adam Duskett <adam.duskett@amarulasolutions.com> 3Date: Wed, 19 Jul 2023 11:48:59 -0700 4Subject: [PATCH] pkg-config.py: do not prepend sysroot path 5 6Buildroot uses the standard PKG_CONFIG_SYSROOT_DIR variable, so what the 7pkg-config.py script is doing doesn't make sense. There is no need to prepend 8the sysroot, and flutter should let pkg-config use the PKG_CONFIG_SYSROOT_DIR 9variable. 10 11Without this patch, the pkg-config.py script double prepends the sysroot path. 12IE: output/host/.../sysroot/output/host/.../sysroot 13 14Upstream: https://github.com/flutter/flutter/issues/132152 15Signed-off-by: Adam Duskett <adam.duskett@amarulasolutions.com> 16--- 17 build/config/linux/pkg-config.py | 4 +--- 18 1 file changed, 1 insertion(+), 3 deletions(-) 19 20diff --git a/build/config/linux/pkg-config.py b/build/config/linux/pkg-config.py 21index b4a6aff17..44ffdcaea 100644 22--- a/build/config/linux/pkg-config.py 23+++ b/build/config/linux/pkg-config.py 24@@ -207,9 +207,7 @@ def main(): 25 all_flags = flag_string.strip().split(' ') 26 27 28- sysroot = options.sysroot 29- if not sysroot: 30- sysroot = '' 31+ sysroot = '' 32 33 includes = [] 34 cflags = [] 35-- 362.41.0 37 38