aboutsummaryrefslogtreecommitdiffstats
path: root/community/mozjs68/0001-silence-sandbox-violations.patch
blob: 5a5b8aba3b25d187c10ae2db6dc369f48a117951 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Upstream: no
From 9ad10569e11a2fb96377188f895bc66abcc9511d Mon Sep 17 00:00:00 2001
From: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
Date: Wed, 5 Sep 2018 15:05:24 +0200
Subject: [PATCH] silence sandbox violations

Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
---
 python/mozbuild/mozbuild/frontend/emitter.py | 5 -----
 1 file changed, 5 deletions(-)

--- a/python/mozbuild/mozbuild/frontend/emitter.py
+++ b/python/mozbuild/mozbuild/frontend/emitter.py
@@ -1195,11 +1195,6 @@
                     raise SandboxValidationError('Path specified in LOCAL_INCLUDES '
                         'is a filename, but a directory is required: %s '
                         '(resolved to %s)' % (local_include, full_path), context)
-            if (full_path == context.config.topsrcdir or
-                    full_path == context.config.topobjdir):
-                raise SandboxValidationError('Path specified in LOCAL_INCLUDES '
-                    '(%s) resolves to the topsrcdir or topobjdir (%s), which is '
-                    'not allowed' % (local_include, full_path), context)
             include_obj = LocalInclude(context, local_include)
             local_includes.append(include_obj.path.full_path)
             yield include_obj