[cef][wam] Make the recipe work with official chromium release tarballs
[AGL/meta-agl-demo.git] / recipes-wam / cef / files / chromium / 0020-M118-fix-Don-t-look-for-depot_tools-in-chrommium-s-t.patch
1 From 814421a53454a9d35cd9d0799f68eaae8b7cf440 Mon Sep 17 00:00:00 2001
2 From: Roger Zanoni <rzanoni@igalia.com>
3 Date: Fri, 7 Apr 2023 16:28:51 +0200
4 Subject: [PATCH 20/33] [M118-fix] Don't look for depot_tools in chrommium's
5  third_party folder
6
7 This caused an issue at the configure step before we starte using
8 tarballs, we need to check if it still needed.
9
10 Upstream-Status: Inappropriate
11 Signed-off-by: Roger Zanoni <rzanoni@igalia.com>
12 ---
13  build/find_depot_tools.py | 8 --------
14  1 file changed, 8 deletions(-)
15
16 diff --git a/build/find_depot_tools.py b/build/find_depot_tools.py
17 index f891a414837a5..592bba699c00d 100755
18 --- a/build/find_depot_tools.py
19 +++ b/build/find_depot_tools.py
20 @@ -27,14 +27,6 @@ def IsRealDepotTools(path):
21  
22  def add_depot_tools_to_path():
23    """Search for depot_tools and add it to sys.path."""
24 -  # First, check if we have a DEPS'd in "depot_tools".
25 -  deps_depot_tools = os.path.join(SRC, 'third_party', 'depot_tools')
26 -  if IsRealDepotTools(deps_depot_tools):
27 -    # Put the pinned version at the start of the sys.path, in case there
28 -    # are other non-pinned versions already on the sys.path.
29 -    sys.path.insert(0, deps_depot_tools)
30 -    return deps_depot_tools
31 -
32    # Then look if depot_tools is already in PYTHONPATH.
33    for i in sys.path:
34      if i.rstrip(os.sep).endswith('depot_tools') and IsRealDepotTools(i):
35 -- 
36 2.42.1
37