mozjs78-silence-sandbox-violations.patch 1.3 KB

123456789101112131415161718192021222324252627
  1. "Carried over + updated from mozjs68"
  2. Upstream: no
  3. From 9ad10569e11a2fb96377188f895bc66abcc9511d Mon Sep 17 00:00:00 2001
  4. From: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
  5. Date: Wed, 5 Sep 2018 15:05:24 +0200
  6. Subject: [PATCH] silence sandbox violations
  7. Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
  8. ---
  9. python/mozbuild/mozbuild/frontend/emitter.py | 5 -----
  10. 1 file changed, 5 deletions(-)
  11. --- a/python/mozbuild/mozbuild/frontend/emitter.py
  12. +++ b/python/mozbuild/mozbuild/frontend/emitter.py
  13. @@ -1239,12 +1239,6 @@ class TreeMetadataEmitter(LoggingMixin):
  14. 'is a filename, but a directory is required: %s '
  15. '(resolved to %s)' % (local_include, full_path),
  16. context)
  17. - if (full_path == context.config.topsrcdir or
  18. - full_path == context.config.topobjdir):
  19. - raise SandboxValidationError(
  20. - 'Path specified in LOCAL_INCLUDES '
  21. - '(%s) resolves to the topsrcdir or topobjdir (%s), which is '
  22. - 'not allowed' % (local_include, full_path), context)
  23. include_obj = LocalInclude(context, local_include)
  24. local_includes.append(include_obj.path.full_path)
  25. yield include_obj