boost/python_library_name.patch

59 lines
2.0 KiB
Diff
Raw Normal View History

Accepting request 489639 from home:adamm:branches:devel:libraries:c_c++ - New upstream version 1.64.0 + process - new library providing cross platform methods to - create child processes - setup stream for child processes - sync and async communication streams with children - sync and async wait - process termination + geometry library had some breaking changes, - ublas_transformer is renamed to matrix_transformer - explicit modifier is added to constructors of rtree index::dynamic_* parameters - strategy::area::huiller replaced by strategy::area::spherical + context library updates - deprecated API:execution-context - fixed bad assembly for fcontext on ppc64/sysv/elf + Updated libraries: any, atomic, config, container, context, conversion, core, coroutine2, fiber, hash, interprocess, intrusive, lexicalcast, math, multi-index containers, multiprecision, predef, program options, regex, smart pointers, test ,typeindex, typetraits, unordered, variant + for details, see http://www.boost.org/users/history/version_1_64_0.html - Build PyNumpy module + add build requires on python-numpy - test_lowcase.patch: upstreamed - refreshed patches: boost-strict_aliasing.patch, gcc_path.patch, python_mpi.patch - mpi_upstream.patch: pending upstream fixes to OpenMPI build - python_library_name.patch: we are building python versions in different stagings so drop library renames. OBS-URL: https://build.opensuse.org/request/show/489639 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=194
2017-04-21 14:48:16 +02:00
Python module needs to be built without these extra renames.
MPI module needs to reference correct python
~Index: boost_1_64_0/libs/mpi/build/Jamfile.v2
~===================================================================
~--- boost_1_64_0.orig/libs/mpi/build/Jamfile.v2
~+++ boost_1_64_0/libs/mpi/build/Jamfile.v2
~@@ -61,10 +61,10 @@ libraries += boost_mpi ;
~ lib boost_mpi_python
~ : # Sources
~ python/serialize.cpp
~+ /user-config//boost_python_alias
~ : # Requirements
~ <library>boost_mpi
~ <library>/mpi//mpi [ mpi.extra-requirements ]
~- <library>/boost/python//boost_python
~ <link>shared:<define>BOOST_MPI_DYN_LINK=1
~ <link>shared:<define>BOOST_MPI_PYTHON_DYN_LINK=1
~ <link>shared:<define>BOOST_PYTHON_DYN_LINK=1
~@@ -92,8 +92,8 @@ libraries += boost_mpi ;
~ python/skeleton_and_content.cpp
~ python/status.cpp
~ python/py_timer.cpp
~+ /user-config//boost_python_alias
~ : # Requirements
~- <library>/boost/python//boost_python
~ <library>boost_mpi_python
~ <library>boost_mpi
~ <library>/mpi//mpi [ mpi.extra-requirements ]
Index: boost_1_75_0/boostcpp.jam
Accepting request 489639 from home:adamm:branches:devel:libraries:c_c++ - New upstream version 1.64.0 + process - new library providing cross platform methods to - create child processes - setup stream for child processes - sync and async communication streams with children - sync and async wait - process termination + geometry library had some breaking changes, - ublas_transformer is renamed to matrix_transformer - explicit modifier is added to constructors of rtree index::dynamic_* parameters - strategy::area::huiller replaced by strategy::area::spherical + context library updates - deprecated API:execution-context - fixed bad assembly for fcontext on ppc64/sysv/elf + Updated libraries: any, atomic, config, container, context, conversion, core, coroutine2, fiber, hash, interprocess, intrusive, lexicalcast, math, multi-index containers, multiprecision, predef, program options, regex, smart pointers, test ,typeindex, typetraits, unordered, variant + for details, see http://www.boost.org/users/history/version_1_64_0.html - Build PyNumpy module + add build requires on python-numpy - test_lowcase.patch: upstreamed - refreshed patches: boost-strict_aliasing.patch, gcc_path.patch, python_mpi.patch - mpi_upstream.patch: pending upstream fixes to OpenMPI build - python_library_name.patch: we are building python versions in different stagings so drop library renames. OBS-URL: https://build.opensuse.org/request/show/489639 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=194
2017-04-21 14:48:16 +02:00
===================================================================
--- boost_1_75_0.orig/boostcpp.jam
+++ boost_1_75_0/boostcpp.jam
@@ -227,15 +227,15 @@ rule python-tag ( name : type ? : proper
{
# Add Python version suffix
Accepting request 597342 from home:adamm:boost_test - Update to version 1.67.0 New libraries: * Contract: Contract programming for C++. All contract programming features are supported: Subcontracting, class invariants, postconditions (with old and return values), preconditions, customizable actions on assertion failure (e.g., terminate or throw), optional compilation and checking of assertions, etc, from Lorenzo Caminiti. * HOF: Higher-order functions for C++, from Paul Fultz II. Breaking changes in updated libraries: * atomic: Breaking change: Changed the result of the (op)_and_test operations added in Boost 1.66 to the opposite - the functions now return true if the operation result is non-zero. This is consistent with other test methods in Boost.Atomic and the C++ standard library. Users can define BOOST_ATOMIC_DETAIL_HIGHLIGHT_OP_AND_TEST when compiling their code to emit warnings on every use of the changed functions. This way users can locate the code that needs to be updated. * multiprecission: When converting a multiprecision integer to a narrower type, if the value is too large (or negative) to fit in the smaller type, then the result is either the maximum (or minimum) value of the target type. This was always the intended behaviour, but was somewhat haphazardly enforced before. If you really do want just the low order N bits of a value, then you will need to mask these out prior to the case, for example: static_cast<unsigned>(~static_cast<unsigned>(0) & my_value). Note that technically (to avoid undefined behaviour) you should do the same thing with built in integer types too. * spirit: Removed `with_context` utility: <boost/utility.hpp> header no longer includes boost::next and boost::prior as they have been moved to the iterator module. Instead include <boost/next_prior.hpp>. Other uses of <boost/utility.hpp> are discouraged, it's better to use the header for the specific functionality instead. * uuid: random_generator is no longer copyable Libraries that were updated: Asio, Atomic, Beast, ContainerHash, Context, Core, Coroutine2, DateTime, DLL, Fiber, Filesystem, Fusion, Locale, Log, Math, Multi-index Containers, Multiprecission, Optional, Phoenix, PolyCollection, Python, Spirit, Stacktrace, Test, TypeIndex, TypeTraits, Utility, Unordered, Units, Uuid, and Variant. For complete list of changes, see, https://www.boost.org/users/history/version_1_67_0.html - refreshed patches: * boost-strict_aliasing.patch * boost-aarch64-flags.patch - python_library_name.patch: adapted to not append version number to library names, like new boost is doing. - disable python2 builds by default - use regular Requires for libboost_header dependency OBS-URL: https://build.opensuse.org/request/show/597342 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=212
2018-04-17 09:57:19 +02:00
- local version = [ $(property-set).get <python> ] ;
-
- local major-minor = [ MATCH "^([0-9]+)\.([0-9]+)" : $(version) ] ;
- local suffix = $(major-minor:J="") ;
-
- if $(suffix)
- {
- result = $(result)$(suffix) ;
- }
+ # local version = [ $(property-set).get <python> ] ;
+ #
+ # local major-minor = [ MATCH "^([0-9]+)\.([0-9]+)" : $(version) ] ;
+ # local suffix = $(major-minor:J="") ;
+ #
+ # if $(suffix)
+ # {
+ # result = $(result)$(suffix) ;
+ # }
# Add PYTHON_ID if supplied
Accepting request 597342 from home:adamm:boost_test - Update to version 1.67.0 New libraries: * Contract: Contract programming for C++. All contract programming features are supported: Subcontracting, class invariants, postconditions (with old and return values), preconditions, customizable actions on assertion failure (e.g., terminate or throw), optional compilation and checking of assertions, etc, from Lorenzo Caminiti. * HOF: Higher-order functions for C++, from Paul Fultz II. Breaking changes in updated libraries: * atomic: Breaking change: Changed the result of the (op)_and_test operations added in Boost 1.66 to the opposite - the functions now return true if the operation result is non-zero. This is consistent with other test methods in Boost.Atomic and the C++ standard library. Users can define BOOST_ATOMIC_DETAIL_HIGHLIGHT_OP_AND_TEST when compiling their code to emit warnings on every use of the changed functions. This way users can locate the code that needs to be updated. * multiprecission: When converting a multiprecision integer to a narrower type, if the value is too large (or negative) to fit in the smaller type, then the result is either the maximum (or minimum) value of the target type. This was always the intended behaviour, but was somewhat haphazardly enforced before. If you really do want just the low order N bits of a value, then you will need to mask these out prior to the case, for example: static_cast<unsigned>(~static_cast<unsigned>(0) & my_value). Note that technically (to avoid undefined behaviour) you should do the same thing with built in integer types too. * spirit: Removed `with_context` utility: <boost/utility.hpp> header no longer includes boost::next and boost::prior as they have been moved to the iterator module. Instead include <boost/next_prior.hpp>. Other uses of <boost/utility.hpp> are discouraged, it's better to use the header for the specific functionality instead. * uuid: random_generator is no longer copyable Libraries that were updated: Asio, Atomic, Beast, ContainerHash, Context, Core, Coroutine2, DateTime, DLL, Fiber, Filesystem, Fusion, Locale, Log, Math, Multi-index Containers, Multiprecission, Optional, Phoenix, PolyCollection, Python, Spirit, Stacktrace, Test, TypeIndex, TypeTraits, Utility, Unordered, Units, Uuid, and Variant. For complete list of changes, see, https://www.boost.org/users/history/version_1_67_0.html - refreshed patches: * boost-strict_aliasing.patch * boost-aarch64-flags.patch - python_library_name.patch: adapted to not append version number to library names, like new boost is doing. - disable python2 builds by default - use regular Requires for libboost_header dependency OBS-URL: https://build.opensuse.org/request/show/597342 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/boost?expand=0&rev=212
2018-04-17 09:57:19 +02:00