git.patch 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. Index: cogito-0.18.2/Makefile
  2. --- cogito-0.18.2/Makefile.orig 2006-11-17 01:37:24 +0100
  3. +++ cogito-0.18.2/Makefile 2009-11-23 08:51:14 +0100
  4. @@ -2,8 +2,8 @@
  5. prefix="$(HOME)"
  6. bindir=$(prefix)/bin
  7. -libdir=$(prefix)/lib/cogito
  8. -sharedir=$(prefix)/share/cogito
  9. +libdir=$(prefix)/lib/git/cogito
  10. +sharedir=$(prefix)/share/git/cogito
  11. INSTALL?=install
  12. Index: gc-utils/doc/Makefile
  13. --- gc-utils/doc/Makefile.orig 2008-08-01 17:39:15 +0200
  14. +++ gc-utils/doc/Makefile 2009-11-23 08:51:14 +0100
  15. @@ -29,17 +29,17 @@
  16. .PHONY: gen install clean uninstall
  17. -gen:: $(manpagesgz)
  18. +gen:: $(manpages)
  19. $(manpagesgz):
  20. $(QUIET_GEN) cat $(@:../build/%.1.gz=%.1) | sed -e 's,\$$VERSION\$$,$(VERSION_SQ),' | gzip -9 > $@
  21. -install: $(manpagesgz)
  22. +install: $(manpages)
  23. @$(MKINSTALLDIRS) $(DESTDIR)$(man1dir)
  24. ifndef V
  25. - @$(foreach f, $(manpagesgz), $(QUIET_INSTALL) $(INSTALL) -m644 $f "$(DESTDIR)$(man1dir)/$(f:../build/%=%)" ;)
  26. + @$(foreach f, $(manpages), $(QUIET_INSTALL) $(INSTALL) -m644 $f "$(DESTDIR)$(man1dir)/$(f:../build/%=%)" ;)
  27. else
  28. - $(foreach f, $(manpagesgz), $(INSTALL) -m644 $f "$(DESTDIR)$(man1dir)/$(f:../build/%=%)" ;)
  29. + $(foreach f, $(manpages), $(INSTALL) -m644 $f "$(DESTDIR)$(man1dir)/$(f:../build/%=%)" ;)
  30. endif
  31. uninstall:
  32. Index: git-1.7.1.1/Documentation/Makefile
  33. --- git-1.7.1.1/Documentation/Makefile.orig 2009-11-16 23:14:46 +0100
  34. +++ git-1.7.1.1/Documentation/Makefile 2009-11-23 08:51:14 +0100
  35. @@ -51,10 +51,10 @@
  36. infodir?=$(prefix)/share/info
  37. MAKEINFO=makeinfo
  38. INSTALL_INFO=install-info
  39. -DOCBOOK2X_TEXI=docbook2x-texi
  40. +DOCBOOK2X_TEXI=docbook2texi
  41. DBLATEX=dblatex
  42. ifndef PERL_PATH
  43. - PERL_PATH = /usr/bin/perl
  44. + PERL_PATH = perl
  45. endif
  46. -include ../config.mak.autogen
  47. Index: git-1.7.1.1/Makefile
  48. --- git-1.7.1.1/Makefile.orig 2009-11-16 23:14:46 +0100
  49. +++ git-1.7.1.1/Makefile 2009-11-23 08:51:14 +0100
  50. @@ -241,9 +241,9 @@
  51. bindir = $(prefix)/$(bindir_relative)
  52. mandir = share/man
  53. infodir = share/info
  54. -gitexecdir = libexec/git-core
  55. +gitexecdir = libexec/git
  56. sharedir = $(prefix)/share
  57. -template_dir = share/git-core/templates
  58. +template_dir = share/git/templates
  59. htmldir = share/doc/git-doc
  60. ifeq ($(prefix),/usr)
  61. sysconfdir = /etc
  62. @@ -1050,10 +1050,10 @@
  63. else
  64. ifdef CURLDIR
  65. # Try "-Wl,-rpath=$(CURLDIR)/$(lib)" in such a case.
  66. - BASIC_CFLAGS += -I$(CURLDIR)/include
  67. - CURL_LIBCURL = -L$(CURLDIR)/$(lib) $(CC_LD_DYNPATH)$(CURLDIR)/$(lib) -lcurl
  68. + BASIC_CFLAGS += `$(CURLDIR)/bin/curl-config --cflags`
  69. + CURL_LIBCURL = `$(CURLDIR)/bin/curl-config --libs`
  70. else
  71. - CURL_LIBCURL = -lcurl
  72. + CURL_LIBCURL = -lcurl -lssl -lcrypto
  73. endif
  74. PROGRAMS += git-remote-curl$X git-http-fetch$X
  75. curl_check := $(shell (echo 070908; curl-config --vernum) | sort -r | sed -ne 2p)
  76. @@ -1091,7 +1091,7 @@
  77. OPENSSL_LINK =
  78. endif
  79. ifdef NEEDS_CRYPTO_WITH_SSL
  80. - OPENSSL_LINK += -lcrypto
  81. + OPENSSL_LIBSSL += -lcrypto
  82. endif
  83. else
  84. BASIC_CFLAGS += -DNO_OPENSSL
  85. Index: git-1.7.1.1/config.mak.in
  86. --- git-1.7.1.1/config.mak.in.orig 2009-11-16 23:14:46 +0100
  87. +++ git-1.7.1.1/config.mak.in 2009-11-23 08:51:14 +0100
  88. @@ -13,9 +13,9 @@
  89. prefix = @prefix@
  90. exec_prefix = @exec_prefix@
  91. bindir = @bindir@
  92. -gitexecdir = @libexecdir@/git-core
  93. +gitexecdir = @libexecdir@/git
  94. datarootdir = @datarootdir@
  95. -template_dir = @datadir@/git-core/templates
  96. +template_dir = @datadir@/git/templates
  97. mandir=@mandir@
  98. Index: git-1.7.1.1/perl/Makefile.PL
  99. --- git-1.7.1.1/perl/Makefile.PL.orig 2009-11-16 23:14:46 +0100
  100. +++ git-1.7.1.1/perl/Makefile.PL 2009-11-23 08:51:14 +0100
  101. @@ -34,5 +34,6 @@
  102. VERSION_FROM => 'Git.pm',
  103. PM => \%pm,
  104. MAKEFILE => 'perl.mak',
  105. - INSTALLSITEMAN3DIR => '$(SITEPREFIX)/share/man/man3'
  106. + INSTALLDIRS => 'vendor',
  107. + INSTALLSITEMAN3DIR => '$(SITEPREFIX)/man/man3'
  108. );
  109. Index: git-1.7.1.1/templates/Makefile
  110. --- git-1.7.1.1/templates/Makefile.orig 2009-11-16 23:14:46 +0100
  111. +++ git-1.7.1.1/templates/Makefile 2009-11-23 08:51:14 +0100
  112. @@ -8,7 +8,7 @@
  113. TAR ?= tar
  114. RM ?= rm -f
  115. prefix ?= $(HOME)
  116. -template_instdir ?= $(prefix)/share/git-core/templates
  117. +template_instdir ?= $(prefix)/share/git/templates
  118. # DESTDIR=
  119. # Shell quote (do not use $(call) to accommodate ancient setups);
  120. Index: stgit-0.14.3/setup.py
  121. --- stgit-0.14.3/setup.py.orig 2008-06-09 00:26:03 +0200
  122. +++ stgit-0.14.3/setup.py 2009-11-23 08:51:14 +0100
  123. @@ -61,10 +61,10 @@
  124. long_description = 'Push/pop utility on top of GIT',
  125. scripts = ['stg'],
  126. packages = ['stgit', 'stgit.commands'],
  127. - data_files = [('share/stgit/templates', glob.glob('templates/*.tmpl')),
  128. - ('share/stgit/examples', glob.glob('examples/*.tmpl')),
  129. - ('share/stgit/examples', ['examples/gitconfig']),
  130. - ('share/stgit/contrib', ['contrib/diffcol.sh',
  131. + data_files = [('share/git/stgit/templates', glob.glob('templates/*.tmpl')),
  132. + ('share/git/stgit/examples', glob.glob('examples/*.tmpl')),
  133. + ('share/git/stgit/examples', ['examples/gitconfig']),
  134. + ('share/git/stgit/contrib', ['contrib/diffcol.sh',
  135. 'contrib/stgbashprompt.sh',
  136. 'contrib/stgit-completion.bash']),
  137. ('share/doc/stgit', glob.glob('doc/*.txt'))]
  138. Index: stgit-0.14.3/stg
  139. --- stgit-0.14.3/stg.orig 2006-04-07 23:38:54 +0200
  140. +++ stgit-0.14.3/stg 2009-11-23 08:51:14 +0100
  141. @@ -26,12 +26,13 @@
  142. # It is assumed that the user installed StGIT using the --prefix= option
  143. prefix, bin = os.path.split(sys.path[0])
  144. -if bin == 'bin' and prefix != sys.prefix:
  145. +if bin == 'bin':
  146. sys.prefix = prefix
  147. sys.exec_prefix = prefix
  148. major, minor = sys.version_info[0:2]
  149. - local_path = [os.path.join(prefix, 'lib', 'python'),
  150. + local_path = [os.path.join(prefix, 'lib', 'git'),
  151. + os.path.join(prefix, 'lib', 'python'),
  152. os.path.join(prefix, 'lib', 'python%s.%s' % (major, minor)),
  153. os.path.join(prefix, 'lib', 'python%s.%s' % (major, minor),
  154. 'site-packages')]