pkgs/development/libraries/redland/1.0.9.nix: fix build with sqlite 3.6.19
Redland's use of the pre-processor symbol SQLITE_API collides with a symbol of the same name in sqlite 3.6.19. Patching the source code to use REDLAND_SQLITE_API instead works around the problem. svn path=/nixpkgs/trunk/; revision=18100
This commit is contained in:
parent
ae1f064c0c
commit
4c0ff006f3
@ -20,5 +20,14 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
configureFlags = "--with-threads --with-bdb=${bdb}";
|
configureFlags = "--with-threads --with-bdb=${bdb}";
|
||||||
|
|
||||||
patchPhase = "sed -e 1s@/usr@${perl}@ -i utils/touch-mtime.pl";
|
patchPhase =
|
||||||
|
''
|
||||||
|
sed -e 1s@/usr@${perl}@ -i utils/touch-mtime.pl
|
||||||
|
|
||||||
|
# Redland 1.0.9 uses an internal pre-processor symbol SQLITE_API
|
||||||
|
# that collides with a symbol of the same name in sqlite 3.6.19.
|
||||||
|
# This is a quick fix for the problem. A real solution needs to be
|
||||||
|
# implemented upstream, though.
|
||||||
|
find . -type f -exec sed -i -e 's/SQLITE_API/REDLAND_SQLITE_API/g' {} \;
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user