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

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../ncurses/install-no-rm.patch
# Copyright (C) 2006 The OpenSDE Project
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
when deleting ncurses library, as bash depends on it, the world crashes... badly.
--- ./mk-1st.awk.orig 2006-10-17 18:38:56.000000000 +0000
+++ ./mk-1st.awk 2006-10-17 19:14:22.000000000 +0000
@@ -54,8 +54,7 @@
#
function symlink(src,dst) {
if ( src != dst ) {
- printf "rm -f %s; ", dst
- printf "$(LN_S) %s %s; ", src, dst
+ printf "$(LN_S) -nf %s %s; ", src, dst
}
}
function rmlink(directory, dst) {
@@ -111,7 +110,6 @@
}
printf "%s : %s $(%s_OBJS)\n", dst_libs, directory, OBJS
printf "\t@echo linking $@\n"
- print "\t-@rm -f %s", dst_libs;
if ( subset == "termlib" || subset == "termlib+ext_tinfo" ) {
make_shlib(OBJS, "TINFO_LIST")
} else {
@@ -123,7 +121,6 @@
src_name = sprintf("../lib/%s", filename);
dst_name = sprintf("$(DESTDIR)%s/%s", directory, filename);
printf "\t@echo installing %s as %s\n", src_name, dst_name
- printf "\t-@rm -f %s\n", dst_name
if ( directory == "$(bindir)" ) {
program = "$(INSTALL) -m 755";
} else {
@@ -257,11 +254,11 @@
if ( ShlibVer == "cygdll" ) {
ovr_name = sprintf("libcurses%s.a", suffix)
printf "\t@echo linking %s to %s\n", imp_name, ovr_name
- printf "\tcd $(DESTDIR)$(libdir) && (rm -f %s; $(LN_S) %s %s; )\n", ovr_name, imp_name, ovr_name
+ printf "\tcd $(DESTDIR)$(libdir) && $(LN_S) -nf %s %s\n", ovr_name, imp_name, ovr_name
} else {
ovr_name = sprintf("libcurses%s", suffix)
printf "\t@echo linking %s to %s\n", end_name, ovr_name
- printf "\tcd $(DESTDIR)$(libdir) && (rm -f %s; $(LN_S) %s %s; )\n", ovr_name, end_name, ovr_name
+ printf "\tcd $(DESTDIR)$(libdir) && $(LN_S) -nf %s %s\n", ovr_name, end_name, ovr_name
}
}
if ( ldconfig != "" && ldconfig != ":" ) {
@@ -341,8 +338,7 @@
if ( overwrite == "yes" && lib_name == "libncurses.a" )
{
printf "\t@echo linking libcurses.a to libncurses.a\n"
- printf "\t-@rm -f $(DESTDIR)$(libdir)/libcurses.a\n"
- printf "\t(cd $(DESTDIR)$(libdir) && $(LN_S) libncurses.a libcurses.a)\n"
+ printf "\t(cd $(DESTDIR)$(libdir) && $(LN_S) -nf libncurses.a libcurses.a)\n"
}
printf "\t$(RANLIB) $(DESTDIR)$(libdir)/%s\n", lib_name
if ( host == "vxworks" )