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.

51 lines
1.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.disabled
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. One must not rm a library - especially not when the system - e.g. bash -
  18. depends on it ...
  19. - Rene Rebe <rene@exactcode.de>
  20. --- ./mk-1st.awk.orig 2004-01-10 20:48:43.000000000 +0000
  21. +++ ./mk-1st.awk 2005-06-12 12:05:30.000000000 +0000
  22. @@ -52,8 +52,7 @@
  23. #
  24. function symlink(src,dst) {
  25. if ( src != dst ) {
  26. - printf "rm -f %s; ", dst
  27. - printf "$(LN_S) %s %s; ", src, dst
  28. + printf "$(LN_S) -f %s %s; ", src, dst
  29. }
  30. }
  31. function rmlink(directory, dst) {
  32. @@ -224,7 +223,6 @@
  33. src_name = sprintf("../lib/%s", end_name);
  34. dst_name = sprintf("$(DESTDIR)$(libdir)/%s", end_name);
  35. printf "\t@echo installing %s as %s\n", src_name, dst_name
  36. - printf "\t-@rm -f %s\n", dst_name
  37. printf "\t$(INSTALL_LIB) %s %s\n", src_name, dst_name
  38. sharedlinks("$(DESTDIR)$(libdir)")
  39. @@ -240,7 +238,7 @@
  40. } else {
  41. ovr_name = sprintf("libcurses%s", suffix)
  42. printf "\t@echo linking %s to %s\n", end_name, ovr_name
  43. - printf "\tcd $(DESTDIR)$(libdir) && (rm -f %s; $(LN_S) %s %s; )\n", ovr_name, end_name, ovr_name
  44. + printf "\tcd $(DESTDIR)$(libdir) && ($(LN_S) -f %s %s; )\n", ovr_name, end_name, ovr_name
  45. }
  46. }
  47. if ( ldconfig != "" ) {