Ticket #50671: boost_1.60.0.diff

File boost_1.60.0.diff, 9.6 KB (added by michaelld (Michael Dickens), 8 years ago)
  • Portfile

     
    66PortGroup       mpi 1.0
    77
    88name            boost
    9 version         1.59.0
    10 revision        2
     9version         1.60.0
    1110license         Boost-1
    1211categories      devel
    1312platforms       darwin
     
    2625distname        ${name}_${distver}
    2726use_bzip2       yes
    2827
    29 checksums       rmd160  a106b3cd1dbda2323e5e84c7106cedee327db03c \
    30                 sha256  727a932322d94287b62abb1bd2d41723eec4356a7728909e38adb65ca25241ca
     28checksums \
     29    rmd160  191c97a0aed4543fbc8543219d2ab53aea7db784 \
     30    sha256  686affff989ac2488f79a97b9479efb9f2abae035b5ed4d8226de6857933fd3b
    3131
    3232depends_lib     port:zlib \
    3333                port:expat \
     
    4545
    4646patchfiles      patch-tools-build-src-engine-build.sh.diff \
    4747                patch-tools-build-src-engine-build.jam.diff \
    48                 patch-apple-clang-no-libcxx.diff \
    49                 patch-libs-context-src-asm-make_ppc32_sysv_macho_gas.S.diff \
    50                 patch-log-setup-link.diff
     48                patch-apple-clang-no-libcxx.diff
    5149                # patch-apple-clang-no-libcxx.diff fixes a clang configuration
    5250                # error that occurs on OS X 10.7 and 10.8 due to the assumption
    5351                # that if clang is the compiler in use it must be using libc++.
  • files/patch-apple-clang-no-libcxx.diff

     
    11diff --git boost/config/compiler/clang.hpp boost/config/compiler/clang.hpp
    22--- boost/config/compiler/clang.hpp
    33+++ boost/config/compiler/clang.hpp
    4 @@ -199,10 +199,20 @@
    5  
    6  #if !__has_feature(cxx_inline_namespaces)
     4@@ -207,6 +207,16 @@
    75 #  define BOOST_NO_CXX11_INLINE_NAMESPACES
    86 #endif
    97 
     
    2018 #if !__has_feature(cxx_override_control)
    2119 #  define BOOST_NO_CXX11_FINAL
    2220 #endif
    23  
    24  #if !(__has_feature(cxx_binary_literals) || __has_extension(cxx_binary_literals))
    2521diff --git boost/multi_index/detail/vartempl_support.hpp boost/multi_index/detail/vartempl_support.hpp
    2622--- boost/multi_index/detail/vartempl_support.hpp
    2723+++ boost/multi_index/detail/vartempl_support.hpp
  • files/patch-boost-python3.diff

     
    1 diff -Naur libs/mpi/src/python/datatypes.cpp libs/mpi/src/python/datatypes.cpp
    2 --- libs/mpi/src/python/datatypes.cpp   2007-11-25 13:38:02.000000000 -0500
    3 +++ libs/mpi/src/python/datatypes.cpp   2013-03-11 20:59:57.171732691 -0400
     1--- libs/mpi/src/python/datatypes.cpp.orig
     2+++ libs/mpi/src/python/datatypes.cpp
    43@@ -13,6 +13,10 @@
    54 #include <boost/mpi/python/serialize.hpp>
    65 #include <boost/mpi.hpp>
     
    1211 namespace boost { namespace mpi { namespace python {
    1312 
    1413 void export_datatypes()
    15 diff -Naur libs/mpi/build/__init__.py llibs/mpi/build/__init__.py
    16 --- libs/mpi/build/__init__.py  2013-11-27 12:52:37.000000000 -0600
    17 +++ libs/mpi/build/__init__.py  2013-11-27 12:52:55.000000000 -0600
     14--- libs/mpi/build/__init__.py.orig
     15+++ libs/mpi/build/__init__.py
    1816@@ -6,5 +6,5 @@
    1917     import mpi
    2018     sys.setdlopenflags(flags)
  • files/patch-export_serialization_explicit_template_instantiations.diff

     
    507507+template class BOOST_SYMBOL_VISIBLE xml_woarchive_impl<xml_woarchive> ;
    508508 
    509509 } // namespace archive
    510  } // namespace boost
    511  No newline at end of file
     510 } // namespace boost
  • files/patch-libs-context-src-asm-make_ppc32_sysv_macho_gas.S.diff

     
    1 Fix build on PowerPC
    2 https://svn.boost.org/trac/boost/ticket/11603
    3 https://github.com/boostorg/context/commit/8c60232f5f372be9a47e26dbf7f000e9c21cc4a2
    4 --- libs/context/src/asm/make_ppc32_sysv_macho_gas.S.orig
    5 +++ libs/context/src/asm/make_ppc32_sysv_macho_gas.S
    6 @@ -82,7 +82,7 @@ _make_fcontext:
    7      subi  r3, r3, 304
    8  
    9      ; third arg of make_fcontext() == address of context-function
    10 -    stw  r5, 236(%r3)
    11 +    stw  r5, 236(r3)
    12  
    13      ; load LR
    14      mflr  r0
  • files/patch-libs-mpi-build-Jamfile.v2.diff

     
    1 --- libs/mpi/build/Jamfile.v2.orig      2010-10-18 02:22:09.000000000 -0400
    2 +++ libs/mpi/build/Jamfile.v2   2010-11-23 13:28:09.000000000 -0500
     1--- libs/mpi/build/Jamfile.v2.orig
     2+++ libs/mpi/build/Jamfile.v2
    33@@ -68,6 +68,7 @@
    44     <link>shared:<define>BOOST_MPI_DYN_LINK=1
    55   : # Default build
  • files/patch-log-setup-link.diff

     
    1 https://github.com/boostorg/log/pull/10
    2 https://github.com/crmoore/log/commit/870284ed31792708a6139925d00a0aadf46bf09f
    3 --- boost/log/detail/setup_config.hpp
    4 +++ boost/log/detail/setup_config.hpp
    5 @@ -30,11 +30,17 @@
    6  #        define BOOST_LOG_SETUP_DLL
    7  #   endif
    8  
    9 -#   if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_LOG_SETUP_DLL)
    10 -#       define BOOST_LOG_SETUP_API __declspec(dllimport)
    11 -#   else
    12 +#   if defined(BOOST_LOG_SETUP_DLL)
    13 +#       if defined(BOOST_SYMBOL_IMPORT)
    14 +#           define BOOST_LOG_SETUP_API BOOST_SYMBOL_IMPORT
    15 +#       elif defined(BOOST_HAS_DECLSPEC)
    16 +#           define BOOST_LOG_SETUP_API __declspec(dllimport)
    17 +#       endif
    18 +#   endif
    19 +#   ifndef BOOST_LOG_SETUP_API
    20  #       define BOOST_LOG_SETUP_API
    21 -#   endif // defined(BOOST_HAS_DECLSPEC)
    22 +#   endif
    23 +
    24  //
    25  // Automatically link to the correct build variant where possible.
    26  //
    27 @@ -48,12 +54,15 @@
    28  
    29  #else // !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB)
    30  
    31 -#   if defined(BOOST_HAS_DECLSPEC) && defined(BOOST_LOG_SETUP_DLL)
    32 -#       define BOOST_LOG_SETUP_API __declspec(dllexport)
    33 -#   elif defined(__GNUC__) && __GNUC__ >= 4 && (defined(linux) || defined(__linux) || defined(__linux__))
    34 -#       define BOOST_LOG_SETUP_API __attribute__((visibility("default")))
    35 -#   else
    36 -#       define BOOST_LOG_SETUP_API
    37 +#   if defined(BOOST_LOG_SETUP_DLL)
    38 +#       if defined(BOOST_SYMBOL_EXPORT)
    39 +#           define BOOST_LOG_SETUP_API BOOST_SYMBOL_EXPORT
    40 +#       elif defined(BOOST_HAS_DECLSPEC)
    41 +#           define BOOST_LOG_SETUP_API __declspec(dllexport)
    42 +#       endif
    43 +#   endif
    44 +#   ifndef BOOST_LOG_SETUP_API
    45 +#       define BOOST_LOG_SETUP_API BOOST_SYMBOL_VISIBLE
    46  #   endif
    47  
    48  #endif // !defined(BOOST_LOG_SETUP_BUILDING_THE_LIB)
  • files/patch-tools-build-src-engine-build.jam.diff

     
    1 --- tools/build/src/engine/build.jam.orig       2014-06-19 12:15:38.000000000 -0500
    2 +++ tools/build/src/engine/build.jam    2014-08-14 07:43:48.000000000 -0500
    3 @@ -199,7 +199,7 @@
     1--- tools/build/src/engine/build.jam.orig
     2+++ tools/build/src/engine/build.jam
     3@@ -205,7 +205,7 @@
    44     -I$(--python-include) -I$(--extra-include)
    55     : -L$(--python-lib[1]) -l$(--python-lib[2]) ;
    66 ## MacOSX Darwin, using GCC 2.9.x, 3.x
  • files/patch-tools-build-src-engine-build.sh.diff

     
    1 --- tools/build/src/engine/build.sh.orig        2014-06-19 12:15:38.000000000 -0500
    2 +++ tools/build/src/engine/build.sh     2014-08-14 07:43:48.000000000 -0500
    3 @@ -134,7 +134,7 @@
     1--- tools/build/src/engine/build.sh.orig
     2+++ tools/build/src/engine/build.sh
     3@@ -142,7 +142,7 @@
    44     ;;
    55 
    66     darwin)
  • files/patch-tools-build-src-tools-python-2.jam.diff

     
    1 --- tools/build/src/tools/python.jam.orig       2009-10-06 15:56:18.000000000 +0200
    2 +++ tools/build/src/tools/python.jam    2009-10-06 15:53:48.000000000 +0200
    3 @@ -546,6 +546,13 @@
     1--- tools/build/src/tools/python.jam.orig
     2+++ tools/build/src/tools/python.jam
     3@@ -537,6 +537,13 @@
    44         libraries ?= $(default-library-path) ;
    55         includes ?= $(default-include-path) ;
    66     }
  • files/patch-tools-build-src-tools-python.jam.diff

     
    1 --- tools/build/src/tools/python.jam.orig       2009-10-06 15:56:18.000000000 +0200
    2 +++ tools/build/src/tools/python.jam    2009-10-06 15:53:48.000000000 +0200
    3 @@ -427,7 +427,7 @@
     1--- tools/build/src/tools/python.jam.orig
     2+++ tools/build/src/tools/python.jam
     3@@ -426,7 +426,7 @@
    44     version ?= $(.version-countdown) ;
    55 
    66     local prefix