Package: schroot
Version: 1.4.19

When I build schroot with boost 1.46, I get this error:

sbuild-chroot-config.cc: In member function 'void 
sbuild::chroot_config::add_config_directory(const string&, const string&)':
sbuild-chroot-config.cc:170:32: error: 'class 
boost::filesystem3::directory_entry' has no member named 'leaf

As was suggested on the Fedora development list, substituting 
path().filename().string() for leaf() seems to fix the problem.  I'm attaching 
a 
patch which does this.

-Zach
--- sbuild/sbuild-chroot-config.cc.orig	2011-02-07 09:22:04.000000000 -0800
+++ sbuild/sbuild-chroot-config.cc	2011-02-07 09:22:13.000000000 -0800
@@ -167,7 +167,7 @@
        dirent != end_iter;
        ++dirent)
     {
-      std::string name(dirent->leaf());
+      std::string name(dirent->path().filename().string());
 
       // Skip common directories.
       if (name == "." || name == "..")
--- sbuild/sbuild-run-parts.cc.orig	2011-02-07 10:35:10.000000000 -0800
+++ sbuild/sbuild-run-parts.cc	2011-02-07 10:35:20.000000000 -0800
@@ -81,7 +81,7 @@
        dirent != end_iter;
        ++dirent)
     {
-      std::string name(dirent->leaf());
+      std::string name(dirent->path().filename().string());
 
       // Skip common directories.
       if (name == "." || name == "..")

Reply via email to