]> git.pld-linux.org Git - packages/mozjs78.git/blob - copy-headers.patch
- new, based on mozjs68 (but now rust is required in base library)
[packages/mozjs78.git] / copy-headers.patch
1 From 3b3c8e37cca418e07bdeceaf3a601805df28d925 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Franti=C5=A1ek=20Zatloukal?= <fzatlouk@redhat.com>
3 Date: Wed, 15 Jul 2020 08:27:39 +0200
4 Subject: [PATCH] build: Copy headers on install instead of symlinking
5
6 Patch by Philip Chimento ported forward to mozjs78
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 e3fc8fe..bed5ae9 100644
13 --- a/python/mozbuild/mozbuild/backend/recursivemake.py
14 +++ b/python/mozbuild/mozbuild/backend/recursivemake.py
15 @@ -1457,9 +1457,9 @@ class RecursiveMakeBackend(MakeBackend):
16                                  raise Exception("Wildcards are only supported in the filename part"
17                                                  " of srcdir-relative or absolute paths.")
18  
19 -                            install_manifest.add_pattern_link(basepath, wild, path)
20 +                            install_manifest.add_pattern_copy(basepath, wild, path)
21                          else:
22 -                            install_manifest.add_pattern_link(f.srcdir, f, path)
23 +                            install_manifest.add_pattern_copy(f.srcdir, f, path)
24                      elif isinstance(f, AbsolutePath):
25                          if not f.full_path.lower().endswith(('.dll', '.pdb', '.so')):
26                              raise Exception("Absolute paths installed to FINAL_TARGET_FILES must"
27 @@ -1468,7 +1468,7 @@ class RecursiveMakeBackend(MakeBackend):
28                          install_manifest.add_optional_exists(dest)
29                          absolute_files.append(f.full_path)
30                      else:
31 -                        install_manifest.add_link(f.full_path, dest)
32 +                        install_manifest.add_copy(f.full_path, dest)
33                  else:
34                      install_manifest.add_optional_exists(dest)
35                      objdir_files.append(self._pretty_path(f, backend_file))
36 -- 
37 2.26.2
38
This page took 0.117711 seconds and 3 git commands to generate.