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.

65 lines
2.4 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../readline/install-no_rm.patch
  5. # Copyright (C) 2006 - 2010 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. diff -ruN readline-6.1-orig/Makefile.in readline-6.1/Makefile.in
  17. --- readline-6.1-orig/Makefile.in 2009-04-19 18:14:24.000000000 +0200
  18. +++ readline-6.1/Makefile.in 2010-09-01 12:32:47.084140034 +0200
  19. @@ -222,10 +222,8 @@
  20. maybe-uninstall-headers: uninstall-headers
  21. install-static: installdirs $(STATIC_LIBS) install-headers install-doc install-examples
  22. - -$(MV) $(DESTDIR)$(libdir)/libreadline.a $(DESTDIR)$(libdir)/libreadline.old
  23. $(INSTALL_DATA) libreadline.a $(DESTDIR)$(libdir)/libreadline.a
  24. -test -n "$(RANLIB)" && $(RANLIB) $(DESTDIR)$(libdir)/libreadline.a
  25. - -$(MV) $(DESTDIR)$(libdir)/libhistory.a $(DESTDIR)$(libdir)/libhistory.old
  26. $(INSTALL_DATA) libhistory.a $(DESTDIR)$(libdir)/libhistory.a
  27. -test -n "$(RANLIB)" && $(RANLIB) $(DESTDIR)$(libdir)/libhistory.a
  28. diff -ruN readline-6.1-orig/support/shlib-install readline-6.1/support/shlib-install
  29. --- readline-6.1-orig/support/shlib-install 2009-10-28 14:30:18.000000000 +0100
  30. +++ readline-6.1/support/shlib-install 2010-09-01 12:34:40.772101116 +0200
  31. @@ -44,16 +44,7 @@
  32. OLDSUFF=old
  33. MV=mv
  34. RM="rm -f"
  35. -LN="ln -s"
  36. -
  37. -# pre-install
  38. -
  39. -if [ -z "$uninstall" ]; then
  40. - ${echo} $RM ${INSTALLDIR}/${LIBNAME}.${OLDSUFF}
  41. - if [ -f "$INSTALLDIR/$LIBNAME" ]; then
  42. - ${echo} $MV $INSTALLDIR/$LIBNAME ${INSTALLDIR}/${LIBNAME}.${OLDSUFF}
  43. - fi
  44. -fi
  45. +LN="ln -sf"
  46. # install/uninstall
  47. @@ -119,13 +110,11 @@
  48. case "$host_os-$host_vendor" in
  49. *linux*|freebsd*-gentoo)
  50. # libname.so.M -> libname.so.M.N
  51. - ${echo} ${RM} ${INSTALLDIR}/$LINK2
  52. if [ -z "$uninstall" ]; then
  53. eval $INSTALL_LINK2
  54. fi
  55. # libname.so -> libname.so.M
  56. - ${echo} ${RM} ${INSTALLDIR}/$LINK1
  57. if [ -z "$uninstall" ]; then
  58. ${echo} cd $INSTALLDIR && ${echo} ${LN} $LINK2 $LINK1
  59. fi