main/boost1.84: fix tests

This commit is contained in:
Sertonix 2024-07-03 18:23:10 +02:00 committed by Natanael Copa
parent 9640ec7b48
commit 1f17e0b0fb
2 changed files with 19 additions and 3 deletions

View file

@ -2,7 +2,7 @@
pkgname=boost1.84
pkgver=1.84.0
_pkgver="${pkgver//./_}"
pkgrel=1
pkgrel=2
pkgdesc="Free peer-reviewed portable C++ source libraries"
url="https://www.boost.org/"
arch="all"
@ -20,9 +20,9 @@ source="https://boostorg.jfrog.io/artifactory/main/release/$pkgver/source/boost_
boost-1.57.0-python-abi_letters.patch
boost-1.57.0-python-libpython_dep.patch
boost-phoenix-uarg.patch
python-syntax-warning.patch
"
builddir="$srcdir/boost_$_pkgver"
options="!check" # some tests fail now, figure it out later
_libs="
atomic
@ -130,7 +130,7 @@ build() {
check() {
cd "$builddir"/tools/build/test
PATH="$pkgdir/usr/bin:$PATH" python3 test_all.py --default-bjam
PATH="$builddir:$PATH" python3 test_all.py --default-bjam
}
package() {
@ -213,4 +213,5 @@ sha512sums="
d96d4d37394a31764ed817d0bc4a99cffa68a75ff1ecfd4417b9e1e5ae2c31a96ed24f948c6f2758ffdac01328d2402c4cf0d33a37107e4f5f721e636daebd66 boost-1.57.0-python-abi_letters.patch
132c4b62815d605c2d3c9038427fa4f422612a33711d47b2862f2311516af8a371d6b75bf078a7bffe20be863f8d21fb9fe74dc1a1bac3a10d061e9768ec3e02 boost-1.57.0-python-libpython_dep.patch
7fad4b81ae5df38f740148153bcb5b4b31c12061f1264404b96a324e0d2f06943530cbcf9002d17772fb4ad87dcf0ba8bf4ed397725ee448a4d310df5d0383ad boost-phoenix-uarg.patch
ff7036ae75f17a0db52937a96b334baa234877d408ab7d5b3015d1bb319d9efaefc6a201e51d970f202ce394be2533662417d0015c695704238cdeb916230d09 python-syntax-warning.patch
"

View file

@ -0,0 +1,15 @@
SyntaxWarning messing up stderr of tests
Ref https://github.com/boostorg/build/commit/9e3cf110dee968c08cfe15196ab0910a7fad072d
--- a/tools/build/test/toolset-mock/src/MockProgram.py
+++ b/tools/build/test/toolset-mock/src/MockProgram.py
@@ -190,7 +190,7 @@ def allow_properties(*args):
# Use this in the stdout argument of command to print the command
# for running another script.
def script(name):
- return os.path.join(os.path.dirname(__file__), "bin", re.sub('\.py$', '', name))
+ return os.path.join(os.path.dirname(__file__), "bin", re.sub('\\.py$', '', name))
def match(command_line):
for (p, stdout) in known_patterns: