git/git.patch

Tue, 28 Aug 2012 18:29:00 +0200

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Tue, 28 Aug 2012 18:29:00 +0200
changeset 532
e5f1af644b30
permissions
-rw-r--r--

Massively update modules from Drupal 6.x to 7.x, and add diverse OpenID modules.
Unfortunately many modules available to Drupal 6.x installations have not been
since maintained or ported to 7.x causing this package to diminish in both size
and utility.

michael@516 1 Index: cogito-0.18.2/Makefile
michael@516 2 --- cogito-0.18.2/Makefile.orig 2006-11-17 01:37:24.000000000 +0100
michael@516 3 +++ cogito-0.18.2/Makefile 2012-06-18 16:02:16.000000000 +0200
michael@516 4 @@ -2,8 +2,8 @@
michael@516 5 prefix="$(HOME)"
michael@516 6
michael@516 7 bindir=$(prefix)/bin
michael@516 8 -libdir=$(prefix)/lib/cogito
michael@516 9 -sharedir=$(prefix)/share/cogito
michael@516 10 +libdir=$(prefix)/lib/git/cogito
michael@516 11 +sharedir=$(prefix)/share/git/cogito
michael@516 12
michael@516 13 INSTALL?=install
michael@516 14
michael@516 15 Index: gc-utils/doc/Makefile
michael@516 16 --- gc-utils/doc/Makefile.orig 2008-08-01 17:39:15.000000000 +0200
michael@516 17 +++ gc-utils/doc/Makefile 2012-06-18 16:02:16.000000000 +0200
michael@516 18 @@ -29,17 +29,17 @@
michael@516 19
michael@516 20 .PHONY: gen install clean uninstall
michael@516 21
michael@516 22 -gen:: $(manpagesgz)
michael@516 23 +gen:: $(manpages)
michael@516 24
michael@516 25 $(manpagesgz):
michael@516 26 $(QUIET_GEN) cat $(@:../build/%.1.gz=%.1) | sed -e 's,\$$VERSION\$$,$(VERSION_SQ),' | gzip -9 > $@
michael@516 27
michael@516 28 -install: $(manpagesgz)
michael@516 29 +install: $(manpages)
michael@516 30 @$(MKINSTALLDIRS) $(DESTDIR)$(man1dir)
michael@516 31 ifndef V
michael@516 32 - @$(foreach f, $(manpagesgz), $(QUIET_INSTALL) $(INSTALL) -m644 $f "$(DESTDIR)$(man1dir)/$(f:../build/%=%)" ;)
michael@516 33 + @$(foreach f, $(manpages), $(QUIET_INSTALL) $(INSTALL) -m644 $f "$(DESTDIR)$(man1dir)/$(f:../build/%=%)" ;)
michael@516 34 else
michael@516 35 - $(foreach f, $(manpagesgz), $(INSTALL) -m644 $f "$(DESTDIR)$(man1dir)/$(f:../build/%=%)" ;)
michael@516 36 + $(foreach f, $(manpages), $(INSTALL) -m644 $f "$(DESTDIR)$(man1dir)/$(f:../build/%=%)" ;)
michael@516 37 endif
michael@516 38
michael@516 39 uninstall:
michael@516 40 Index: git-1.7.11.4/Documentation/Makefile
michael@516 41 --- git-1.7.11.4/Documentation/Makefile.orig 2012-06-18 00:01:30.000000000 +0200
michael@516 42 +++ git-1.7.11.4/Documentation/Makefile 2012-06-18 16:02:16.000000000 +0200
michael@516 43 @@ -56,10 +56,10 @@
michael@516 44 infodir?=$(prefix)/share/info
michael@516 45 MAKEINFO=makeinfo
michael@516 46 INSTALL_INFO=install-info
michael@516 47 -DOCBOOK2X_TEXI=docbook2x-texi
michael@516 48 +DOCBOOK2X_TEXI=docbook2texi
michael@516 49 DBLATEX=dblatex
michael@516 50 ifndef PERL_PATH
michael@516 51 - PERL_PATH = /usr/bin/perl
michael@516 52 + PERL_PATH = perl
michael@516 53 endif
michael@516 54
michael@516 55 -include ../config.mak.autogen
michael@516 56 Index: git-1.7.11.4/Makefile
michael@516 57 --- git-1.7.11.4/Makefile.orig 2012-06-18 00:01:30.000000000 +0200
michael@516 58 +++ git-1.7.11.4/Makefile 2012-06-18 16:02:16.000000000 +0200
michael@516 59 @@ -339,12 +339,12 @@
michael@516 60 bindir = $(prefix)/$(bindir_relative)
michael@516 61 mandir = share/man
michael@516 62 infodir = share/info
michael@516 63 -gitexecdir = libexec/git-core
michael@516 64 +gitexecdir = libexec/git
michael@516 65 mergetoolsdir = $(gitexecdir)/mergetools
michael@516 66 sharedir = $(prefix)/share
michael@516 67 gitwebdir = $(sharedir)/gitweb
michael@516 68 localedir = $(sharedir)/locale
michael@516 69 -template_dir = share/git-core/templates
michael@516 70 +template_dir = share/git/templates
michael@516 71 htmldir = share/doc/git-doc
michael@516 72 ETC_GITCONFIG = $(sysconfdir)/gitconfig
michael@516 73 ETC_GITATTRIBUTES = $(sysconfdir)/gitattributes
michael@516 74 @@ -1455,10 +1455,10 @@
michael@516 75 else
michael@516 76 ifdef CURLDIR
michael@516 77 # Try "-Wl,-rpath=$(CURLDIR)/$(lib)" in such a case.
michael@516 78 - BASIC_CFLAGS += -I$(CURLDIR)/include
michael@516 79 - CURL_LIBCURL = -L$(CURLDIR)/$(lib) $(CC_LD_DYNPATH)$(CURLDIR)/$(lib) -lcurl
michael@516 80 + BASIC_CFLAGS += `$(CURLDIR)/bin/curl-config --cflags`
michael@516 81 + CURL_LIBCURL = `$(CURLDIR)/bin/curl-config --libs`
michael@516 82 else
michael@516 83 - CURL_LIBCURL = -lcurl
michael@516 84 + CURL_LIBCURL = -lcurl -lssl -lcrypto
michael@516 85 endif
michael@516 86 ifdef NEEDS_SSL_WITH_CURL
michael@516 87 CURL_LIBCURL += -lssl
michael@516 88 @@ -2553,6 +2553,12 @@
michael@516 89 $(INSTALL) $(ALL_PROGRAMS) '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
michael@516 90 $(INSTALL) -m 644 $(SCRIPT_LIB) '$(DESTDIR_SQ)$(gitexec_instdir_SQ)'
michael@516 91 $(INSTALL) $(install_bindir_programs) '$(DESTDIR_SQ)$(bindir_SQ)'
michael@516 92 + $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(prefix)/lib'
michael@516 93 + $(INSTALL) -m 644 $(LIB_FILE) '$(DESTDIR_SQ)$(prefix)/lib/libgit.a'
michael@516 94 + $(INSTALL) -m 644 $(XDIFF_LIB) '$(DESTDIR_SQ)$(prefix)/lib/libgit-xdiff.a'
michael@516 95 + $(INSTALL) -m 644 $(VCSSVN_LIB) '$(DESTDIR_SQ)$(prefix)/lib/libgit-vcssvn.a'
michael@516 96 + $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(prefix)/include/git'
michael@516 97 + for h in $(LIB_H); do b=`echo $$h | sed -e 's;/*[^/][^/]*$$;;'`; $(INSTALL) -d -m 755 $(DESTDIR_SQ)$(prefix)/include/git/$$b; $(INSTALL) -m 644 $$h $(DESTDIR_SQ)$(prefix)/include/git/$$h; done
michael@516 98 $(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install
michael@516 99 $(INSTALL) -d -m 755 '$(DESTDIR_SQ)$(mergetools_instdir_SQ)'
michael@516 100 $(INSTALL) -m 644 mergetools/* '$(DESTDIR_SQ)$(mergetools_instdir_SQ)'
michael@516 101 Index: git-1.7.11.4/config.mak.in
michael@516 102 --- git-1.7.11.4/config.mak.in.orig 2012-06-18 00:01:30.000000000 +0200
michael@516 103 +++ git-1.7.11.4/config.mak.in 2012-06-18 16:02:16.000000000 +0200
michael@516 104 @@ -15,9 +15,9 @@
michael@516 105 prefix = @prefix@
michael@516 106 exec_prefix = @exec_prefix@
michael@516 107 bindir = @bindir@
michael@516 108 -gitexecdir = @libexecdir@/git-core
michael@516 109 +gitexecdir = @libexecdir@/git
michael@516 110 datarootdir = @datarootdir@
michael@516 111 -template_dir = @datadir@/git-core/templates
michael@516 112 +template_dir = @datadir@/git/templates
michael@516 113 sysconfdir = @sysconfdir@
michael@516 114
michael@516 115 mandir=@mandir@
michael@516 116 Index: git-1.7.11.4/perl/Makefile.PL
michael@516 117 --- git-1.7.11.4/perl/Makefile.PL.orig 2012-06-18 00:01:30.000000000 +0200
michael@516 118 +++ git-1.7.11.4/perl/Makefile.PL 2012-06-18 16:02:16.000000000 +0200
michael@516 119 @@ -55,5 +55,6 @@
michael@516 120 PM => \%pm,
michael@516 121 PM_FILTER => qq[\$(PERL) -pe "s<\\Q++LOCALEDIR++\\E><$localedir>"],
michael@516 122 MAKEFILE => 'perl.mak',
michael@516 123 - INSTALLSITEMAN3DIR => '$(SITEPREFIX)/share/man/man3'
michael@516 124 + INSTALLDIRS => 'vendor',
michael@516 125 + INSTALLSITEMAN3DIR => '$(SITEPREFIX)/man/man3'
michael@516 126 );
michael@516 127 Index: git-1.7.11.4/sha1_file.c
michael@516 128 --- git-1.7.11.4/sha1_file.c.orig 2012-06-18 00:01:30.000000000 +0200
michael@516 129 +++ git-1.7.11.4/sha1_file.c 2012-06-18 16:32:16.000000000 +0200
michael@516 130 @@ -20,6 +20,7 @@
michael@516 131 #include "sha1-lookup.h"
michael@516 132 #include "bulk-checkin.h"
michael@516 133 #include "streaming.h"
michael@516 134 +#include <sys/resource.h>
michael@516 135
michael@516 136 #ifndef O_NOATIME
michael@516 137 #if defined(__linux__) && (defined(__i386__) || defined(__PPC__))
michael@516 138 Index: git-1.7.11.4/templates/Makefile
michael@516 139 --- git-1.7.11.4/templates/Makefile.orig 2012-06-18 00:01:30.000000000 +0200
michael@516 140 +++ git-1.7.11.4/templates/Makefile 2012-06-18 16:02:16.000000000 +0200
michael@516 141 @@ -8,7 +8,7 @@
michael@516 142 TAR ?= tar
michael@516 143 RM ?= rm -f
michael@516 144 prefix ?= $(HOME)
michael@516 145 -template_instdir ?= $(prefix)/share/git-core/templates
michael@516 146 +template_instdir ?= $(prefix)/share/git/templates
michael@516 147 # DESTDIR=
michael@516 148
michael@516 149 ifndef SHELL_PATH
michael@516 150 Index: stgit-0.14.3/setup.py
michael@516 151 --- stgit-0.14.3/setup.py.orig 2008-06-09 00:26:03.000000000 +0200
michael@516 152 +++ stgit-0.14.3/setup.py 2012-06-18 16:02:16.000000000 +0200
michael@516 153 @@ -61,10 +61,10 @@
michael@516 154 long_description = 'Push/pop utility on top of GIT',
michael@516 155 scripts = ['stg'],
michael@516 156 packages = ['stgit', 'stgit.commands'],
michael@516 157 - data_files = [('share/stgit/templates', glob.glob('templates/*.tmpl')),
michael@516 158 - ('share/stgit/examples', glob.glob('examples/*.tmpl')),
michael@516 159 - ('share/stgit/examples', ['examples/gitconfig']),
michael@516 160 - ('share/stgit/contrib', ['contrib/diffcol.sh',
michael@516 161 + data_files = [('share/git/stgit/templates', glob.glob('templates/*.tmpl')),
michael@516 162 + ('share/git/stgit/examples', glob.glob('examples/*.tmpl')),
michael@516 163 + ('share/git/stgit/examples', ['examples/gitconfig']),
michael@516 164 + ('share/git/stgit/contrib', ['contrib/diffcol.sh',
michael@516 165 'contrib/stgbashprompt.sh',
michael@516 166 'contrib/stgit-completion.bash']),
michael@516 167 ('share/doc/stgit', glob.glob('doc/*.txt'))]
michael@516 168 Index: stgit-0.14.3/stg
michael@516 169 --- stgit-0.14.3/stg.orig 2006-04-07 23:38:54.000000000 +0200
michael@516 170 +++ stgit-0.14.3/stg 2012-06-18 16:02:16.000000000 +0200
michael@516 171 @@ -26,12 +26,13 @@
michael@516 172 # It is assumed that the user installed StGIT using the --prefix= option
michael@516 173 prefix, bin = os.path.split(sys.path[0])
michael@516 174
michael@516 175 -if bin == 'bin' and prefix != sys.prefix:
michael@516 176 +if bin == 'bin':
michael@516 177 sys.prefix = prefix
michael@516 178 sys.exec_prefix = prefix
michael@516 179
michael@516 180 major, minor = sys.version_info[0:2]
michael@516 181 - local_path = [os.path.join(prefix, 'lib', 'python'),
michael@516 182 + local_path = [os.path.join(prefix, 'lib', 'git'),
michael@516 183 + os.path.join(prefix, 'lib', 'python'),
michael@516 184 os.path.join(prefix, 'lib', 'python%s.%s' % (major, minor)),
michael@516 185 os.path.join(prefix, 'lib', 'python%s.%s' % (major, minor),
michael@516 186 'site-packages')]

mercurial