0006-copy-headers-on-install-instead-of-symlinking.patch 1.7 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 903a79a1efff18fc7cc50db09a3fe5d768adc9a8 Mon 19 Mar 2018 09:58:06 +0100
  2. From: Rico Tzschichholz <ricotz@ubuntu.com>
  3. Date: Wed, 5 Jul 2017 22:45:59 -0700
  4. Subject: build: Copy headers on install instead of symlinking
  5. Patch ported from mozjs52 by Philip Chimento
  6. Signed-off-by: Rico Tzschichholz <ricotz@ubuntu.com>
  7. Signed-off-by: Adam Duskett <aduskett@gmail.com>
  8. ---
  9. python/mozbuild/mozbuild/backend/recursivemake.py | 6 +++---
  10. 1 file changed, 3 insertions(+), 3 deletions(-)
  11. diff --git a/python/mozbuild/mozbuild/backend/recursivemake.py b/python/mozbuild/mozbuild/backend/recursivemake.py
  12. index dd9020d..6918ef8 100644
  13. --- a/python/mozbuild/mozbuild/backend/recursivemake.py
  14. +++ b/python/mozbuild/mozbuild/backend/recursivemake.py
  15. @@ -1427,11 +1427,11 @@ class RecursiveMakeBackend(CommonBackend):
  16. raise Exception("Wildcards are only supported in the filename part of "
  17. "srcdir-relative or absolute paths.")
  18. - install_manifest.add_pattern_link(basepath, wild, path)
  19. + install_manifest.add_pattern_copy(basepath, wild, path)
  20. else:
  21. - install_manifest.add_pattern_link(f.srcdir, f, path)
  22. + install_manifest.add_pattern_copy(f.srcdir, f, path)
  23. else:
  24. - install_manifest.add_link(f.full_path, dest)
  25. + install_manifest.add_copy(f.full_path, dest)
  26. else:
  27. install_manifest.add_optional_exists(dest)
  28. backend_file.write('%s_FILES += %s\n' % (
  29. --
  30. 2.23.0