From ab7969c7cd38a0886a770005a75039b0ef2a3b2e Mon Sep 17 00:00:00 2001 From: Jonathan Wakely Date: Tue, 4 Aug 2015 11:20:49 +0100 Subject: [PATCH] Patch to prevent address model being set by Boost.Build. --- boost-1.58.0-address-model.patch | 13 +++++++++++++ boost.spec | 12 +++++++++--- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 boost-1.58.0-address-model.patch diff --git a/boost-1.58.0-address-model.patch b/boost-1.58.0-address-model.patch new file mode 100644 index 0000000..3582737 --- /dev/null +++ b/boost-1.58.0-address-model.patch @@ -0,0 +1,13 @@ +--- boost_1_58_0/tools/build/src/tools/gcc.jam~ 2015-07-17 15:14:57.381636224 +0100 ++++ boost_1_58_0/tools/build/src/tools/gcc.jam 2015-07-27 17:35:29.122264048 +0100 +@@ -421,7 +421,9 @@ + + rule setup-address-model ( targets * : sources * : properties * ) + { +- local model = [ feature.get-values address-model : $(properties) ] ; ++ # For RPM builds the address model flag is passed in %{optflags}. ++ # local model = [ feature.get-values address-model : $(properties) ] ; ++ local model ; + if $(model) + { + local option ; diff --git a/boost.spec b/boost.spec index 37c0c9f..7f3688a 100644 --- a/boost.spec +++ b/boost.spec @@ -32,7 +32,7 @@ Name: boost Summary: The free peer-reviewed portable C++ source libraries Version: 1.58.0 %define version_enc 1_58_0 -Release: 2%{?dist} +Release: 3%{?dist} License: Boost and MIT and Python %define toplev_dirname %{name}_%{version_enc} @@ -127,6 +127,9 @@ Patch66: boost-1.57.0-uuid-comparison.patch # https://svn.boost.org/trac/boost/ticket/11283 Patch67: boost-1.58.0-variant-includes.patch +# Prevent gcc.jam from setting -m32 or -m64. +Patch68: boost-1.58.0-address-model.patch + Patch78: boost-context-use-sysv-not-aapcs.patch %bcond_with tests @@ -617,6 +620,7 @@ a number of significant features and is now developed independently %patch65 -p1 %patch66 -p2 %patch67 -p2 +%patch68 -p1 %patch78 -p1 # At least python2_version needs to be a macro so that it's visible in @@ -676,8 +680,7 @@ echo ============================= build serial ================== variant=release threading=multi debug-symbols=on pch=off \ python=%{python2_version} stage -# See boost-1.54.0-thread-link_atomic.patch for where this file comes -# from. +# See libs/thread/build/Jamfile.v2 for where this file comes from. if [ $(find serial -type f -name has_atomic_flag_lockfree \ -print -quit | wc -l) -ne 0 ]; then DEF=D @@ -1237,6 +1240,9 @@ rm -rf $RPM_BUILD_ROOT %{_mandir}/man1/bjam.1* %changelog +* Tue Aug 04 2015 Jonathan Wakely 1.58.0-3 +- Patch to prevent address model being set by Boost.Build. + * Mon Jul 27 2015 Jonathan Wakely 1.58.0-2 - Patch for missing include (boost-1.58.0-variant-includes.patch).