Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 1 May 2013 17:08:01 +0000 (UTC)
From:      Alex Dupre <ale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r317034 - in head/databases/mongodb: . files
Message-ID:  <201305011708.r41H81Rf029035@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ale
Date: Wed May  1 17:08:01 2013
New Revision: 317034
URL: http://svnweb.freebsd.org/changeset/ports/317034

Log:
  Add boost fix for locale.

Added:
  head/databases/mongodb/files/patch-src_third_party_boost_libs_filesystem_v2_src_v2_path.cpp   (contents, props changed)
  head/databases/mongodb/files/patch-src_third_party_boost_libs_filesystem_v3_src_path.cpp   (contents, props changed)
Modified:
  head/databases/mongodb/Makefile

Modified: head/databases/mongodb/Makefile
==============================================================================
--- head/databases/mongodb/Makefile	Wed May  1 16:56:25 2013	(r317033)
+++ head/databases/mongodb/Makefile	Wed May  1 17:08:01 2013	(r317034)
@@ -3,6 +3,7 @@
 
 PORTNAME=	mongodb
 PORTVERSION=	2.4.3
+PORTREVISION=	1
 CATEGORIES=	databases net
 MASTER_SITES=	http://downloads.mongodb.org/src/
 DISTNAME=	${PORTNAME}-src-r${PORTVERSION}

Added: head/databases/mongodb/files/patch-src_third_party_boost_libs_filesystem_v2_src_v2_path.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/mongodb/files/patch-src_third_party_boost_libs_filesystem_v2_src_v2_path.cpp	Wed May  1 17:08:01 2013	(r317034)
@@ -0,0 +1,20 @@
+--- src/third_party/boost/libs/filesystem/v2/src/v2_path.cpp.orig	2013-05-01 18:59:55.000000000 +0200
++++ src/third_party/boost/libs/filesystem/v2/src/v2_path.cpp	2013-05-01 19:02:01.000000000 +0200
+@@ -30,7 +30,7 @@
+ 
+ #include <cwchar>     // for std::mbstate_t
+ 
+-#if defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) 
++#if defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__)
+ # include <boost/filesystem/detail/utf8_codecvt_facet.hpp>
+ #endif
+ 
+@@ -43,7 +43,7 @@
+   // occurred before main(), preventing exceptions from being caught.)
+   std::locale & loc()
+   {
+-#if !defined(macintosh) && !defined(__APPLE__) && !defined(__APPLE_CC__) 
++#if !defined(macintosh) && !defined(__APPLE__) && !defined(__APPLE_CC__) && !defined(__FreeBSD__)
+     // ISO C calls this "the locale-specific native environment":
+     static std::locale lc("");
+ #else  // Mac OS

Added: head/databases/mongodb/files/patch-src_third_party_boost_libs_filesystem_v3_src_path.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/databases/mongodb/files/patch-src_third_party_boost_libs_filesystem_v3_src_path.cpp	Wed May  1 17:08:01 2013	(r317034)
@@ -0,0 +1,20 @@
+--- src/third_party/boost/libs/filesystem/v3/src/path.cpp.orig	2013-05-01 19:03:02.000000000 +0200
++++ src/third_party/boost/libs/filesystem/v3/src/path.cpp	2013-05-01 19:03:46.000000000 +0200
+@@ -35,7 +35,7 @@
+ #ifdef BOOST_WINDOWS_API
+ # include "windows_file_codecvt.hpp"
+ # include <windows.h>
+-#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
++#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__)
+ # include <boost/filesystem/detail/utf8_codecvt_facet.hpp>
+ #endif
+ 
+@@ -766,7 +766,7 @@
+     codecvt_facet(&std::use_facet<std::codecvt<wchar_t, char, std::mbstate_t> >
+       (path_locale));
+ 
+-#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
++#elif defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__) || defined(__FreeBSD__)
+ 
+   // "All BSD system functions expect their string parameters to be in UTF-8 encoding
+   // and nothing else." See



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305011708.r41H81Rf029035>