[arch-commits] Commit in boost/trunk (PKGBUILD serialization_gcc43.patch)
Eric Belanger
eric at archlinux.org
Thu Jul 3 00:10:22 UTC 2008
Date: Wednesday, July 2, 2008 @ 20:10:22
Author: eric
Revision: 4060
upgpkg: boost 1.35.0-1
added patch to fix gcc 4.3 build problem on x86_64, fixed _bindir for x86_64
Added:
boost/trunk/serialization_gcc43.patch
Modified:
boost/trunk/PKGBUILD
---------------------------+
PKGBUILD | 7 ++++---
serialization_gcc43.patch | 44 ++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+), 3 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2008-07-02 20:34:28 UTC (rev 4059)
+++ PKGBUILD 2008-07-03 00:10:22 UTC (rev 4060)
@@ -11,20 +11,21 @@
arch=(i686 x86_64)
url="http://www.boost.org/"
depends=('python>=2.5' 'bzip2' 'zlib')
-source=(http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}_${_boostver}.tar.gz)
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/${pkgname}_${_boostver}.tar.gz serialization_gcc43.patch)
+md5sums=('a6b7d92c335c83e69a968a7a7926c933' '43b88598f62485295301f75b94972b81')
license=('custom')
-md5sums=('a6b7d92c335c83e69a968a7a7926c933')
build() {
cd $startdir/src/${pkgname}_${_boostver}
export CFLAGS="${CFLAGS} -fno-strict-aliasing"
+ patch -p5 < ../serialization_gcc43.patch || return 1
# build bjam
cd $startdir/src/${pkgname}_${_boostver}/tools/jam/src
./build.sh cc || return 1
_bindir="bin.linuxx86"
- [ "${CARCH}" = "x86_64" ] && _bindir="bin.linux"
+ [ "${CARCH}" = "x86_64" ] && _bindir="bin.linuxx86_64"
install -m755 -d ${startdir}/pkg/usr/bin
install -m755 ${_bindir}/bjam ${startdir}/pkg/usr/bin/bjam || return 1
Added: serialization_gcc43.patch
===================================================================
--- serialization_gcc43.patch (rev 0)
+++ serialization_gcc43.patch 2008-07-03 00:10:22 UTC (rev 4060)
@@ -0,0 +1,44 @@
+Index: /home/maik/workspace/boost/boost/archive/polymorphic_iarchive.hpp
+===================================================================
+--- /home/maik/workspace/boost/boost/archive/polymorphic_iarchive.hpp (Revision 43953)
++++ /home/maik/workspace/boost/boost/archive/polymorphic_iarchive.hpp (Arbeitskopie)
+@@ -17,6 +17,7 @@
+ // See http://www.boost.org for updates, documentation, and revision history.
+
+ #include <cstddef> // std::size_t
++#include <climits> // ULONG_MAX
+ #include <boost/config.hpp>
+
+ #if defined(BOOST_NO_STDC_NAMESPACE)
+@@ -38,6 +39,9 @@
+ // i.e. that its not a synonym for (unsigned) long
+ // if there is no 64 bit int or if its the same as a long
+ // we shouldn't define separate functions for int64 data types.
++#ifndef ULONG_MAX
++# error "ULONG_MAX is not defined"
++#endif
+ #if defined(BOOST_NO_INT64_T) \
+ || (ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) // 2**64 - 1
+ # define BOOST_NO_INTRINSIC_INT64_T
+Index: /home/maik/workspace/boost/boost/archive/polymorphic_oarchive.hpp
+===================================================================
+--- /home/maik/workspace/boost/boost/archive/polymorphic_oarchive.hpp (Revision 43953)
++++ /home/maik/workspace/boost/boost/archive/polymorphic_oarchive.hpp (Arbeitskopie)
+@@ -18,6 +18,7 @@
+
+ #include <cstddef> // size_t
+ #include <string>
++#include <climits> // ULONG_MAX
+
+ #include <boost/config.hpp>
+ #if defined(BOOST_NO_STDC_NAMESPACE)
+@@ -37,6 +38,9 @@
+ // i.e. that its not a synonym for (unsigned) long
+ // if there is no 64 bit int or if its the same as a long
+ // we shouldn't define separate functions for int64 data types.
++#ifndef ULONG_MAX
++# error "ULONG_MAX is not defined"
++#endif
+ #if defined(BOOST_NO_INT64_T) \
+ || (ULONG_MAX != 0xffffffff && ULONG_MAX == 18446744073709551615u) // 2**64 - 1
+ # define BOOST_NO_INTRINSIC_INT64_T
More information about the arch-commits
mailing list