Gentoo Archives: gentoo-commits

From: "Robin H. Johnson (robbat2)" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/git/files: 20080322-git-1.5.4.4-noperl.patch 20080322-git-1.5.5.4-noperl.patch
Date: Thu, 24 Apr 2008 08:24:07
Message-Id: E1JowkO-000704-8z@stork.gentoo.org
1 robbat2 08/04/24 08:24:04
2
3 Added: 20080322-git-1.5.4.4-noperl.patch
4 Removed: 20080322-git-1.5.5.4-noperl.patch
5 Log:
6 Fix bad numbering of file.
7 (Portage version: 2.1.4.4)
8
9 Revision Changes Path
10 1.1 dev-util/git/files/20080322-git-1.5.4.4-noperl.patch
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/files/20080322-git-1.5.4.4-noperl.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-util/git/files/20080322-git-1.5.4.4-noperl.patch?rev=1.1&content-type=text/plain
14
15 Index: 20080322-git-1.5.4.4-noperl.patch
16 ===================================================================
17 Implement 95% of the NO_PERL functionality, to build Git without any Perl
18 support, because some Gentoo users want a Git without any Perl whatesoever
19 (Gentoo bug #214168).
20
21 Remaining bits are doing configure.ac as well as git-remote usage in:
22 t5502-quickfetch.sh
23 t5512-ls-remote.sh
24 t5520-pull.sh
25
26 Signed-off-by: Robin H. Johnson <robbat2@g.o>
27 Bugzilla-URL: http://bugs.gentoo.org/show_bug.cgi?id=214168
28
29 diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/Makefile git-1.5.4.4/Makefile
30 --- git-1.5.4.4.orig/Makefile 2008-03-22 15:25:24.986081000 -0700
31 +++ git-1.5.4.4/Makefile 2008-03-22 16:46:04.612806869 -0700
32 @@ -123,6 +123,8 @@
33 #
34 # Define NO_PERL_MAKEMAKER if you cannot use Makefiles generated by perl's
35 # MakeMaker (e.g. using ActiveState under Cygwin).
36 +
37 +# Define NO_PERL if you do not want Perl scripts at all.
38 #
39 # Define NO_TCLTK if you do not want Tcl/Tk GUI.
40 #
41 @@ -233,15 +235,18 @@
42 git-stash.sh \
43 git-help--browse.sh
44
45 +SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH))
46 +ifndef NO_PERL
47 SCRIPT_PERL = \
48 git-add--interactive.perl \
49 git-archimport.perl git-cvsimport.perl git-relink.perl \
50 git-cvsserver.perl git-remote.perl git-cvsexportcommit.perl \
51 git-send-email.perl git-svn.perl
52 -
53 -SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \
54 - $(patsubst %.perl,%,$(SCRIPT_PERL)) \
55 - git-instaweb
56 +SCRIPTS += $(patsubst %.perl,%,$(SCRIPT_PERL)) \
57 + git-instaweb
58 +else
59 +SCRIPT_PERL =
60 +endif
61
62 # ... and all the rest that could be moved out of bindir to gitexecdir
63 PROGRAMS = \
64 @@ -276,7 +281,10 @@
65 ALL_PROGRAMS += git-merge-subtree$X
66
67 # what 'all' will build but not install in gitexecdir
68 -OTHER_PROGRAMS = git$X gitweb/gitweb.cgi
69 +OTHER_PROGRAMS = git$X
70 +ifndef NO_PERL
71 +OTHER_PROGRAMS += gitweb/gitweb.cgi
72 +endif
73
74 # Set paths to tools early so that they can be used for version tests.
75 ifndef SHELL_PATH
76 @@ -570,6 +578,10 @@
77 endif
78 endif
79
80 +ifdef NO_PERL
81 + BASIC_CFLAGS += -DNO_PERL
82 +endif
83 +
84 ifdef ZLIB_PATH
85 BASIC_CFLAGS += -I$(ZLIB_PATH)/include
86 EXTLIBS += -L$(ZLIB_PATH)/$(lib) $(CC_LD_DYNPATH)$(ZLIB_PATH)/$(lib)
87 @@ -731,6 +743,11 @@
88 ifeq ($(TCLTK_PATH),)
89 NO_TCLTK=NoThanks
90 endif
91 +ifeq ($(PERL_PATH),)
92 +NO_PERL=NoThanks
93 +export NO_PERL
94 +export NO_PERL_MAKEMAKER
95 +endif
96
97 QUIET_SUBDIR0 = +$(MAKE) -C # space to separate -C and subdir
98 QUIET_SUBDIR1 =
99 @@ -803,7 +820,9 @@
100 $(QUIET_SUBDIR0)git-gui $(QUIET_SUBDIR1) all
101 $(QUIET_SUBDIR0)gitk-git $(QUIET_SUBDIR1) all
102 endif
103 +ifndef NO_PERL
104 $(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' all
105 +endif
106 $(QUIET_SUBDIR0)templates $(QUIET_SUBDIR1)
107
108 strip: $(PROGRAMS) git$X
109 @@ -844,6 +863,7 @@
110 chmod +x $@+ && \
111 mv $@+ $@
112
113 +ifndef NO_PERL
114 $(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak
115
116 perl/perl.mak: GIT-CFLAGS perl/Makefile perl/Makefile.PL
117 @@ -902,6 +922,7 @@
118 $@.sh > $@+ && \
119 chmod +x $@+ && \
120 mv $@+ $@
121 +endif # NO_PERL
122
123 configure: configure.ac
124 $(QUIET_GEN)$(RM) $@ $<+ && \
125 @@ -1052,7 +1073,9 @@
126 $(INSTALL) $(ALL_PROGRAMS) '$(DESTDIR_SQ)$(gitexecdir_SQ)'
127 $(INSTALL) git$X '$(DESTDIR_SQ)$(bindir_SQ)'
128 $(MAKE) -C templates DESTDIR='$(DESTDIR_SQ)' install
129 +ifndef NO_PERL
130 $(MAKE) -C perl prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' install
131 +endif
132 ifndef NO_TCLTK
133 $(MAKE) -C gitk-git install
134 $(MAKE) -C git-gui install
135 @@ -1141,9 +1164,11 @@
136 $(RM) -r $(GIT_TARNAME) .doc-tmp-dir
137 $(RM) $(GIT_TARNAME).tar.gz git-core_$(GIT_VERSION)-*.tar.gz
138 $(RM) $(htmldocs).tar.gz $(manpages).tar.gz
139 - $(RM) gitweb/gitweb.cgi
140 $(MAKE) -C Documentation/ clean
141 +ifndef NO_PERL
142 + $(RM) gitweb/gitweb.cgi
143 $(MAKE) -C perl clean
144 +endif
145 $(MAKE) -C templates/ clean
146 $(MAKE) -C t/ clean
147 ifndef NO_TCLTK
148 diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/builtin-add.c git-1.5.4.4/builtin-add.c
149 --- git-1.5.4.4.orig/builtin-add.c 2008-03-09 03:18:13.000000000 -0700
150 +++ git-1.5.4.4/builtin-add.c 2008-03-22 15:57:31.759925335 -0700
151 @@ -135,6 +135,7 @@
152 free(seen);
153 }
154
155 +#ifndef NO_PERL
156 static const char **validate_pathspec(int argc, const char **argv, const char *prefix)
157 {
158 const char **pathspec = get_pathspec(prefix, argv);
159 @@ -170,6 +171,7 @@
160 free(args);
161 return status;
162 }
163 +#endif
164
165 static struct lock_file lock_file;
166
167 @@ -182,8 +184,10 @@
168 OPT__DRY_RUN(&show_only),
169 OPT__VERBOSE(&verbose),
170 OPT_GROUP(""),
171 +#ifndef NO_PERL
172 OPT_BOOLEAN('i', "interactive", &add_interactive, "interactive picking"),
173 OPT_BOOLEAN('p', "patch", &patch_interactive, "interactive patching"),
174 +#endif
175 OPT_BOOLEAN('f', NULL, &ignored_too, "allow adding otherwise ignored files"),
176 OPT_BOOLEAN('u', NULL, &take_worktree_changes, "update tracked files"),
177 OPT_BOOLEAN( 0 , "refresh", &refresh_only, "don't add, only refresh the index"),
178 @@ -198,10 +202,12 @@
179
180 argc = parse_options(argc, argv, builtin_add_options,
181 builtin_add_usage, 0);
182 +#ifndef NO_PERL
183 if (patch_interactive)
184 add_interactive = 1;
185 if (add_interactive)
186 exit(interactive_add(argc, argv, prefix));
187 +#endif
188
189 git_config(git_default_config);
190
191 diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/builtin-commit.c git-1.5.4.4/builtin-commit.c
192 --- git-1.5.4.4.orig/builtin-commit.c 2008-03-09 03:18:13.000000000 -0700
193 +++ git-1.5.4.4/builtin-commit.c 2008-03-22 15:58:41.139317545 -0700
194 @@ -96,7 +96,9 @@
195 OPT_GROUP("Commit contents options"),
196 OPT_BOOLEAN('a', "all", &all, "commit all changed files"),
197 OPT_BOOLEAN('i', "include", &also, "add specified files to index for commit"),
198 +#ifndef NO_PERL
199 OPT_BOOLEAN(0, "interactive", &interactive, "interactively add files"),
200 +#endif
201 OPT_BOOLEAN('o', "only", &only, ""),
202 OPT_BOOLEAN('n', "no-verify", &no_verify, "bypass pre-commit hook"),
203 OPT_BOOLEAN(0, "amend", &amend, "amend previous commit"),
204 @@ -213,11 +215,13 @@
205 struct path_list partial;
206 const char **pathspec = NULL;
207
208 +#ifndef NO_PERL
209 if (interactive) {
210 interactive_add(argc, argv, prefix);
211 commit_style = COMMIT_AS_IS;
212 return get_index_file();
213 }
214 +#endif
215
216 if (read_cache() < 0)
217 die("index file corrupt");
218 diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/lib-git-svn.sh git-1.5.4.4/t/lib-git-svn.sh
219 --- git-1.5.4.4.orig/t/lib-git-svn.sh 2008-03-09 03:18:13.000000000 -0700
220 +++ git-1.5.4.4/t/lib-git-svn.sh 2008-03-22 16:02:12.797409374 -0700
221 @@ -6,6 +6,12 @@
222 test_done
223 exit
224 fi
225 +if test -n "$NO_PERL"
226 +then
227 + test_expect_success 'skipping git-svn tests, NO_PERL defined' :
228 + test_done
229 + exit
230 +fi
231
232 GIT_DIR=$PWD/.git
233 GIT_SVN_DIR=$GIT_DIR/svn/git-svn
234 diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t5505-remote.sh git-1.5.4.4/t/t5505-remote.sh
235 --- git-1.5.4.4.orig/t/t5505-remote.sh 2008-03-09 03:18:13.000000000 -0700
236 +++ git-1.5.4.4/t/t5505-remote.sh 2008-03-22 16:22:58.012694493 -0700
237 @@ -3,6 +3,12 @@
238 test_description='git remote porcelain-ish'
239
240 . ./test-lib.sh
241 +if test -n "$NO_PERL"
242 +then
243 + test_expect_success 'skipping git-cvsimport tests, NO_PERL defined' :
244 + test_done
245 + exit
246 +fi
247
248 setup_repository () {
249 mkdir "$1" && (
250 diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t7501-commit.sh git-1.5.4.4/t/t7501-commit.sh
251 --- git-1.5.4.4.orig/t/t7501-commit.sh 2008-03-09 03:18:13.000000000 -0700
252 +++ git-1.5.4.4/t/t7501-commit.sh 2008-03-22 16:14:25.513913653 -0700
253 @@ -38,7 +38,7 @@
254 "echo King of the bongo >file &&
255 git-commit -m foo -a file"
256
257 -test_expect_failure \
258 +[ -z "$NO_PERL" ] && test_expect_failure \
259 "using paths with --interactive" \
260 "echo bong-o-bong >file &&
261 echo 7 | git-commit -m foo --interactive file"
262 @@ -119,7 +119,7 @@
263 "echo 'gak' >file && \
264 git-commit -m 'author' --author 'Rubber Duck <rduck@××××××.org>' -a"
265
266 -test_expect_success \
267 +[ -z "$NO_PERL" ] && test_expect_success \
268 "interactive add" \
269 "echo 7 | git-commit --interactive | grep 'What now'"
270
271 diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t9001-send-email.sh git-1.5.4.4/t/t9001-send-email.sh
272 --- git-1.5.4.4.orig/t/t9001-send-email.sh 2008-03-09 03:18:13.000000000 -0700
273 +++ git-1.5.4.4/t/t9001-send-email.sh 2008-03-22 16:03:58.490510442 -0700
274 @@ -2,6 +2,12 @@
275
276 test_description='git-send-email'
277 . ./test-lib.sh
278 +if test -n "$NO_PERL"
279 +then
280 + test_expect_success 'skipping git-send-email tests, NO_PERL defined' :
281 + test_done
282 + exit
283 +fi
284
285 PROG='git send-email'
286 test_expect_success \
287 diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t9200-git-cvsexportcommit.sh git-1.5.4.4/t/t9200-git-cvsexportcommit.sh
288 --- git-1.5.4.4.orig/t/t9200-git-cvsexportcommit.sh 2008-03-09 03:18:13.000000000 -0700
289 +++ git-1.5.4.4/t/t9200-git-cvsexportcommit.sh 2008-03-22 16:04:12.535965488 -0700
290 @@ -13,6 +13,12 @@
291 test_done
292 exit
293 fi
294 +if test -n "$NO_PERL"
295 +then
296 + test_expect_success 'skipping git-cvsexportcommit tests, NO_PERL defined' :
297 + test_done
298 + exit
299 +fi
300
301 CVSROOT=$(pwd)/cvsroot
302 CVSWORK=$(pwd)/cvswork
303 diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t9400-git-cvsserver-server.sh git-1.5.4.4/t/t9400-git-cvsserver-server.sh
304 --- git-1.5.4.4.orig/t/t9400-git-cvsserver-server.sh 2008-03-09 03:18:13.000000000 -0700
305 +++ git-1.5.4.4/t/t9400-git-cvsserver-server.sh 2008-03-22 16:04:20.038686248 -0700
306 @@ -17,6 +17,12 @@
307 test_done
308 exit
309 fi
310 +if test -n "$NO_PERL"
311 +then
312 + test_expect_success 'skipping git-cvsserver tests, NO_PERL defined' :
313 + test_done
314 + exit
315 +fi
316 perl -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || {
317 test_expect_success 'skipping git-cvsserver tests, Perl SQLite interface unavailable' :
318 test_done
319 diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t9500-gitweb-standalone-no-errors.sh git-1.5.4.4/t/t9500-gitweb-standalone-no-errors.sh
320 --- git-1.5.4.4.orig/t/t9500-gitweb-standalone-no-errors.sh 2008-03-09 03:18:13.000000000 -0700
321 +++ git-1.5.4.4/t/t9500-gitweb-standalone-no-errors.sh 2008-03-22 16:17:00.350148743 -0700
322 @@ -67,6 +67,13 @@
323 }
324
325 . ./test-lib.sh
326 +if test -n "$NO_PERL"
327 +then
328 + test_expect_success 'skipping gitweb-standalone-no-errors tests, NO_PERL defined' :
329 + test_done
330 + exit
331 +fi
332 +
333
334 perl -MEncode -e 'decode_utf8("", Encode::FB_CROAK)' >/dev/null 2>&1 || {
335 test_expect_success 'skipping gitweb tests, perl version is too old' :
336 diff -Nuar --exclude gitweb.cgi --exclude config.mak.in --exclude configure.ac git-1.5.4.4.orig/t/t9600-cvsimport.sh git-1.5.4.4/t/t9600-cvsimport.sh
337 --- git-1.5.4.4.orig/t/t9600-cvsimport.sh 2008-03-09 03:18:13.000000000 -0700
338 +++ git-1.5.4.4/t/t9600-cvsimport.sh 2008-03-22 16:04:28.501086452 -0700
339 @@ -9,6 +9,12 @@
340 test_done
341 exit
342 fi
343 +if test -n "$NO_PERL"
344 +then
345 + test_expect_success 'skipping git-cvsimport tests, NO_PERL defined' :
346 + test_done
347 + exit
348 +fi
349
350 cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'`
351 case "$cvsps_version" in
352
353
354
355 --
356 gentoo-commits@l.g.o mailing list