Blame SOURCES/copy-headers.patch

d559a5
From 3b3c8e37cca418e07bdeceaf3a601805df28d925 Mon Sep 17 00:00:00 2001
d559a5
From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= <fzatlouk@redhat.com>
d559a5
Date: Wed, 15 Jul 2020 08:27:39 +0200
d559a5
Subject: [PATCH] build: Copy headers on install instead of symlinking
d559a5
d559a5
Patch by Philip Chimento ported forward to mozjs78
d559a5
---
d559a5
 python/mozbuild/mozbuild/backend/recursivemake.py | 6 +++---
d559a5
 1 file changed, 3 insertions(+), 3 deletions(-)
d559a5
d559a5
diff --git a/python/mozbuild/mozbuild/backend/recursivemake.py b/python/mozbuild/mozbuild/backend/recursivemake.py
d559a5
index e3fc8fe..bed5ae9 100644
d559a5
--- a/python/mozbuild/mozbuild/backend/recursivemake.py
d559a5
+++ b/python/mozbuild/mozbuild/backend/recursivemake.py
d559a5
@@ -1457,9 +1457,9 @@ class RecursiveMakeBackend(MakeBackend):
d559a5
                                 raise Exception("Wildcards are only supported in the filename part"
d559a5
                                                 " of srcdir-relative or absolute paths.")
d559a5
 
d559a5
-                            install_manifest.add_pattern_link(basepath, wild, path)
d559a5
+                            install_manifest.add_pattern_copy(basepath, wild, path)
d559a5
                         else:
d559a5
-                            install_manifest.add_pattern_link(f.srcdir, f, path)
d559a5
+                            install_manifest.add_pattern_copy(f.srcdir, f, path)
d559a5
                     elif isinstance(f, AbsolutePath):
d559a5
                         if not f.full_path.lower().endswith(('.dll', '.pdb', '.so')):
d559a5
                             raise Exception("Absolute paths installed to FINAL_TARGET_FILES must"
d559a5
@@ -1468,7 +1468,7 @@ class RecursiveMakeBackend(MakeBackend):
d559a5
                         install_manifest.add_optional_exists(dest)
d559a5
                         absolute_files.append(f.full_path)
d559a5
                     else:
d559a5
-                        install_manifest.add_link(f.full_path, dest)
d559a5
+                        install_manifest.add_copy(f.full_path, dest)
d559a5
                 else:
d559a5
                     install_manifest.add_optional_exists(dest)
d559a5
                     objdir_files.append(self._pretty_path(f, backend_file))
d559a5
-- 
d559a5
2.26.2
d559a5