Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
GNOME:Next
mozjs128
emitter.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File emitter.patch of Package mozjs128
From d1d785c169345b81c76213f6dd9be32b4db60294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= <fzatlouk@redhat.com> Date: Wed, 15 Jul 2020 08:39:47 +0200 Subject: [PATCH] Build: allow LOCAL_INCLUDES paths with topsrcdir or topobjdir --- python/mozbuild/mozbuild/frontend/emitter.py | 10 --------- .../mozbuild/test/frontend/test_emitter.py | 22 ------------------- 2 files changed, 32 deletions(-) Index: firefox-115.1.0/python/mozbuild/mozbuild/frontend/emitter.py =================================================================== --- firefox-115.1.0.orig/python/mozbuild/mozbuild/frontend/emitter.py +++ firefox-115.1.0/python/mozbuild/mozbuild/frontend/emitter.py @@ -1358,16 +1358,6 @@ class TreeMetadataEmitter(LoggingMixin): "(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 Index: firefox-115.1.0/python/mozbuild/mozbuild/test/frontend/test_emitter.py =================================================================== --- firefox-115.1.0.orig/python/mozbuild/mozbuild/test/frontend/test_emitter.py +++ firefox-115.1.0/python/mozbuild/mozbuild/test/frontend/test_emitter.py @@ -1071,28 +1071,6 @@ class TestEmitterBasic(unittest.TestCase self.assertEqual(local_includes, expected) - def test_local_includes_invalid(self): - """Test that invalid LOCAL_INCLUDES are properly detected.""" - reader = self.reader("local_includes-invalid/srcdir") - - with six.assertRaisesRegex( - self, - SandboxValidationError, - "Path specified in LOCAL_INCLUDES.*resolves to the " - "topsrcdir or topobjdir", - ): - self.read_topsrcdir(reader) - - reader = self.reader("local_includes-invalid/objdir") - - with six.assertRaisesRegex( - self, - SandboxValidationError, - "Path specified in LOCAL_INCLUDES.*resolves to the " - "topsrcdir or topobjdir", - ): - self.read_topsrcdir(reader) - def test_local_includes_file(self): """Test that a filename can't be used in LOCAL_INCLUDES.""" reader = self.reader("local_includes-filename")
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor