Debian Codegraph @

debian/patches/copy-headers.patch

raw
1 From: Rico Tzschichholz <[email protected]>
2 Date: Wed, 5 Jul 2017 22:45:59 -0700
3 Subject: build: Copy headers on install instead of symlinking
4
5 Patch ported forward to mozjs52 by Philip Chimento
6 <[email protected]>.
7 ---
8 python/mozbuild/mozbuild/backend/recursivemake.py | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
10
11 diff --git a/python/mozbuild/mozbuild/backend/recursivemake.py b/python/mozbuild/mozbuild/backend/recursivemake.py
12 index d3e7d47..8065161 100644
13 --- a/python/mozbuild/mozbuild/backend/recursivemake.py
14 +++ b/python/mozbuild/mozbuild/backend/recursivemake.py
15 @@ -1574,9 +1574,9 @@ class RecursiveMakeBackend(MakeBackend):
16 " of srcdir-relative or absolute paths."
17 )
18
19 - install_manifest.add_pattern_link(basepath, wild, dest_dir)
20 + install_manifest.add_pattern_copy(basepath, wild, dest_dir)
21 else:
22 - install_manifest.add_pattern_link(f.srcdir, f, dest_dir)
23 + install_manifest.add_pattern_copy(f.srcdir, f, dest_dir)
24 elif isinstance(f, AbsolutePath):
25 if not f.full_path.lower().endswith((".dll", ".pdb", ".so")):
26 raise Exception(
27 @@ -1587,7 +1587,7 @@ class RecursiveMakeBackend(MakeBackend):
28 install_manifest.add_optional_exists(dest_file)
29 absolute_files.append(f.full_path)
30 else:
31 - install_manifest.add_link(f.full_path, dest_file)
32 + install_manifest.add_copy(f.full_path, dest_file)
33 else:
34 install_manifest.add_optional_exists(dest_file)
35 objdir_files.append(self._pretty_path(f, backend_file))