git.iko.soy/typeable/nixpkgs
on master help sign in
db-*: only use the osx.patch for db5 where it applies

This unbreaks builds of all other versions (4.* and 6.*).

commit5b0756cd21a6d7e00baacf8ba2141ee70f66a552 authorVladimír Čunát <vcunat@gmail.com> dateMon 17 Nov 2014, 10:14 (12 years ago) parentadeb4fb
3 files changed+3−6
pkgs/development/libraries/db/db-5.3.nix+1 pkgs/development/libraries/db/generic.nix−4 pkgs/development/libraries/db/osx.patch+2−2
pkgs/development/libraries/db/db-5.3.nix+1
@@ -3,4 +3,5 @@
33import ./generic.nix (args // rec {
44 version = "5.3.28";
55 sha256 = "0a1n5hbl7027fbz5lm0vp0zzfp1hmxnz14wx3zl9563h83br5ag0";
6+ extraPatches = [ ./osx.patch ];
67})
pkgs/development/libraries/db/generic.nix−4
@@ -18,10 +18,6 @@ stdenv.mkDerivation rec {
1818
1919 patches = extraPatches;
2020
21− patchPhase = ''
22− patch src/dbinc/atomic.h < ${./osx.patch}
23− '';
24−
2521 configureFlags = [
2622 (if cxxSupport then "--enable-cxx" else "--disable-cxx")
2723 (if compat185 then "--enable-compat185" else "--disable-compat185")
pkgs/development/libraries/db/osx.patch+2−2
@@ -1,5 +1,5 @@
1−--- src/dbinc/atomic.h 2013-03-12 14:07:22.000000000 -0400
2−+++ src/dbinc/atomic.h.change 2013-03-12 14:06:35.000000000 -0400
1+--- a/src/dbinc/atomic.h 2013-03-12 14:07:22.000000000 -0400
2++++ b/src/dbinc/atomic.h.change 2013-03-12 14:06:35.000000000 -0400
33@@ -144,7 +144,7 @@
44 #define atomic_inc(env, p) __atomic_inc(p)
55 #define atomic_dec(env, p) __atomic_dec(p)