File project.diff of Package boost
--- boost.spec.orig
+++ boost.spec
@@ -213,6 +213,7 @@ Source11: __init__.py
Source100: baselibs.conf
Source101: symbol_diff.sh
Source102: README.boost-devel
+Patch0: toolset.patch
Patch1: boost-thread.patch
Patch2: boost-no_type_punning.patch
Patch4: boost-pool_check_overflow.patch
@@ -231,7 +232,7 @@ Patch23: https://github.com/boost
Patch24: https://github.com/boostorg/move/commit/e9ff3ca0952e680871145f454925614d950cef4d.patch#/boost-missing-BOOST_MOVE_STD_NS_BEG-again.patch
%{?suse_build_hwcaps_libs}
BuildRequires: fdupes
-BuildRequires: gcc-c++
+BuildRequires: gcc13-c++
BuildRequires: gmp-devel
BuildRequires: libbz2-devel
BuildRequires: libexpat-devel
@@ -1262,6 +1263,7 @@ tasks.
%setup -q -n boost_%{library_version} -b 3
#everything in the tarball has the executable flag set ...
find -type f ! \( -name \*.sh -o -name \*.py -o -name \*.pl \) -exec chmod -x {} +
+%patch -P 0 -p1
%patch -P 1 -p1
%patch -P 2
%patch -P 4
@@ -1286,7 +1288,7 @@ find . -type f -exec chmod u+w {} +
cat << EOF >user-config.jam
import os ;
local RPM_OPT_FLAGS = [ os.environ RPM_OPT_FLAGS ] ;
-using gcc : : : <compileflags>\$(RPM_OPT_FLAGS) ;
+using gcc : 13 : g++-13 : <compileflags>\$(RPM_OPT_FLAGS) ;
project user-config ;
EOF
@@ -1338,10 +1340,9 @@ EOF
%endif
# bootstrap b2
-./bootstrap.sh \
+CXX=g++-13 CXXFLAGS=-std=c++11 /bin/sh -x ./bootstrap.sh \
--prefix=%{package_prefix} --exec-prefix=%{package_bindir} \
- --libdir=%{package_libdir} --includedir=%{package_includedir} \
- --with-toolset=gcc
+ --libdir=%{package_libdir} --includedir=%{package_includedir}
# Read shared build instructions
. ./.build