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.

70 lines
2.9 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 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. @@ -111,7 +110,6 @@
  30. }
  31. printf "%s : %s $(%s_OBJS)\n", dst_libs, directory, OBJS
  32. printf "\t@echo linking $@\n"
  33. - print "\t-@rm -f %s", dst_libs;
  34. if ( subset == "termlib" || subset == "termlib+ext_tinfo" ) {
  35. make_shlib(OBJS, "TINFO_LIST")
  36. } else {
  37. @@ -123,7 +121,6 @@
  38. src_name = sprintf("../lib/%s", filename);
  39. dst_name = sprintf("$(DESTDIR)%s/%s", directory, filename);
  40. printf "\t@echo installing %s as %s\n", src_name, dst_name
  41. - printf "\t-@rm -f %s\n", dst_name
  42. if ( directory == "$(bindir)" ) {
  43. program = "$(INSTALL) -m 755";
  44. } else {
  45. @@ -257,11 +254,11 @@
  46. if ( ShlibVer == "cygdll" ) {
  47. ovr_name = sprintf("libcurses%s.a", suffix)
  48. printf "\t@echo linking %s to %s\n", imp_name, ovr_name
  49. - printf "\tcd $(DESTDIR)$(libdir) && (rm -f %s; $(LN_S) %s %s; )\n", ovr_name, imp_name, ovr_name
  50. + printf "\tcd $(DESTDIR)$(libdir) && $(LN_S) -nf %s %s\n", ovr_name, imp_name, ovr_name
  51. } else {
  52. ovr_name = sprintf("libcurses%s", suffix)
  53. printf "\t@echo linking %s to %s\n", end_name, ovr_name
  54. - printf "\tcd $(DESTDIR)$(libdir) && (rm -f %s; $(LN_S) %s %s; )\n", ovr_name, end_name, ovr_name
  55. + printf "\tcd $(DESTDIR)$(libdir) && $(LN_S) -nf %s %s\n", ovr_name, end_name, ovr_name
  56. }
  57. }
  58. if ( ldconfig != "" && ldconfig != ":" ) {
  59. @@ -341,8 +338,7 @@
  60. if ( overwrite == "yes" && lib_name == "libncurses.a" )
  61. {
  62. printf "\t@echo linking libcurses.a to libncurses.a\n"
  63. - printf "\t-@rm -f $(DESTDIR)$(libdir)/libcurses.a\n"
  64. - printf "\t(cd $(DESTDIR)$(libdir) && $(LN_S) libncurses.a libcurses.a)\n"
  65. + printf "\t(cd $(DESTDIR)$(libdir) && $(LN_S) -nf libncurses.a libcurses.a)\n"
  66. }
  67. printf "\t$(RANLIB) $(DESTDIR)$(libdir)/%s\n", lib_name
  68. if ( host == "vxworks" )