forked from mirrors/nixpkgs
* Berkeley DB 4.5.20.
svn path=/nixpkgs/trunk/; revision=6729
This commit is contained in:
parent
29e8bc140e
commit
2e7e556d7e
22
pkgs/development/libraries/db4/cygwin-4.5.patch
Normal file
22
pkgs/development/libraries/db4/cygwin-4.5.patch
Normal file
|
@ -0,0 +1,22 @@
|
|||
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
|
||||
***************
|
||||
*** 30,35 ****
|
||||
--- 30,44 ----
|
||||
|
||||
DB_ASSERT(dbenv, F_ISSET(fhp, DB_FH_OPENED) && fhp->fd != -1);
|
||||
|
||||
+ #ifdef __CYGWIN__
|
||||
+ /*
|
||||
+ * Windows file locking interferes with read/write operations, so we
|
||||
+ * map the ranges to an area past the end of the file.
|
||||
+ */
|
||||
+ DB_ASSERT(offset < (off_t) 1 << 62);
|
||||
+ offset += (off_t) 1 << 62;
|
||||
+ #endif
|
||||
+
|
||||
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~
|
|
@ -11,4 +11,4 @@ stdenv.mkDerivation ({
|
|||
(if cxxSupport then "--enable-cxx" else "--disable-cxx")
|
||||
(if cxxSupport then "--enable-compat185" else "--disable-compat185")
|
||||
];
|
||||
} // (if stdenv.system == "i686-cygwin" then {patches = [./cygwin.patch];} else {}))
|
||||
} // (if stdenv.system == "i686-cygwin" then {patches = [./cygwin-4.4.patch];} else {}))
|
|
@ -1,6 +1,6 @@
|
|||
{stdenv, fetchurl, cxxSupport ? true, compat185 ? true}:
|
||||
|
||||
stdenv.mkDerivation ({
|
||||
stdenv.mkDerivation {
|
||||
name = "db4-4.5.20";
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
|
@ -11,4 +11,5 @@ stdenv.mkDerivation ({
|
|||
(if cxxSupport then "--enable-cxx" else "--disable-cxx")
|
||||
(if cxxSupport then "--enable-compat185" else "--disable-compat185")
|
||||
];
|
||||
} // (if stdenv.system == "i686-cygwin" then {patches = [./cygwin.patch];} else {}))
|
||||
patches = [./cygwin-4.5.patch];
|
||||
}
|
|
@ -1076,7 +1076,13 @@ rec {
|
|||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
db4 = (import ../development/libraries/db4) {
|
||||
db4 = db44;
|
||||
|
||||
db44 = import ../development/libraries/db4/db4-4.4.nix {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
db45 = import ../development/libraries/db4/db4-4.5.nix {
|
||||
inherit fetchurl stdenv;
|
||||
};
|
||||
|
||||
|
@ -2773,7 +2779,8 @@ rec {
|
|||
};
|
||||
|
||||
nix = (import ../misc/nix) {
|
||||
inherit fetchurl stdenv aterm db4 perl curl bzip2;
|
||||
inherit fetchurl stdenv aterm perl curl bzip2;
|
||||
db4 = db44;
|
||||
};
|
||||
|
||||
nixUnstable = nix;
|
||||
|
|
Loading…
Reference in a new issue