[MacPorts] #22631: Boost 1.41 iostreams has broken header
MacPorts
noreply at macports.org
Sun Nov 22 14:00:22 PST 2009
#22631: Boost 1.41 iostreams has broken header
------------------------------+---------------------------------------------
Reporter: dbsgeo@… | Owner: nox@…
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 1.8.1
Keywords: | Port: boost
------------------------------+---------------------------------------------
Comment(by dbsgeo@…):
Okay, I recreated the patch and this now works:
{{{
Index: dports/devel/boost/files/boost_iostreams_missing_include_guard.diff
===================================================================
--- dports/devel/boost/files/boost_iostreams_missing_include_guard.diff
(revision 0)
+++ dports/devel/boost/files/boost_iostreams_missing_include_guard.diff
(revision 0)
@@ -0,0 +1,18 @@
+--- boost/iostreams/device/mapped_file.hpp 2009-11-22
11:32:31.000000000 -0800
++++ boost/iostreams/device/mapped_file.hpp 2009-11-22
11:24:25.000000000 -0800
+@@ -4,6 +4,9 @@
+ // Distributed under the Boost Software License, Version 1.0. (See
accompanying
+ // file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt.)
+
++#ifndef BOOST_IOSTREAMS_MAPPED_FILE_HPP_INCLUDED
++#define BOOST_IOSTREAMS_MAPPED_FILE_HPP_INCLUDED
++
+ #if defined(_MSC_VER) && (_MSC_VER >= 1020)
+ # pragma once
+ #endif
+@@ -591,3 +594,5 @@
+ } } // End namespaces iostreams, boost.
+
+ #include <boost/config/abi_suffix.hpp> // pops abi_suffix.hpp pragmas
++
++#endif // #ifndef BOOST_IOSTREAMS_MAPPED_FILE_HPP_INCLUDED
Index: dports/devel/boost/Portfile
===================================================================
--- dports/devel/boost/Portfile (revision 60763)
+++ dports/devel/boost/Portfile (working copy)
@@ -24,7 +24,8 @@
sha1 31134e28866b90c39ca4a903c263e036bb25550c \
rmd160 a604ef5a6f6f5bf50be59206c8534258ab431aea
-patchfiles patch-libs-random-random_device.cpp.diff
+patchfiles patch-libs-random-random_device.cpp.diff \
+ boost_iostreams_missing_include_guard.diff
post-extract {
file mkdir ${worksrcpath}/libs/random/build
}}}
--
Ticket URL: <http://trac.macports.org/ticket/22631#comment:4>
MacPorts <http://www.macports.org/>
Ports system for Mac OS
More information about the macports-tickets
mailing list