summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorEelco Dolstra2006-02-01 14:53:25 +0000
committerEelco Dolstra2006-02-01 14:53:25 +0000
commitce9307a34920456e91959e9f400958f1fc1df1d3 (patch)
tree583dcfdd371d063700f659f53ce1a67cd1d91c63 /pkgs
parent51e287469ce64d5a45d4c2247c39358c7f081998 (diff)
* Berkeley DB 4.4.20.
svn path=/nixpkgs/trunk/; revision=4662
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/libraries/db4/default.nix7
-rw-r--r--pkgs/development/libraries/db4/register.patch84
2 files changed, 3 insertions, 88 deletions
diff --git a/pkgs/development/libraries/db4/default.nix b/pkgs/development/libraries/db4/default.nix
index 4a4ab1f7133b..040381771e93 100644
--- a/pkgs/development/libraries/db4/default.nix
+++ b/pkgs/development/libraries/db4/default.nix
@@ -1,15 +1,14 @@
 {stdenv, fetchurl, cxxSupport ? true, compat185 ? true}:
 
 stdenv.mkDerivation {
-  name = "db4-4.4.16";
+  name = "db4-4.4.20";
   builder = ./builder.sh;
   src = fetchurl {
-    url = http://nix.cs.uu.nl/dist/tarballs/db-4.4.16.NC.tar.gz;
-    md5 = "1466026e67b5c3eb60c8c16b7f472c17";
+    url = http://downloads.sleepycat.com/db-4.4.20.NC.tar.gz;
+    md5 = "bc1f4433cf08c956e5146037ba050581";
   };
   configureFlags = [
     (if cxxSupport then "--enable-cxx" else "--disable-cxx")
     (if cxxSupport then "--enable-compat185" else "--disable-compat185")
   ];
-  patches = [./register.patch]; # <- should be fixed in 4.4.17
 }
diff --git a/pkgs/development/libraries/db4/register.patch b/pkgs/development/libraries/db4/register.patch
deleted file mode 100644
index 6dae0e0d7162..000000000000
--- a/pkgs/development/libraries/db4/register.patch
+++ /dev/null
@@ -1,84 +0,0 @@
-diff -rc db-4.4.16.NC-orig/env/env_register.c db-4.4.16.NC/env/env_register.c
-*** db-4.4.16.NC-orig/env/env_register.c	2005-10-07 22:21:27.000000000 +0200
---- db-4.4.16.NC/env/env_register.c	2005-12-08 17:16:44.000000000 +0100
-***************
-*** 217,226 ****
-  		if (nr != PID_LEN)
-  			goto corrupt;
-  
-! 		if (FLD_ISSET(
-! 		    dbenv->verbose, DB_VERB_REGISTER) && PID_ISEMPTY(buf)) {
-  			__db_msg(dbenv, "%02u: EMPTY", lcnt);
-! 			continue;
-  		}
-  
-  		/*
---- 217,226 ----
-  		if (nr != PID_LEN)
-  			goto corrupt;
-  
-!                 if (PID_ISEMPTY(buf)) {
-!                     if (FLD_ISSET(dbenv->verbose, DB_VERB_REGISTER))
-  			__db_msg(dbenv, "%02u: EMPTY", lcnt);
-!                     continue;
-  		}
-  
-  		/*
-diff -rc db-4.4.16.NC-orig/test/env012.tcl db-4.4.16.NC/test/env012.tcl
-*** db-4.4.16.NC-orig/test/env012.tcl	2005-11-02 21:27:45.000000000 +0100
---- db-4.4.16.NC/test/env012.tcl	2005-12-08 17:21:19.000000000 +0100
-***************
-*** 168,173 ****
---- 168,219 ----
-  	logcheckfails $testdir/env$tnum.log.p2 DB_RUNRECOVERY
-  	logcheck $testdir/env$tnum.log.p3
-  
-+         # Regression test: check that recovery doesn't run if there is
-+ 	# a "X   " slot in the registry.
-+ 	puts "\tEnv$tnum.f: Multiple processes can join with -register -recover."
-+ 
-+         # Make sure that we have at least 2 "X   " slots in the registry.
-+ 	puts "\t\tEnv$tnum.f1: Start process 1."
-+ 	set p1 [exec $tclsh_path $test_path/wrap.tcl envscript.tcl \
-+ 	    $testdir/env$tnum.log.p1 \
-+ 	    $testdir $testfile PUT $key $data RECOVER 1 &]
-+ 
-+ 	puts "\t\tEnv$tnum.f2: Start process 2."
-+ 	set p2 [exec $tclsh_path $test_path/wrap.tcl envscript.tcl \
-+ 	    $testdir/env$tnum.log.p2 \
-+ 	    $testdir $testfile PUT $key $data RECOVER 1 &]
-+ 
-+ 	watch_procs $p1 1 120
-+ 	watch_procs $p2 1 120
-+ 
-+ 	logcheck $testdir/env$tnum.log.p1
-+ 	logcheck $testdir/env$tnum.log.p2
-+     
-+         # Start a process.  It should not run recovery.  Under the bug
-+ 	# we're testing for, it would, because it would get an
-+         # exclusive lock on the first "X    " slot.
-+ 	puts "\t\tEnv$tnum.f3: Start process 3."
-+ 	set p3 [exec $tclsh_path $test_path/wrap.tcl envscript.tcl \
-+ 	    $testdir/env$tnum.log.p3 \
-+ 	    $testdir $testfile PUT $key $data RECOVER 10 &]
-+ 
-+         tclsleep 2
-+     
-+         # Start another process.  It should not run recovery either.
-+         # The bug would cause it to run recovery because it would get
-+         # an exclusive lock on the second "X    " slot.  This would
-+         # cause p3 to panic.
-+ 	puts "\t\tEnv$tnum.f4: Start process 4."
-+ 	set p4 [exec $tclsh_path $test_path/wrap.tcl envscript.tcl \
-+ 	    $testdir/env$tnum.log.p4 \
-+ 	    $testdir $testfile PUT $key $data RECOVER 10 &]
-+ 
-+ 	watch_procs $p3 1 120
-+ 	watch_procs $p4 1 120
-+ 
-+ 	# Check log files for failures.
-+ 	logcheck $testdir/env$tnum.log.p3
-+ 	logcheck $testdir/env$tnum.log.p4
-  }
-  
-  # Check log file and report failures with FAIL.  Use this when