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.

73 lines
2.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../lvm2/no_dynamic.diff
  5. # Copyright (C) 2007 The OpenSDE Project
  6. # Copyright (C) 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. --- ./make.tmpl.in.orig 2006-07-07 19:57:41.000000000 +0000
  18. +++ ./make.tmpl.in 2006-07-07 19:58:24.000000000 +0000
  19. @@ -110,7 +110,7 @@
  20. SUBDIRS.clean := $(SUBDIRS:=.clean)
  21. SUBDIRS.distclean := $(SUBDIRS:=.distclean)
  22. -TARGETS += $(LIB_SHARED) $(LIB_STATIC)
  23. +TARGETS += $(LIB_STATIC)
  24. all: $(SUBDIRS) $(TARGETS)
  25. --- ./tools/Makefile.in.orig 2007-03-30 17:00:26.000000000 -0400
  26. +++ ./tools/Makefile.in 2007-05-17 19:56:45.000000000 -0400
  27. @@ -67,11 +67,10 @@
  28. vgsplit.c
  29. TARGETS =\
  30. - .commands \
  31. - lvm
  32. + .commands
  33. -INSTALL_TARGETS = install_tools_dynamic
  34. -INSTALL_CMDLIB_TARGETS = install_cmdlib_dynamic
  35. +INSTALL_TARGETS =
  36. +INSTALL_CMDLIB_TARGETS =
  37. ifeq ("@STATIC_LINK@", "yes")
  38. TARGETS += lvm.static
  39. @@ -87,7 +86,7 @@
  40. lvmcmdlib.o lvm-static.o
  41. ifeq ("@CMDLIB@", "yes")
  42. - TARGETS += liblvm2cmd.so
  43. + TARGETS += liblvm2cmd.a
  44. INSTALL_TARGETS += $(INSTALL_CMDLIB_TARGETS)
  45. endif
  46. @@ -168,9 +167,16 @@
  47. done; \
  48. )
  49. -install_tools_static: lvm.static
  50. +install_tools_static: lvm.static .commands
  51. $(INSTALL) -D $(OWNER) $(GROUP) -m 555 $(STRIP) lvm.static \
  52. - $(staticdir)/lvm.static
  53. + $(staticdir)/lvm
  54. + @echo Creating symbolic links for individual commands in $(sbindir)
  55. + @( \
  56. + for v in `cat .commands`; do \
  57. + cd $(sbindir); \
  58. + $(LN_S) -f lvm $$v; \
  59. + done; \
  60. + )
  61. install: $(INSTALL_TARGETS)