[boost] Initial packaging of Beta 1.53.0

Petr Machata pmachata at fedoraproject.org
Fri Feb 8 00:42:41 UTC 2013


commit a84f7fd048218c213c6344b7d4ec2788a2c9f468
Author: Petr Machata <pmachata at redhat.com>
Date:   Fri Jan 25 01:08:13 2013 +0100

    Initial packaging of Beta 1.53.0
    
    - this fails at the end of the build complaining that the following
      file wasn't found:
        boost-1.53.0-0.1.beta1.fc18.i386/usr/lib/openmpi/lib/*.a

 boost-1.50.0-attribute.patch     |   90 --------------------------------------
 boost-1.50.0-polygon.patch       |   11 -----
 boost-1.50.0-signals-erase.patch |   23 ----------
 boost-1.53.0-attribute.patch     |   57 ++++++++++++++++++++++++
 boost.spec                       |   26 ++++-------
 5 files changed, 67 insertions(+), 140 deletions(-)
---
diff --git a/boost-1.53.0-attribute.patch b/boost-1.53.0-attribute.patch
new file mode 100644
index 0000000..84d09e4
--- /dev/null
+++ b/boost-1.53.0-attribute.patch
@@ -0,0 +1,57 @@
+diff -urp boost_1_48_0~/boost/config/compiler/gcc.hpp boost_1_48_0/boost/config/compiler/gcc.hpp
+--- boost_1_48_0~/boost/config/compiler/gcc.hpp	2012-01-16 16:15:14.643239525 +0100
++++ boost_1_48_0/boost/config/compiler/gcc.hpp	2012-01-16 16:21:24.072247987 +0100
+@@ -120,13 +120,13 @@
+      // _WIN32 or one of its variant spellings. Note that Cygwin is a POSIX environment,
+      // so does not define _WIN32 or its variants.
+ #    define BOOST_HAS_DECLSPEC
+-#    define BOOST_SYMBOL_EXPORT __attribute__((dllexport))
+-#    define BOOST_SYMBOL_IMPORT __attribute__((dllimport))
++#    define BOOST_SYMBOL_EXPORT __attribute__((__dllexport__))
++#    define BOOST_SYMBOL_IMPORT __attribute__((__dllimport__))
+ #  else
+-#    define BOOST_SYMBOL_EXPORT __attribute__((visibility("default")))
++#    define BOOST_SYMBOL_EXPORT __attribute__((__visibility__("default")))
+ #    define BOOST_SYMBOL_IMPORT
+ #  endif
+-#  define BOOST_SYMBOL_VISIBLE __attribute__((visibility("default")))
++#  define BOOST_SYMBOL_VISIBLE __attribute__((__visibility__("default")))
+ #else
+ // config/platform/win32.hpp will define BOOST_SYMBOL_EXPORT, etc., unless already defined  
+ #  define BOOST_SYMBOL_EXPORT
+diff -urp boost_1_48_0~/boost/gil/gil_config.hpp boost_1_48_0/boost/gil/gil_config.hpp
+--- boost_1_48_0~/boost/gil/gil_config.hpp	2012-01-16 16:15:29.883239865 +0100
++++ boost_1_48_0/boost/gil/gil_config.hpp	2012-01-16 16:17:49.096243036 +0100
+@@ -32,7 +32,7 @@
+ #if   defined(_MSC_VER)
+ #    define GIL_FORCEINLINE __forceinline
+ #elif defined(__GNUC__) && __GNUC__ > 3
+-#    define GIL_FORCEINLINE inline __attribute__ ((always_inline))
++#    define GIL_FORCEINLINE inline __attribute__ ((__always_inline__))
+ #else
+ #    define GIL_FORCEINLINE inline
+ #endif
+diff -urp boost_1_48_0~/boost/optional/optional.hpp boost_1_48_0/boost/optional/optional.hpp
+--- boost_1_48_0~/boost/optional/optional.hpp	2012-01-16 16:15:29.743239804 +0100
++++ boost_1_48_0/boost/optional/optional.hpp	2012-01-16 16:17:47.488242994 +0100
+@@ -127,7 +127,7 @@ class aligned_storage
+     union
+     // This works around GCC warnings about breaking strict aliasing rules when casting storage address to T*
+ #if defined(BOOST_OPTIONAL_DETAIL_USE_ATTRIBUTE_MAY_ALIAS)
+-    __attribute__((may_alias))
++    __attribute__((__may_alias__))
+ #endif
+     dummy_u
+     {
+diff -urp boost_1_48_0~/boost/random/detail/integer_log2.hpp boost_1_48_0/boost/random/detail/integer_log2.hpp
+--- boost_1_48_0~/boost/random/detail/integer_log2.hpp	2012-01-16 16:15:24.962239810 +0100
++++ boost_1_48_0/boost/random/detail/integer_log2.hpp	2012-01-16 16:17:44.104242884 +0100
+@@ -27,7 +27,7 @@ namespace detail {
+ #elif defined(BOOST_MSVC)
+ #define BOOST_RANDOM_DETAIL_CONSTEXPR __forceinline
+ #elif defined(__GNUC__) && __GNUC__ >= 4
+-#define BOOST_RANDOM_DETAIL_CONSTEXPR __attribute__((const)) __attribute__((always_inline))
++#define BOOST_RANDOM_DETAIL_CONSTEXPR __attribute__((__const__)) __attribute__((__always_inline__))
+ #else
+ #define BOOST_RANDOM_DETAIL_CONSTEXPR inline
+ #endif
diff --git a/boost.spec b/boost.spec
index c45cbf3..06b2905 100644
--- a/boost.spec
+++ b/boost.spec
@@ -23,9 +23,9 @@
 
 Name: boost
 Summary: The free peer-reviewed portable C++ source libraries
-Version: 1.50.0
-%define version_enc 1_50_0
-Release: 7%{?dist}
+Version: 1.53.0
+%define version_enc 1_53_0_beta1
+Release: 0.1.beta1%{?dist}
 License: Boost and MIT and Python
 
 %define toplev_dirname %{name}_%{version_enc}
@@ -72,10 +72,6 @@ BuildRequires: python3-devel%{?_isa}
 BuildRequires: libicu-devel%{?_isa}
 BuildRequires: chrpath
 
-# The patch may break c++03, and there is therefore no plan yet to include
-# it upstream: https://svn.boost.org/trac/boost/ticket/4999
-Patch2: boost-1.50.0-signals-erase.patch
-
 # https://svn.boost.org/trac/boost/ticket/6150
 Patch4: boost-1.50.0-fix-non-utf8-files.patch
 
@@ -90,21 +86,15 @@ Patch7: boost-1.50.0-foreach.patch
 
 # https://bugzilla.redhat.com/show_bug.cgi?id=781859
 # The following tickets have still to be fixed by upstream.
-# https://svn.boost.org/trac/boost/ticket/6406 fixed, but only in Boost-1.51.0
 # https://svn.boost.org/trac/boost/ticket/6408
 # https://svn.boost.org/trac/boost/ticket/6410
 # https://svn.boost.org/trac/boost/ticket/6413
-# https://svn.boost.org/trac/boost/ticket/6415
-Patch9: boost-1.50.0-attribute.patch
+Patch9: boost-1.53.0-attribute.patch
 
 # https://bugzilla.redhat.com/show_bug.cgi?id=783660
 # https://svn.boost.org/trac/boost/ticket/6459 fixed
 Patch10: boost-1.50.0-long-double-1.patch
 
-# https://bugzilla.redhat.com/show_bug.cgi?id=784654
-# https://svn.boost.org/trac/boost/ticket/7154
-Patch12: boost-1.50.0-polygon.patch
-
 # https://bugzilla.redhat.com/show_bug.cgi?id=828856
 # https://bugzilla.redhat.com/show_bug.cgi?id=828857
 Patch15: boost-1.50.0-pool.patch
@@ -478,13 +468,11 @@ a number of significant features and is now developed independently
 %setup -q -n %{toplev_dirname}
 
 # Fixes
-%patch2 -p1
 %patch4 -p1
 %patch5 -p1
 %patch7 -p2
 %patch9 -p1
 %patch10 -p1
-%patch12 -p3
 %patch15 -p0
 
 # At least python2_version needs to be a macro so that it's visible in
@@ -970,6 +958,12 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man1/bjam.1*
 
 %changelog
+* Thu Jan 24 2013 Petr Machata <pmachata at redhat.com> - 1.53.0-0.1.beta1
+- Upstream 1.53.0 beta1
+  - Drop boost-1.50.0-signals-erase.patch
+  - Port boost-1.50.0-attribute.patch
+  - Drop boost-1.50.0-polygon.patch
+
 * Sat Jan 26 2013 Peter Robinson <pbrobinson at fedoraproject.org> 1.50.0-7
 - Rebuild for icu soname bump
 


More information about the scm-commits mailing list