]> git.pld-linux.org Git - packages/perl.git/blame - perl-nodb.patch
- removed Test::Harness.3pm man page (conflict with perl-Test-Harness)
[packages/perl.git] / perl-nodb.patch
CommitLineData
2d340eb1 1--- perl-5.6.0/ext/NDBM_File/Makefile.PL.nodb Tue Jul 20 19:17:56 1999
2+++ perl-5.6.0/ext/NDBM_File/Makefile.PL Thu Mar 23 17:54:21 2000
3@@ -2,6 +2,7 @@
4 WriteMakefile(
5 NAME => 'NDBM_File',
6 LIBS => ["-L/usr/local/lib -lndbm", "-ldbm -lucb"],
7+ CCFLAGS => '-I/usr/include/db1 -Dbool=char -DHAS_BOOL',
8 MAN3PODS => {}, # Pods will be built by installman.
9 XSPROTOARG => '-noprototypes', # XXX remove later?
10 VERSION_FROM => 'NDBM_File.pm',
11--- perl-5.6.0/hints/linux.sh.nodb Sun Mar 19 08:37:24 2000
12+++ perl-5.6.0/hints/linux.sh Thu Mar 23 17:54:21 2000
13@@ -70,7 +70,12 @@
14
15 # BSD compatability library no longer needed
16 # 'kaffe' has a /usr/lib/libnet.so which is not at all relevent for perl.
17-set `echo X "$libswanted "| sed -e 's/ bsd / /' -e 's/ net / /'`
18+set `echo X "$libswanted "| \
19+ sed -e 's/ bsd / /' \
20+ -e 's/ net / /' \
21+ -e 's/ db / /' \
22+ -e 's/ gdbm / /' \
23+ -e 's/ ndbm / /'`
24 shift
25 libswanted="$*"
26
27--- perl-5.6.0/t/lib/ndbm.t.nodb Tue Jul 20 19:18:13 1999
28+++ perl-5.6.0/t/lib/ndbm.t Thu Mar 23 17:54:21 2000
29@@ -103,7 +103,9 @@
30 if ($#keys == 31) {print "ok 7\n";} else {print "not ok 7\n";}
31
32 $h{'foo'} = '';
33-$h{''} = 'bar';
34+# stupid DB library does not support empty string as keys, so there
35+# is nothing for perl to test here...
36+$h{' '} = 'bar';
37
38 # check cache overflow and numeric keys and contents
39 $ok = 1;
40@@ -120,7 +122,8 @@
41 print join(':',200..400) eq join(':',@foo) ? "ok 10\n" : "not ok 10\n";
42
43 print ($h{'foo'} eq '' ? "ok 11\n" : "not ok 11\n");
44-print ($h{''} eq 'bar' ? "ok 12\n" : "not ok 12\n");
45+# same thing ... we used to test for $h{''}, but DB does not allow it
46+print ($h{' '} eq 'bar' ? "ok 12\n" : "not ok 12\n");
47
48 untie %h;
49 unlink 'Op.dbmx.dir', $Dfile;
50--- perl-5.6.0/t/lib/anydbm.t.nodb Fri Mar 3 03:34:21 2000
51+++ perl-5.6.0/t/lib/anydbm.t Thu Mar 23 17:58:01 2000
52@@ -101,7 +101,9 @@
53 if ($#keys == 31) {print "ok 7\n";} else {print "not ok 7\n";}
54
55 $h{'foo'} = '';
56-$h{''} = 'bar';
57+# stupid DB does not allow zero-length keys. Not perl's fault, really
58+# so we test for $h{' '} instead of $h{''}
59+$h{' '} = 'bar';
60
61 # check cache overflow and numeric keys and contents
62 $ok = 1;
63@@ -118,7 +120,9 @@
64 print join(':',200..400) eq join(':',@foo) ? "ok 10\n" : "not ok 10\n";
65
66 print ($h{'foo'} eq '' ? "ok 11\n" : "not ok 11\n");
67-if ($h{''} eq 'bar') {
68+# stupid DB does not allow zero-length keys. Not perl's fault, really
69+# so we test for $h{' '} instead of $h{''}
70+if ($h{' '} eq 'bar') {
71 print "ok 12\n" ;
72 }
73 else {
74--- perl-5.6.0/Configure.nodb Thu Mar 23 17:54:21 2000
75+++ perl-5.6.0/Configure Thu Mar 23 17:56:07 2000
76@@ -12053,10 +12053,16 @@
77 }
78 EOCP
79 set try
80+ # this is really stupid, but we have to link in the -ldb to have
81+ # the above program succeed
82+ _old_libs=$libs
83+ libs="$libs -ldb"
84 if eval $compile_ok && ./try; then
85 echo 'Looks OK.' >&4
86+ libs=$_old_libs
87 else
88 echo "I can't use Berkeley DB with your <db.h>. I'll disable Berkeley DB." >&4
89+ libs=$_old_libs
90 i_db=$undef
91 case " $libs " in
92 *"-ldb "*)
93@@ -12099,7 +12105,7 @@
94 }
95 #endif
96 EOCP
97- if $cc $ccflags -c try.c >try.out 2>&1 ; then
98+ if $cc $ccflags -c try.c -ldb >try.out 2>&1 ; then
99 if $contains warning try.out >>/dev/null 2>&1 ; then
100 db_hashtype='int'
101 else
102@@ -12144,7 +12150,7 @@
103 }
104 #endif
105 EOCP
106- if $cc $ccflags -c try.c >try.out 2>&1 ; then
107+ if $cc $ccflags -c try.c -ldb >try.out 2>&1 ; then
108 if $contains warning try.out >>/dev/null 2>&1 ; then
109 db_prefixtype='int'
110 else
This page took 0.041125 seconds and 4 git commands to generate.