From ef3bf44d9e448224c7d749731160b6916cc83006 Mon Sep 17 00:00:00 2001 From: Martin Stransky Date: Tue, 6 Oct 2020 21:49:08 +0200 Subject: Added pgo build fix --- pgo-build-python.patch | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pgo-build-python.patch (limited to 'pgo-build-python.patch') diff --git a/pgo-build-python.patch b/pgo-build-python.patch new file mode 100644 index 0000000..2d79542 --- /dev/null +++ b/pgo-build-python.patch @@ -0,0 +1,15 @@ +diff -up firefox-81.0.1/build/mach_bootstrap.py.old firefox-81.0.1/build/mach_bootstrap.py +--- firefox-81.0.1/build/mach_bootstrap.py.old 2020-10-06 14:16:06.212974910 +0200 ++++ firefox-81.0.1/build/mach_bootstrap.py 2020-10-06 14:19:03.313179557 +0200 +@@ -507,7 +507,10 @@ class ImportHook(object): + # doesn't happen or because it doesn't matter). + if not os.path.exists(module.__file__[:-1]): + if os.path.exists(module.__file__): +- os.remove(module.__file__) ++ try: ++ os.remove(module.__file__) ++ except: ++ pass + del sys.modules[module.__name__] + module = self(name, globals, locals, fromlist, level) + -- cgit