zkfuse: remove applied patch

This commit is contained in:
Robin Gloster 2017-02-27 12:37:42 +01:00
parent 3d104ab2b3
commit 5dde5ded09
No known key found for this signature in database
GPG Key ID: 5E4C836C632C2882
3 changed files with 5 additions and 24 deletions

View File

@ -1,7 +1,8 @@
{ stdenv, fetchurl, jre, makeWrapper, bash }:
stdenv.mkDerivation rec {
name = "zookeeper-3.4.9";
name = "zookeeper-${version}";
version = "3.4.9";
src = fetchurl {
url = "mirror://apache/zookeeper/${name}/${name}.tar.gz";

View File

@ -1,15 +1,10 @@
{ stdenv, lib, zookeeper, zookeeper_mt, fuse, pkgconfig, autoreconfHook, log4cxx, boost, tree }:
stdenv.mkDerivation rec {
name = "zkfuse";
name = "zkfuse-${version}";
inherit (zookeeper) version src;
src = zookeeper.src;
patches = [
# see: https://issues.apache.org/jira/browse/ZOOKEEPER-1929
./zookeeper-1929.patch
];
setSourceRoot = "export sourceRoot=${zookeeper.name}/src/contrib/zkfuse";
sourceRoot = "${zookeeper.name}/src/contrib/zkfuse";
buildInputs = [ autoreconfHook zookeeper_mt log4cxx boost fuse ];

View File

@ -1,15 +0,0 @@
diff --git a/src/contrib/zkfuse/src/zkadapter.cc b/src/contrib/zkfuse/src/zkadapter.cc
index 886051d..93dbef5 100644
--- a/src/zkadapter.cc
+++ b/src/zkadapter.cc
@@ -845,7 +845,10 @@ ZooKeeperAdapter::getNodeData(const string &path,
string("Unable to get data of node ") + path, rc
);
} else {
- return string( buffer, buffer + len );
+ if (len == -1) {
+ len = 0;
+ };
+ return string( buffer, len );
}
}