From 14c9d261120ded1309803d289e68f12d432ebe2c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Wed, 13 Jul 2011 10:56:52 +0000 Subject: [PATCH] jfsrec: build with boost 1.44.0 Compilation with the latest version, boost 1.47.0, fails as follows: g++ -DHAVE_CONFIG_H -I. -I. -I.. -g -O2 -c -o inode.o inode.cpp inode.cpp: In member function 'virtual boost::filesystem3::path jfsrec::Inode::get_full_path()': inode.cpp:70:54: error: invalid conversion from 'bool (*)(const std::string&)' to 'boost::enable_if_c::type*' inode.cpp:70:54: error: initializing argument 2 of 'boost::filesystem3::path::path(const Source&, typename boost::enable_if::type> >::type*) [with Source = std::basic_string, typename boost::enable_if::type> >::type = void]' inode.cpp:72:54: error: invalid conversion from 'bool (*)(const std::string&)' to 'boost::enable_if_c::type*' inode.cpp:72:54: error: initializing argument 2 of 'boost::filesystem3::path::path(const Source&, typename boost::enable_if::type> >::type*) [with Source = std::basic_string, typename boost::enable_if::type> >::type = void]' make[2]: *** [inode.o] Error 1 It appears that jfsrec assumes that fs::path is a string, which isn't true anymore in Boost.FS v3. svn path=/nixpkgs/trunk/; revision=27750 --- pkgs/top-level/all-packages.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dfc6367c1933..ea374e491b57 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -846,7 +846,9 @@ let jdiskreport = callPackage ../tools/misc/jdiskreport { }; - jfsrec = callPackage ../tools/filesystems/jfsrec { }; + jfsrec = callPackage ../tools/filesystems/jfsrec { + boost = boost144; + }; jfsutils = callPackage ../tools/filesystems/jfsutils { };