[arch-commits] Commit in boost/trunk (776.patch PKGBUILD)
Sven-Hendrik Haase
svenstaro at archlinux.org
Wed May 30 20:46:05 UTC 2018
Date: Wednesday, May 30, 2018 @ 20:46:05
Author: svenstaro
Revision: 325220
upgpkg: boost 1.66.0-3
GCC8 fix
Added:
boost/trunk/776.patch
Modified:
boost/trunk/PKGBUILD
-----------+
776.patch | 23 +++++++++++++++++++++++
PKGBUILD | 14 +++++++++++---
2 files changed, 34 insertions(+), 3 deletions(-)
Added: 776.patch
===================================================================
--- 776.patch (rev 0)
+++ 776.patch 2018-05-30 20:46:05 UTC (rev 325220)
@@ -0,0 +1,23 @@
+From fdbdb94db64e888fce90fe519be23c2a4396a82e Mon Sep 17 00:00:00 2001
+From: pradeep <pradeep at arrayfire.com>
+Date: Tue, 8 May 2018 14:53:38 +0530
+Subject: [PATCH 1/2] Fix return var qualifier in svm_ptr::get_context
+
+Lack of `const` qualifier is throwing errors with GCC 8.1
+---
+ include/boost/compute/memory/svm_ptr.hpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/include/boost/compute/memory/svm_ptr.hpp b/include/boost/compute/memory/svm_ptr.hpp
+index c8753f5b..56cf1268 100644
+--- a/include/boost/compute/memory/svm_ptr.hpp
++++ b/include/boost/compute/memory/svm_ptr.hpp
+@@ -126,7 +126,7 @@ class svm_ptr
+ return m_ptr - other.m_ptr;
+ }
+
+- context& get_context() const
++ const context& get_context() const
+ {
+ return m_context;
+ }
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-05-30 20:36:33 UTC (rev 325219)
+++ PKGBUILD 2018-05-30 20:46:05 UTC (rev 325220)
@@ -12,14 +12,22 @@
pkgname=('boost-libs' 'boost')
pkgver=1.66.0
_boostver=${pkgver//./_}
-pkgrel=2
+pkgrel=3
url='http://www.boost.org/'
arch=('x86_64')
license=('custom')
makedepends=('icu>=55.1' 'python' 'python2' 'python-numpy' 'python2-numpy' 'bzip2' 'zlib' 'openmpi')
-source=(https://downloads.sourceforge.net/project/${pkgbase}/${pkgbase}/${pkgver}/${pkgbase}_${_boostver}.tar.bz2)
-sha256sums=('5721818253e6a0989583192f96782c4a98eb6204965316df9f5ad75819225ca9')
+source=(https://downloads.sourceforge.net/project/${pkgbase}/${pkgbase}/${pkgver}/${pkgbase}_${_boostver}.tar.bz2
+ 776.patch)
+sha256sums=('5721818253e6a0989583192f96782c4a98eb6204965316df9f5ad75819225ca9'
+ '43cdc2081f90d2acc7e4d9de6689bce07b2a1b4754e85dc7fa50872afa330ffa')
+prepare() {
+ cd ${pkgbase}_${_boostver}/boost
+
+ patch -Np3 -i "$srcdir"/776.patch
+}
+
build() {
export _stagedir="${srcdir}/stagedir"
local JOBS="$(sed -e 's/.*\(-j *[0-9]\+\).*/\1/' <<< ${MAKEFLAGS})"
More information about the arch-commits
mailing list