aboutsummaryrefslogtreecommitdiff
path: root/externals
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2006-10-13 12:11:30 +0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2006-10-13 12:11:30 +0000
commit142863a89d1652d6e634b5fb7f3084c9bc37b023 (patch)
tree409fae322f7ece2057be4d7301ce50de0c7f470d /externals
parent37c8a664f3af9d67ecdc200d4a6b5ced1009c25f (diff)
* Use Berkeley DB 4.5.
Diffstat (limited to 'externals')
-rw-r--r--externals/Makefile.am4
-rw-r--r--externals/bdb-cygwin.patch15
2 files changed, 10 insertions, 9 deletions
diff --git a/externals/Makefile.am b/externals/Makefile.am
index 5d2a2324d..32b3de78c 100644
--- a/externals/Makefile.am
+++ b/externals/Makefile.am
@@ -1,11 +1,11 @@
# Berkeley DB
-DB = db-4.4.20.NC
+DB = db-4.5.20
$(DB).tar.gz:
@echo "Nix requires Berkeley DB to build."
@echo "Please download version 4.4.20 from"
- @echo " http://downloads.sleepycat.com/db-4.4.20.NC.tar.gz"
+ @echo " http://download-east.oracle.com/berkeley-db/db-4.5.20.tar.gz"
@echo "and place it in the externals/ directory."
false
diff --git a/externals/bdb-cygwin.patch b/externals/bdb-cygwin.patch
index 3f9d658b5..410106722 100644
--- a/externals/bdb-cygwin.patch
+++ b/externals/bdb-cygwin.patch
@@ -1,11 +1,11 @@
-diff -rc db-4.4.20.NC-old/os/os_flock.c db-4.4.20.NC/os/os_flock.c
-*** db-4.4.20.NC-old/os/os_flock.c Mon Jun 20 16:59:01 2005
---- db-4.4.20.NC/os/os_flock.c Wed Jun 7 17:01:49 2006
+diff -rc db-4.5.20-orig/os/os_flock.c db-4.5.20/os/os_flock.c
+*** db-4.5.20-orig/os/os_flock.c 2006-10-13 12:36:12.000000000 +0200
+--- db-4.5.20/os/os_flock.c 2006-10-13 12:40:11.000000000 +0200
***************
-*** 36,41 ****
---- 36,50 ----
+*** 30,35 ****
+--- 30,44 ----
- DB_ASSERT(F_ISSET(fhp, DB_FH_OPENED) && fhp->fd != -1);
+ DB_ASSERT(dbenv, F_ISSET(fhp, DB_FH_OPENED) && fhp->fd != -1);
+ #ifdef __CYGWIN__
+ /*
@@ -16,6 +16,7 @@ diff -rc db-4.4.20.NC-old/os/os_flock.c db-4.4.20.NC/os/os_flock.c
+ offset += (off_t) 1 << 62;
+ #endif
+
- #ifdef HAVE_FCNTL
fl.l_start = offset;
fl.l_len = 1;
+ fl.l_type = acquire ? F_WRLCK : F_UNLCK;
+Only in db-4.5.20/os: os_flock.c~