OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
2.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../ncurses/install-no-rm.patch
  5. # Copyright (C) 2006 - 2007 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. when deleting ncurses library, as bash depends on it, the world crashes... badly.
  17. --- ./mk-1st.awk.orig 2006-10-17 18:38:56.000000000 +0000
  18. +++ ./mk-1st.awk 2006-10-17 19:14:22.000000000 +0000
  19. @@ -54,8 +54,7 @@
  20. #
  21. function symlink(src,dst) {
  22. if ( src != dst ) {
  23. - printf "rm -f %s; ", dst
  24. - printf "$(LN_S) %s %s; ", src, dst
  25. + printf "$(LN_S) -nf %s %s; ", src, dst
  26. }
  27. }
  28. function rmlink(directory, dst) {
  29. @@ -257,11 +254,11 @@
  30. if ( ShlibVer == "cygdll" ) {
  31. ovr_name = sprintf("libcurses%s.a", suffix)
  32. printf "\t@echo linking %s to %s\n", imp_name, ovr_name
  33. - printf "\tcd $(DESTDIR)$(libdir) && (rm -f %s; $(LN_S) %s %s; )\n", ovr_name, imp_name, ovr_name
  34. + printf "\tcd $(DESTDIR)$(libdir) && $(LN_S) -nf %s %s\n", ovr_name, imp_name, ovr_name
  35. } else {
  36. ovr_name = sprintf("libcurses%s", suffix)
  37. printf "\t@echo linking %s to %s\n", end_name, ovr_name
  38. - printf "\tcd $(DESTDIR)$(libdir) && (rm -f %s; $(LN_S) %s %s; )\n", ovr_name, end_name, ovr_name
  39. + printf "\tcd $(DESTDIR)$(libdir) && $(LN_S) -nf %s %s\n", ovr_name, end_name, ovr_name
  40. }
  41. }
  42. if ( ldconfig != "" && ldconfig != ":" ) {
  43. @@ -341,8 +338,7 @@
  44. if ( overwrite == "yes" && lib_name == "libncurses.a" )
  45. {
  46. printf "\t@echo linking libcurses.a to libncurses.a\n"
  47. - printf "\t-@rm -f $(DESTDIR)$(libdir)/libcurses.a\n"
  48. - printf "\t(cd $(DESTDIR)$(libdir) && $(LN_S) libncurses.a libcurses.a)\n"
  49. + printf "\t(cd $(DESTDIR)$(libdir) && $(LN_S) -nf libncurses.a libcurses.a)\n"
  50. }
  51. printf "\t$(RANLIB) $(DESTDIR)$(libdir)/%s\n", lib_name
  52. if ( host == "vxworks" )