[arch-commits] Commit in boost/trunk (4994-compile-fix-for-Python32-v2.patch PKGBUILD)

Ionut Biru ibiru at archlinux.org
Wed Mar 2 16:18:34 UTC 2011


    Date: Wednesday, March 2, 2011 @ 11:18:33
  Author: ibiru
Revision: 111953

upgpkg: boost 1.46.0-1
update to boost 1.46. added python3 and mpi support.Fixes FS#22370, FS#22178, FS#22471

Added:
  boost/trunk/4994-compile-fix-for-Python32-v2.patch
Modified:
  boost/trunk/PKGBUILD

----------------------------------------+
 4994-compile-fix-for-Python32-v2.patch |   16 ++++++++++++
 PKGBUILD                               |   40 +++++++++++++++++++------------
 2 files changed, 41 insertions(+), 15 deletions(-)

Added: 4994-compile-fix-for-Python32-v2.patch
===================================================================
--- 4994-compile-fix-for-Python32-v2.patch	                        (rev 0)
+++ 4994-compile-fix-for-Python32-v2.patch	2011-03-02 16:18:33 UTC (rev 111953)
@@ -0,0 +1,16 @@
+Index: libs/python/src/converter/builtin_converters.cpp
+===================================================================
+--- libs/python/src/converter/builtin_converters.cpp	(revision 67279)
++++ libs/python/src/converter/builtin_converters.cpp	(working copy)
+@@ -431,7 +431,11 @@
+           if (!result.empty())
+           {
+               int err = PyUnicode_AsWideChar(
++#if PY_VERSION_HEX >= 0x03020000
++                  intermediate
++#else
+                   (PyUnicodeObject *)intermediate
++#endif
+                 , &result[0]
+                 , result.size());
+ 

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-03-02 13:03:19 UTC (rev 111952)
+++ PKGBUILD	2011-03-02 16:18:33 UTC (rev 111953)
@@ -6,16 +6,17 @@
 
 pkgbase=boost
 pkgname=('boost-libs' 'boost')
-pkgver=1.45.0
+pkgver=1.46.0
 _boostver=${pkgver//./_}
 pkgrel=1
 arch=('i686' 'x86_64')
 url="http://www.boost.org/"
-makedepends=('python2' 'bzip2' 'zlib')
-source=(http://downloads.sourceforge.net/sourceforge/${pkgbase}/${pkgbase}_${_boostver}.tar.gz)
+makedepends=('icu' 'python' 'python2' 'bzip2' 'zlib' 'openmpi')
+source=(http://downloads.sourceforge.net/sourceforge/${pkgbase}/${pkgbase}_${_boostver}.tar.gz
+        4994-compile-fix-for-Python32-v2.patch)
 license=('custom')
-options=('!ccache')
-md5sums=('739792c98fafb95e7a6b5da23a30062c')
+md5sums=('820393d5746553c192db7b81ba0e53fe'
+         'cb59e8adbf2a45ef9264a2f4ab92b849')
 
 _stagedir="${srcdir}/stagedir"
 
@@ -23,6 +24,8 @@
   # set python path for bjam
   cd "${srcdir}/${pkgbase}_${_boostver}/tools"
   echo "using python : 2.7 : /usr/bin/python2 ;" >> build/v2/user-config.jam
+  echo "using python : 3.2 : /usr/bin/python : /usr/include/python3.2mu : /usr/lib ;" >> build/v2/user-config.jam
+  echo "using mpi ;" >> build/v2/user-config.jam
 
   # build bjam
   cd "${srcdir}/${pkgbase}_${_boostver}/tools/build/v2/engine/src"
@@ -31,8 +34,8 @@
   _bindir="bin.linuxx86"
   [ "${CARCH}" = "x86_64" ] && _bindir="bin.linuxx86_64"
 
-  install -m755 -d "${_stagedir}"/usr/bin
-  install -m755 ${_bindir}/bjam "${_stagedir}"/usr/bin/bjam
+  install -d "${_stagedir}"/usr/bin
+  install ${_bindir}/bjam "${_stagedir}"/usr/bin/bjam
 
   # build bcp
   cd "${srcdir}/${pkgbase}_${_boostver}/tools/bcp"
@@ -42,35 +45,41 @@
 
   # build libs
   cd "${srcdir}/${pkgbase}_${_boostver}"
+  #python 3.2 support
+  #https://svn.boost.org/trac/boost/ticket/4994
+  patch -Np0 -i "${srcdir}/4994-compile-fix-for-Python32-v2.patch"
+
   # default "minimal" install: "release link=shared,static
-  # runtime-link=shared threading=multi"
+  # runtime-link=shared threading=single,multi"
   # --layout=tagged will add the "-mt" suffix for multithreaded libraries
   # and installs includes in /usr/include/boost.
   # --layout=system no longer adds the -mt suffix for multi-threaded libs.
   # install to ${_stagedir} in preparation for split packaging
 
   ./tools/build/v2/engine/src/${_bindir}/bjam \
-      release debug-symbols=off threading=single,multi \
+      release debug-symbols=off threading=multi \
       runtime-link=shared link=shared,static \
       cflags=-fno-strict-aliasing \
       toolset=gcc \
       --prefix="${_stagedir}" \
       -sTOOLS=gcc \
-      --layout=tagged \
+      --layout=system \
       ${MAKEFLAGS} \
       install
 
+  # pyste is unmaintained: http://www.boost.org/doc/libs/1_46_0/libs/python/doc/index.html
   # build pyste
-  cd "${srcdir}/${pkgbase}_${_boostver}/libs/python/pyste/install"
-  python2 setup.py install --root=${_stagedir}
+  #cd "${srcdir}/${pkgbase}_${_boostver}/libs/python/pyste/install"
+  #python2 setup.py install --root=${_stagedir} --optimize=1
 }
 
 package_boost() {
     pkgdesc="Free peer-reviewed portable C++ source libraries - Development"
     depends=("boost-libs=${pkgver}")
-    optdepends=('python2: for python bindings')
+    optdepends=('python: for python bindings'
+                'python2: for python2 bindings')
 
-    install -dm 755 "${pkgdir}"/usr/{include,lib}
+    install -d "${pkgdir}"/usr/{include,lib}
     # headers/source files
     cp -r "${_stagedir}"/include/ "${pkgdir}"/usr/
 
@@ -88,8 +97,9 @@
 package_boost-libs() {
     pkgdesc="Free peer-reviewed portable C++ source libraries - Runtime"
     depends=('gcc-libs' 'bzip2' 'zlib')
+    optdepends=('openmpi: for mpi support')
 
-    install -dm 755 "${pkgdir}/usr/lib"
+    install -d "${pkgdir}/usr/lib"
     #shared libs
     cp -r "${_stagedir}"/lib/*.so{,.*} "${pkgdir}/usr/lib/"
 




More information about the arch-commits mailing list