1 |
robbat2 12/07/07 05:29:55 |
2 |
|
3 |
Added: git-1.7.11.1-optional-cvs.patch |
4 |
Log: |
5 |
Version bump. Still suffers from bug #391707: git-svn failures. |
6 |
|
7 |
(Portage version: 2.2.0_alpha115/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.1 dev-vcs/git/files/git-1.7.11.1-optional-cvs.patch |
11 |
|
12 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/files/git-1.7.11.1-optional-cvs.patch?rev=1.1&view=markup |
13 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-vcs/git/files/git-1.7.11.1-optional-cvs.patch?rev=1.1&content-type=text/plain |
14 |
|
15 |
Index: git-1.7.11.1-optional-cvs.patch |
16 |
=================================================================== |
17 |
From eadb20b065c33d46b49c8c95d8cde0c9fe7c62a4 Mon Sep 17 00:00:00 2001 |
18 |
From: Robin Johnson <robbat2@g.o> |
19 |
Date: Sat, 07 Jul 2012 04:21:26 +0000 |
20 |
Subject: [PATCH] Makefile: Add NO_CVS define to disable all CVS interface |
21 |
utilities |
22 |
|
23 |
Forward-ported from 1.7.10.2 to current git.git v1.7.11.1 tag. |
24 |
|
25 |
diff -Nuar --exclude '*.rej' --exclude '*.orig' git-1.7.11.1.orig/Makefile git-1.7.11.1/Makefile |
26 |
--- git-1.7.11.1.orig/Makefile 2012-06-21 14:55:43.000000000 -0700 |
27 |
+++ git-1.7.11.1/Makefile 2012-07-06 21:20:03.905680815 -0700 |
28 |
@@ -224,6 +224,8 @@ |
29 |
# |
30 |
# Define NO_TCLTK if you do not want Tcl/Tk GUI. |
31 |
# |
32 |
+# Define NO_CVS if you do not want any CVS interface utilities. |
33 |
+# |
34 |
# The TCL_PATH variable governs the location of the Tcl interpreter |
35 |
# used to optimize git-gui for your system. Only used if NO_TCLTK |
36 |
# is not set. Defaults to the bare 'tclsh'. |
37 |
@@ -401,6 +403,7 @@ |
38 |
PROGRAM_OBJS = |
39 |
PROGRAMS = |
40 |
SCRIPT_PERL = |
41 |
+SCRIPT_PERL_CVS = |
42 |
SCRIPT_PYTHON = |
43 |
SCRIPT_SH = |
44 |
SCRIPT_LIB = |
45 |
@@ -441,18 +444,19 @@ |
46 |
SCRIPT_PERL += git-add--interactive.perl |
47 |
SCRIPT_PERL += git-difftool.perl |
48 |
SCRIPT_PERL += git-archimport.perl |
49 |
-SCRIPT_PERL += git-cvsexportcommit.perl |
50 |
-SCRIPT_PERL += git-cvsimport.perl |
51 |
-SCRIPT_PERL += git-cvsserver.perl |
52 |
SCRIPT_PERL += git-relink.perl |
53 |
SCRIPT_PERL += git-send-email.perl |
54 |
SCRIPT_PERL += git-svn.perl |
55 |
|
56 |
+SCRIPT_PERL_CVS += git-cvsexportcommit.perl |
57 |
+SCRIPT_PERL_CVS += git-cvsimport.perl |
58 |
+SCRIPT_PERL_CVS += git-cvsserver.perl |
59 |
+ |
60 |
SCRIPT_PYTHON += git-remote-testgit.py |
61 |
SCRIPT_PYTHON += git-p4.py |
62 |
|
63 |
SCRIPTS = $(patsubst %.sh,%,$(SCRIPT_SH)) \ |
64 |
- $(patsubst %.perl,%,$(SCRIPT_PERL)) \ |
65 |
+ $(patsubst %.perl,%,$(SCRIPT_PERL) $(SCRIPT_PERL_CVS)) \ |
66 |
$(patsubst %.py,%,$(SCRIPT_PYTHON)) \ |
67 |
git-instaweb |
68 |
|
69 |
@@ -2012,13 +2016,25 @@ |
70 |
$(QUIET_GEN)$(cmd_munge_script) && \ |
71 |
mv $@+ $@ |
72 |
|
73 |
+_SCRIPT_PERL_BUILD = |
74 |
+_SCRIPT_PERL_NOBUILD = |
75 |
+ |
76 |
ifndef NO_PERL |
77 |
-$(patsubst %.perl,%,$(SCRIPT_PERL)): perl/perl.mak |
78 |
+ |
79 |
+_SCRIPT_PERL_BUILD += $(SCRIPT_PERL) |
80 |
+ |
81 |
+ifndef NO_CVS |
82 |
+_SCRIPT_PERL_BUILD += $(SCRIPT_PERL_CVS) |
83 |
+else # NO_CVS |
84 |
+_SCRIPT_PERL_NOBUILD += $(SCRIPT_PERL_CVS) |
85 |
+endif # NO_CVS |
86 |
+ |
87 |
+$(patsubst %.perl,%,$(_SCRIPT_PERL_BUILD)): perl/perl.mak |
88 |
|
89 |
perl/perl.mak: GIT-CFLAGS perl/Makefile perl/Makefile.PL |
90 |
$(QUIET_SUBDIR0)perl $(QUIET_SUBDIR1) PERL_PATH='$(PERL_PATH_SQ)' prefix='$(prefix_SQ)' $(@F) |
91 |
|
92 |
-$(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl |
93 |
+$(patsubst %.perl,%,$(_SCRIPT_PERL_BUILD)): % : %.perl |
94 |
$(QUIET_GEN)$(RM) $@ $@+ && \ |
95 |
INSTLIBDIR=`MAKEFLAGS= $(MAKE) -C perl -s --no-print-directory instlibdir` && \ |
96 |
sed -e '1{' \ |
97 |
@@ -2049,14 +2065,17 @@ |
98 |
chmod +x $@+ && \ |
99 |
mv $@+ $@ |
100 |
else # NO_PERL |
101 |
-$(patsubst %.perl,%,$(SCRIPT_PERL)) git-instaweb: % : unimplemented.sh |
102 |
+_SCRIPT_PERL_NOBUILD += $(SCRIPT_PERL) $(SCRIPT_PERL_CVS) git-instaweb |
103 |
+endif # NO_PERL |
104 |
+ |
105 |
+# This is any perl scripts that were disabled it might be empty... |
106 |
+$(patsubst %.perl,%,$(_SCRIPT_PERL_NOBUILD)): % : unimplemented.sh |
107 |
$(QUIET_GEN)$(RM) $@ $@+ && \ |
108 |
sed -e '1s|#!.*/sh|#!$(SHELL_PATH_SQ)|' \ |
109 |
-e 's|@@REASON@@|NO_PERL=$(NO_PERL)|g' \ |
110 |
unimplemented.sh >$@+ && \ |
111 |
chmod +x $@+ && \ |
112 |
mv $@+ $@ |
113 |
-endif # NO_PERL |
114 |
|
115 |
ifndef NO_PYTHON |
116 |
$(patsubst %.py,%,$(SCRIPT_PYTHON)): GIT-CFLAGS |
117 |
@@ -2091,7 +2110,7 @@ |
118 |
# These can record GIT_VERSION |
119 |
git.o git.spec http.o \ |
120 |
$(patsubst %.sh,%,$(SCRIPT_SH)) \ |
121 |
- $(patsubst %.perl,%,$(SCRIPT_PERL)) \ |
122 |
+ $(patsubst %.perl,%,$(SCRIPT_PERL) $(SCRIPT_PERL_CVS)) \ |
123 |
: GIT-VERSION-FILE |
124 |
|
125 |
TEST_OBJS := $(patsubst test-%$X,test-%.o,$(TEST_PROGRAMS)) |
126 |
diff -Nuar --exclude '*.rej' --exclude '*.orig' git-1.7.11.1.orig/t/t9200-git-cvsexportcommit.sh git-1.7.11.1/t/t9200-git-cvsexportcommit.sh |
127 |
--- git-1.7.11.1.orig/t/t9200-git-cvsexportcommit.sh 2012-06-21 14:55:43.000000000 -0700 |
128 |
+++ git-1.7.11.1/t/t9200-git-cvsexportcommit.sh 2012-07-06 21:18:56.998636736 -0700 |
129 |
@@ -12,6 +12,11 @@ |
130 |
test_done |
131 |
fi |
132 |
|
133 |
+if ! test_have_prereq CVS; then |
134 |
+ skip_all='skipping git cvsexportcommit tests, cvs not available' |
135 |
+ test_done |
136 |
+fi |
137 |
+ |
138 |
cvs >/dev/null 2>&1 |
139 |
if test $? -ne 1 |
140 |
then |
141 |
diff -Nuar --exclude '*.rej' --exclude '*.orig' git-1.7.11.1.orig/t/t9400-git-cvsserver-server.sh git-1.7.11.1/t/t9400-git-cvsserver-server.sh |
142 |
--- git-1.7.11.1.orig/t/t9400-git-cvsserver-server.sh 2012-06-21 14:55:43.000000000 -0700 |
143 |
+++ git-1.7.11.1/t/t9400-git-cvsserver-server.sh 2012-07-06 21:18:56.998636736 -0700 |
144 |
@@ -11,9 +11,15 @@ |
145 |
. ./test-lib.sh |
146 |
|
147 |
if ! test_have_prereq PERL; then |
148 |
- skip_all='skipping git cvsserver tests, perl not available' |
149 |
+ skip_all='skipping git-cvsserver tests, perl not available' |
150 |
test_done |
151 |
fi |
152 |
+ |
153 |
+if ! test_have_prereq CVS; then |
154 |
+ skip_all='skipping git-cvsserver tests, cvs not available' |
155 |
+ test_done |
156 |
+fi |
157 |
+ |
158 |
cvs >/dev/null 2>&1 |
159 |
if test $? -ne 1 |
160 |
then |
161 |
diff -Nuar --exclude '*.rej' --exclude '*.orig' git-1.7.11.1.orig/t/t9401-git-cvsserver-crlf.sh git-1.7.11.1/t/t9401-git-cvsserver-crlf.sh |
162 |
--- git-1.7.11.1.orig/t/t9401-git-cvsserver-crlf.sh 2012-06-21 14:55:43.000000000 -0700 |
163 |
+++ git-1.7.11.1/t/t9401-git-cvsserver-crlf.sh 2012-07-06 21:18:56.999636748 -0700 |
164 |
@@ -38,15 +38,20 @@ |
165 |
fi |
166 |
} |
167 |
|
168 |
-cvs >/dev/null 2>&1 |
169 |
-if test $? -ne 1 |
170 |
+if ! test_have_prereq PERL |
171 |
then |
172 |
- skip_all='skipping git-cvsserver tests, cvs not found' |
173 |
+ skip_all='skipping git-cvsserver tests, perl not available' |
174 |
test_done |
175 |
fi |
176 |
-if ! test_have_prereq PERL |
177 |
+if ! test_have_prereq CVS |
178 |
then |
179 |
- skip_all='skipping git-cvsserver tests, perl not available' |
180 |
+ skip_all='skipping git-cvsserver tests, cvs not available' |
181 |
+ test_done |
182 |
+fi |
183 |
+cvs >/dev/null 2>&1 |
184 |
+if test $? -ne 1 |
185 |
+then |
186 |
+ skip_all='skipping git-cvsserver tests, cvs not found' |
187 |
test_done |
188 |
fi |
189 |
"$PERL_PATH" -e 'use DBI; use DBD::SQLite' >/dev/null 2>&1 || { |
190 |
diff -Nuar --exclude '*.rej' --exclude '*.orig' git-1.7.11.1.orig/t/t9600-cvsimport.sh git-1.7.11.1/t/t9600-cvsimport.sh |
191 |
--- git-1.7.11.1.orig/t/t9600-cvsimport.sh 2012-06-21 14:55:43.000000000 -0700 |
192 |
+++ git-1.7.11.1/t/t9600-cvsimport.sh 2012-07-06 21:18:57.000636757 -0700 |
193 |
@@ -3,14 +3,25 @@ |
194 |
test_description='git cvsimport basic tests' |
195 |
. ./lib-cvs.sh |
196 |
|
197 |
-test_expect_success PERL 'setup cvsroot environment' ' |
198 |
+if ! test_have_prereq PERL |
199 |
+then |
200 |
+ skip_all='skipping git cvsimport tests, perl not available' |
201 |
+ test_done |
202 |
+fi |
203 |
+if ! test_have_prereq CVS |
204 |
+then |
205 |
+ skip_all='skipping git cvsimport tests, cvs not available' |
206 |
+ test_done |
207 |
+fi |
208 |
+ |
209 |
+test_expect_success 'setup cvsroot environment' ' |
210 |
CVSROOT=$(pwd)/cvsroot && |
211 |
export CVSROOT |
212 |
' |
213 |
|
214 |
-test_expect_success PERL 'setup cvsroot' '$CVS init' |
215 |
+test_expect_success 'setup cvsroot' '$CVS init' |
216 |
|
217 |
-test_expect_success PERL 'setup a cvs module' ' |
218 |
+test_expect_success 'setup a cvs module' ' |
219 |
|
220 |
mkdir "$CVSROOT/module" && |
221 |
$CVS co -d module-cvs module && |
222 |
@@ -42,23 +53,23 @@ |
223 |
) |
224 |
' |
225 |
|
226 |
-test_expect_success PERL 'import a trivial module' ' |
227 |
+test_expect_success 'import a trivial module' ' |
228 |
|
229 |
git cvsimport -a -R -z 0 -C module-git module && |
230 |
test_cmp module-cvs/o_fortuna module-git/o_fortuna |
231 |
|
232 |
' |
233 |
|
234 |
-test_expect_success PERL 'pack refs' '(cd module-git && git gc)' |
235 |
+test_expect_success 'pack refs' '(cd module-git && git gc)' |
236 |
|
237 |
-test_expect_success PERL 'initial import has correct .git/cvs-revisions' ' |
238 |
+test_expect_success 'initial import has correct .git/cvs-revisions' ' |
239 |
|
240 |
(cd module-git && |
241 |
git log --format="o_fortuna 1.1 %H" -1) > expected && |
242 |
test_cmp expected module-git/.git/cvs-revisions |
243 |
' |
244 |
|
245 |
-test_expect_success PERL 'update cvs module' ' |
246 |
+test_expect_success 'update cvs module' ' |
247 |
(cd module-cvs && |
248 |
cat <<EOF >o_fortuna && |
249 |
O Fortune, |
250 |
@@ -86,7 +97,7 @@ |
251 |
) |
252 |
' |
253 |
|
254 |
-test_expect_success PERL 'update git module' ' |
255 |
+test_expect_success 'update git module' ' |
256 |
|
257 |
(cd module-git && |
258 |
git config cvsimport.trackRevisions true && |
259 |
@@ -97,7 +108,7 @@ |
260 |
|
261 |
' |
262 |
|
263 |
-test_expect_success PERL 'update has correct .git/cvs-revisions' ' |
264 |
+test_expect_success 'update has correct .git/cvs-revisions' ' |
265 |
|
266 |
(cd module-git && |
267 |
git log --format="o_fortuna 1.1 %H" -1 HEAD^ && |
268 |
@@ -105,7 +116,7 @@ |
269 |
test_cmp expected module-git/.git/cvs-revisions |
270 |
' |
271 |
|
272 |
-test_expect_success PERL 'update cvs module' ' |
273 |
+test_expect_success 'update cvs module' ' |
274 |
|
275 |
(cd module-cvs && |
276 |
echo 1 >tick && |
277 |
@@ -114,7 +125,7 @@ |
278 |
) |
279 |
' |
280 |
|
281 |
-test_expect_success PERL 'cvsimport.module config works' ' |
282 |
+test_expect_success 'cvsimport.module config works' ' |
283 |
|
284 |
(cd module-git && |
285 |
git config cvsimport.module module && |
286 |
@@ -126,7 +137,7 @@ |
287 |
|
288 |
' |
289 |
|
290 |
-test_expect_success PERL 'second update has correct .git/cvs-revisions' ' |
291 |
+test_expect_success 'second update has correct .git/cvs-revisions' ' |
292 |
|
293 |
(cd module-git && |
294 |
git log --format="o_fortuna 1.1 %H" -1 HEAD^^ && |
295 |
@@ -135,7 +146,7 @@ |
296 |
test_cmp expected module-git/.git/cvs-revisions |
297 |
' |
298 |
|
299 |
-test_expect_success PERL 'import from a CVS working tree' ' |
300 |
+test_expect_success 'import from a CVS working tree' ' |
301 |
|
302 |
$CVS co -d import-from-wt module && |
303 |
(cd import-from-wt && |
304 |
@@ -148,12 +159,12 @@ |
305 |
|
306 |
' |
307 |
|
308 |
-test_expect_success PERL 'no .git/cvs-revisions created by default' ' |
309 |
+test_expect_success 'no .git/cvs-revisions created by default' ' |
310 |
|
311 |
! test -e import-from-wt/.git/cvs-revisions |
312 |
|
313 |
' |
314 |
|
315 |
-test_expect_success PERL 'test entire HEAD' 'test_cmp_branch_tree master' |
316 |
+test_expect_success 'test entire HEAD' 'test_cmp_branch_tree master' |
317 |
|
318 |
test_done |
319 |
diff -Nuar --exclude '*.rej' --exclude '*.orig' git-1.7.11.1.orig/t/t9601-cvsimport-vendor-branch.sh git-1.7.11.1/t/t9601-cvsimport-vendor-branch.sh |
320 |
--- git-1.7.11.1.orig/t/t9601-cvsimport-vendor-branch.sh 2012-06-21 14:55:43.000000000 -0700 |
321 |
+++ git-1.7.11.1/t/t9601-cvsimport-vendor-branch.sh 2012-07-06 21:18:57.000636757 -0700 |
322 |
@@ -34,6 +34,17 @@ |
323 |
test_description='git cvsimport handling of vendor branches' |
324 |
. ./lib-cvs.sh |
325 |
|
326 |
+if ! test_have_prereq PERL |
327 |
+then |
328 |
+ skip_all='skipping git cvsimport tests, perl not available' |
329 |
+ test_done |
330 |
+fi |
331 |
+if ! test_have_prereq CVS |
332 |
+then |
333 |
+ skip_all='skipping git cvsimport tests, cvs not available' |
334 |
+ test_done |
335 |
+fi |
336 |
+ |
337 |
setup_cvs_test_repository t9601 |
338 |
|
339 |
test_expect_success PERL 'import a module with a vendor branch' ' |
340 |
diff -Nuar --exclude '*.rej' --exclude '*.orig' git-1.7.11.1.orig/t/t9602-cvsimport-branches-tags.sh git-1.7.11.1/t/t9602-cvsimport-branches-tags.sh |
341 |
--- git-1.7.11.1.orig/t/t9602-cvsimport-branches-tags.sh 2012-06-21 14:55:43.000000000 -0700 |
342 |
+++ git-1.7.11.1/t/t9602-cvsimport-branches-tags.sh 2012-07-06 21:18:57.001636770 -0700 |
343 |
@@ -6,6 +6,17 @@ |
344 |
test_description='git cvsimport handling of branches and tags' |
345 |
. ./lib-cvs.sh |
346 |
|
347 |
+if ! test_have_prereq PERL |
348 |
+then |
349 |
+ skip_all='skipping git cvsimport tests, perl not available' |
350 |
+ test_done |
351 |
+fi |
352 |
+if ! test_have_prereq CVS |
353 |
+then |
354 |
+ skip_all='skipping git cvsimport tests, cvs not available' |
355 |
+ test_done |
356 |
+fi |
357 |
+ |
358 |
setup_cvs_test_repository t9602 |
359 |
|
360 |
test_expect_success PERL 'import module' ' |
361 |
diff -Nuar --exclude '*.rej' --exclude '*.orig' git-1.7.11.1.orig/t/t9603-cvsimport-patchsets.sh git-1.7.11.1/t/t9603-cvsimport-patchsets.sh |
362 |
--- git-1.7.11.1.orig/t/t9603-cvsimport-patchsets.sh 2012-06-21 14:55:43.000000000 -0700 |
363 |
+++ git-1.7.11.1/t/t9603-cvsimport-patchsets.sh 2012-07-06 21:18:57.001636770 -0700 |
364 |
@@ -14,6 +14,17 @@ |
365 |
test_description='git cvsimport testing for correct patchset estimation' |
366 |
. ./lib-cvs.sh |
367 |
|
368 |
+if ! test_have_prereq PERL |
369 |
+then |
370 |
+ skip_all='skipping git cvsimport tests, perl not available' |
371 |
+ test_done |
372 |
+fi |
373 |
+if ! test_have_prereq CVS |
374 |
+then |
375 |
+ skip_all='skipping git cvsimport tests, cvs not available' |
376 |
+ test_done |
377 |
+fi |
378 |
+ |
379 |
setup_cvs_test_repository t9603 |
380 |
|
381 |
test_expect_failure 'import with criss cross times on revisions' ' |
382 |
diff -Nuar --exclude '*.rej' --exclude '*.orig' git-1.7.11.1.orig/t/test-lib.sh git-1.7.11.1/t/test-lib.sh |
383 |
--- git-1.7.11.1.orig/t/test-lib.sh 2012-06-21 14:55:43.000000000 -0700 |
384 |
+++ git-1.7.11.1/t/test-lib.sh 2012-07-06 21:18:57.002636788 -0700 |
385 |
@@ -616,6 +616,7 @@ |
386 |
esac |
387 |
|
388 |
( COLUMNS=1 && test $COLUMNS = 1 ) && test_set_prereq COLUMNS_CAN_BE_1 |
389 |
+test -z "$NO_CVS" && test_set_prereq CVS |
390 |
test -z "$NO_PERL" && test_set_prereq PERL |
391 |
test -z "$NO_PYTHON" && test_set_prereq PYTHON |
392 |
test -n "$USE_LIBPCRE" && test_set_prereq LIBPCRE |