* update boost to 1.87.0-2

This commit is contained in:
Alexander Baldeck 2025-02-04 07:16:26 +01:00
parent cc2ae74c3b
commit 68641d12ce
2 changed files with 16 additions and 29 deletions

View File

@ -1,7 +1,7 @@
pkgbase = boost
pkgdesc = Free peer-reviewed portable C++ source libraries
pkgver = 1.86.0
pkgrel = 4
pkgver = 1.87.0
pkgrel = 2
url = https://www.boost.org/
arch = x86_64
arch = powerpc64le
@ -16,18 +16,14 @@ pkgbase = boost
makedepends = zlib
makedepends = openmpi
makedepends = zstd
source = https://boostorg.jfrog.io/artifactory/main/release/1.86.0/source/boost_1_86_0.tar.bz2
source = boost-numpy-2.0.patch::https://github.com/boostorg/python/commit/0474de0f6cc9.patch
source = boost-1_86_0-fix-compute-header_patch_1.patch::https://github.com/boostorg/compute/commit/79452d5279831ee59a650c17b71259a821f1a554.patch
source = boost-1_86_0-fix-compute-header_patch_2.patch::https://github.com/boostorg/compute/commit/f8e5e3543723379bb6a9dd9d88415a993653e70a.patch
sha256sums = 1bed88e40401b2cb7a1f76d4bab499e352fa4d0c5f31c0dbae64e24d34d7513b
sha256sums = ccda8ef8126c93f4c8d29ba43b5f301952e5eacdc7fecb2ae3d01115a2222c53
sha256sums = 20e8017cd5d237157af578d4279c264418bb8f92471ba2efa1dc2e8e980addd8
sha256sums = a8c2b93129cb9c39c1ab30a6f3140e21f3fbfa23ededa039ab328331498293c7
source = https://archives.boost.io/release/1.87.0/source/boost_1_87_0.tar.bz2
source = boost-fix-smart-pointer-output.patch::https://github.com/boostorg/smart_ptr/commit/e7433ba54596da97cb7859455cd37ca140305a9c.patch
sha256sums = af57be25cb4c4f4b413ed692fe378affb4352ea50fbe294a11ef548f4d527d89
sha256sums = 22aab67d550b7f57e361d1c2ea8492a6e4efc5e1b650c8267de52cc5a0c0e46d
pkgname = boost
pkgdesc = Free peer-reviewed portable C++ source libraries (development headers)
depends = boost-libs=1.86.0
depends = boost-libs=1.87.0
optdepends = python: for python bindings
options = staticlibs

View File

@ -12,34 +12,25 @@
# Contributor: Luca Roccia <little_rock@users.sourceforge.net>
pkgname=('boost' 'boost-libs')
pkgver=1.86.0
pkgrel=4
pkgver=1.87.0
pkgrel=2
_srcname=boost_${pkgver//./_}
pkgdesc="Free peer-reviewed portable C++ source libraries"
arch=(x86_64 powerpc64le powerpc64 powerpc riscv64)
url="https://www.boost.org/"
license=('BSL-1.0')
makedepends=('icu' 'python' 'python-numpy' 'bzip2' 'zlib' 'openmpi' 'zstd')
source=(
https://boostorg.jfrog.io/artifactory/main/release/$pkgver/source/$_srcname.tar.bz2
$pkgname-numpy-2.0.patch::https://github.com/boostorg/python/commit/0474de0f6cc9.patch
$pkgname-1_86_0-fix-compute-header_patch_1.patch::https://github.com/boostorg/compute/commit/79452d5279831ee59a650c17b71259a821f1a554.patch
$pkgname-1_86_0-fix-compute-header_patch_2.patch::https://github.com/boostorg/compute/commit/f8e5e3543723379bb6a9dd9d88415a993653e70a.patch
)
sha256sums=('1bed88e40401b2cb7a1f76d4bab499e352fa4d0c5f31c0dbae64e24d34d7513b'
'ccda8ef8126c93f4c8d29ba43b5f301952e5eacdc7fecb2ae3d01115a2222c53'
'20e8017cd5d237157af578d4279c264418bb8f92471ba2efa1dc2e8e980addd8'
'a8c2b93129cb9c39c1ab30a6f3140e21f3fbfa23ededa039ab328331498293c7')
source=(https://archives.boost.io/release/$pkgver/source/$_srcname.tar.bz2
$pkgname-fix-smart-pointer-output.patch::https://github.com/boostorg/smart_ptr/commit/e7433ba54596da97cb7859455cd37ca140305a9c.patch)
sha256sums=('af57be25cb4c4f4b413ed692fe378affb4352ea50fbe294a11ef548f4d527d89'
'22aab67d550b7f57e361d1c2ea8492a6e4efc5e1b650c8267de52cc5a0c0e46d')
prepare() {
cd $_srcname
# support building against NumPy 2.0
patch -Np1 -d libs/python <../$pkgname-numpy-2.0.patch
# https://gitlab.archlinux.org/archlinux/packaging/packages/boost/-/issues/3
patch -Np2 < ../$pkgname-1_86_0-fix-compute-header_patch_1.patch
patch -Np2 < ../$pkgname-1_86_0-fix-compute-header_patch_2.patch
# fix the smartpointer prints (https://github.com/boostorg/smart_ptr/issues/115)
# also see https://github.com/luceneplusplus/LucenePlusPlus/issues/208
patch -Np4 -d boost/smart_ptr < ../$pkgname-fix-smart-pointer-output.patch
}
build() {