[80419] trunk/dports/databases/mongodb

Ryan Schmidt ryandesign at macports.org
Tue Jul 12 09:06:47 PDT 2011


The latest version of boost switched to "filesystem version 3" by default which is incompatible with some old code that assumed "filesystem version 2". The patch was added to mongodb to make it use "filesystem version 2" despite boost's new default for version 3. The patch is no longer needed with mongodb 1.8.2 because it has been applied upstream.

I think there were some other ports that had similar patches added after boost was updated to the most recent version, so it seems to be a common solution to that problem.


On Jul 12, 2011, at 11:01, Jeremy Lavergne wrote:

> I've recently come across a port that isn't picking up on Boost's
> filesystem properly. Was this seemingly related patch a solution to that
> problem at the time?
> 
> On Tue, July 12, 2011 11:49 am, ryandesign at macports.org wrote:
> 
>> Deleted: trunk/dports/databases/mongodb/files/patch-pch.h.diff
>> ===================================================================
>> --- trunk/dports/databases/mongodb/files/patch-pch.h.diff	2011-07-12
>> 15:26:25 UTC (rev 80418)
>> +++ trunk/dports/databases/mongodb/files/patch-pch.h.diff	2011-07-12
>> 15:49:22 UTC (rev 80419)
>> @@ -1,10 +0,0 @@
>> ---- pch.h.orig	2011-03-16 10:33:30.000000000 -0500
>> -+++ pch.h	2011-03-27 04:21:47.000000000 -0500
>> -@@ -72,6 +72,7 @@
>> - #include <boost/any.hpp>
>> - #include "boost/thread/once.hpp"
>> - #include <boost/archive/iterators/transform_width.hpp>
>> -+#define BOOST_FILESYSTEM_VERSION 2
>> - #include <boost/filesystem/convenience.hpp>
>> - #include <boost/filesystem/exception.hpp>
>> - #include <boost/filesystem/operations.hpp>





More information about the macports-dev mailing list