0003-gyp-don-t-use-links-at-all-just-copy-the-files-inste.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 0cd9f08a6d4f4be6643001b6c3b5ad40e094bdcc Mon Sep 17 00:00:00 2001
  2. From: Nathan Zadoks <nathan@nathan7.eu>
  3. Date: Tue, 2 Jul 2013 11:07:16 -0700
  4. Subject: [PATCH 3/3] gyp: don't use links at all, just copy the files instead
  5. ---
  6. gyp/pylib/gyp/generator/make.py | 2 +-
  7. gyp/pylib/gyp/generator/ninja.py | 2 +-
  8. 2 files changed, 2 insertions(+), 2 deletions(-)
  9. diff --git a/gyp/pylib/gyp/generator/make.py b/gyp/pylib/gyp/generator/make.py
  10. index 9b3e4e3..b3f8a2b 100644
  11. --- a/gyp/pylib/gyp/generator/make.py
  12. +++ b/gyp/pylib/gyp/generator/make.py
  13. @@ -372,7 +372,7 @@ cmd_touch = touch $@
  14. quiet_cmd_copy = COPY $@
  15. # send stderr to /dev/null to ignore messages when linking directories.
  16. -cmd_copy = ln -f "$<" "$@" 2>/dev/null || (rm -rf "$@" && cp -af "$<" "$@")
  17. +cmd_copy = rm -rf "$@" && cp -af "$<" "$@"
  18. %(link_commands)s
  19. """
  20. diff --git a/gyp/pylib/gyp/generator/ninja.py b/gyp/pylib/gyp/generator/ninja.py
  21. index 7461814..c2951a4 100644
  22. --- a/gyp/pylib/gyp/generator/ninja.py
  23. +++ b/gyp/pylib/gyp/generator/ninja.py
  24. @@ -2020,7 +2020,7 @@ def GenerateOutputForConfig(target_list, target_dicts, data, params,
  25. master_ninja.rule(
  26. 'copy',
  27. description='COPY $in $out',
  28. - command='ln -f $in $out 2>/dev/null || (rm -rf $out && cp -af $in $out)')
  29. + command='rm -rf $out && cp -af $in $out')
  30. master_ninja.newline()
  31. all_targets = set()
  32. --
  33. 2.3.2 (Apple Git-55)