From d2ca7a19ed116e073c1bc08de925935816759f6b Mon Sep 17 00:00:00 2001 From: Petr Machata Date: Mon, 12 Jan 2009 09:53:39 +0000 Subject: [PATCH] - Apply a unneccessary_iostreams patch from Caolan McNamara - Fix soname patch so that it applies with fuzz=0. Use fuzz=0 option in spec file just like ordinary patches do. - Resolves: #479409 --- boost-gcc-soname.patch | 6 +++--- boost-unneccessary_iostreams.patch | 11 +++++++++++ boost.spec | 14 +++++++++++--- 3 files changed, 25 insertions(+), 6 deletions(-) create mode 100644 boost-unneccessary_iostreams.patch diff --git a/boost-gcc-soname.patch b/boost-gcc-soname.patch index 7ab692f..e8ab492 100644 --- a/boost-gcc-soname.patch +++ b/boost-gcc-soname.patch @@ -1,7 +1,7 @@ --- boost_1_36_0_beta1/tools/build/v2/tools/gcc.jam.orig 2008-08-11 13:15:13.000000000 +0200 +++ boost_1_36_0_beta1/tools/build/v2/tools/gcc.jam 2008-08-11 15:21:05.000000000 +0200 @@ -336,7 +336,8 @@ - # OSF does have an option called -soname but it doesn't seem to work as + # OSF does have an option called -soname but it does not seem to work as # expected, therefore it has been disabled. HAVE_SONAME = "" ; - SONAME_OPTION = -h ; @@ -11,11 +11,11 @@ @@ -726,7 +727,7 @@ - # Differ from 'link' above only by -shared. + # Differs from 'link' above only by -shared. actions link.dll bind LIBRARIES { - "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -Wl,$(RPATH_OPTION:E=-R)$(SPACE)-Wl,"$(RPATH)" "$(.IMPLIB-COMMAND)$(<[1])" -o "$(<[-1])" $(HAVE_SONAME)-Wl,$(SONAME_OPTION)$(SPACE)-Wl,$(<[-1]:D=) -shared $(START-GROUP) "$(>)" "$(LIBRARIES)" $(FINDLIBS-ST-PFX) -l$(FINDLIBS-ST) $(FINDLIBS-SA-PFX) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS) $(USER_OPTIONS) + "$(CONFIG_COMMAND)" -L"$(LINKPATH)" -Wl,$(RPATH_OPTION:E=-R)$(SPACE)-Wl,"$(RPATH)" "$(.IMPLIB-COMMAND)$(<[1])" -o "$(<[-1])" $(HAVE_SONAME)-Wl,$(SONAME_OPTION)$(SPACE)-Wl,$(<[-1]:D=).$(SONAME_VERSION) -shared $(START-GROUP) "$(>)" "$(LIBRARIES)" $(FINDLIBS-ST-PFX) -l$(FINDLIBS-ST) $(FINDLIBS-SA-PFX) -l$(FINDLIBS-SA) $(END-GROUP) $(OPTIONS) $(USER_OPTIONS) } - # Set up threading support. It's somewhat contrived, so perform it at the end, + rule setup-threading ( targets * : sources * : properties * ) diff --git a/boost-unneccessary_iostreams.patch b/boost-unneccessary_iostreams.patch new file mode 100644 index 0000000..a2d3f4b --- /dev/null +++ b/boost-unneccessary_iostreams.patch @@ -0,0 +1,11 @@ +diff -ru boost_1_37_0.orig/boost/spirit/home/classic/iterator/multi_pass.hpp boost_1_37_0/boost/spirit/home/classic/iterator/multi_pass.hpp +--- boost/spirit/home/classic/iterator/multi_pass.hpp 2009-01-09 10:38:36.000000000 +0000 ++++ boost/spirit/home/classic/iterator/multi_pass.hpp 2009-01-09 10:39:41.000000000 +0000 +@@ -12,7 +12,6 @@ + #include + #include + #include +-#include + #include // for std::swap + #include // for std::exception + #include diff --git a/boost.spec b/boost.spec index b5cbfde..43097c9 100644 --- a/boost.spec +++ b/boost.spec @@ -4,7 +4,7 @@ Name: boost Summary: The Boost C++ Libraries Version: 1.37.0 -Release: 2%{?dist} +Release: 3%{?dist} License: Boost URL: http://www.boost.org/ Group: System Environment/Libraries @@ -27,6 +27,7 @@ Patch2: boost-run-tests.patch Patch3: boost-gcc43.patch Patch4: boost-gcc-soname.patch Patch5: boost-function_template.patch +Patch6: boost-unneccessary_iostreams.patch %description Boost provides free peer-reviewed portable C++ source libraries. The @@ -66,12 +67,13 @@ HTML documentation files for Boost C++ libraries. %prep %setup -q -n %{name}_1_37_0 -%patch0 -p0 +%patch0 -p0 %patch1 -p0 %patch2 -p0 %patch3 -p1 -sed 's/!!!SONAME!!!/%{sonamever}/' %{PATCH4} | %{__patch} -p1 +sed 's/!!!SONAME!!!/%{sonamever}/' %{PATCH4} | %{__patch} -p1 --fuzz=0 %patch5 -p0 +%patch6 -p0 %build BOOST_ROOT=`pwd` @@ -204,6 +206,12 @@ rm -rf $RPM_BUILD_ROOT %doc %{_docdir}/%{name}-%{version} %changelog +* Mon Jan 12 2009 Petr Machata - 1.37.0-3 +- Apply a unneccessary_iostreams patch from Caolan McNamara +- Fix soname patch so that it applies with fuzz=0. Use fuzz=0 option + in spec file just like ordinary patches do. +- Resolves: #479409 + * Fri Dec 19 2008 Petr Machata - 1.37.0-2 - Apply a function_template patch from Caolan McNamara - Resolves: #477131