python3-pandas: rebuild for missing symbol, disable parallel builds

An intermittent "missing symbol" problem, together with recent i686
failures, suggests that there may be a race in the build.
This commit is contained in:
Andrew J. Hesford 2022-10-07 08:47:36 -04:00
parent f9842e8bd4
commit 47a641fec1
1 changed files with 5 additions and 11 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'python3-pandas'
pkgname=python3-pandas
version=1.5.0
revision=1
revision=2
wrksrc="pandas-${version}"
build_style=python3-module
hostmakedepends="python3-setuptools python3-Cython python3-numpy"
@ -15,24 +15,18 @@ homepage="https://pandas.pydata.org/"
changelog="https://pandas.pydata.org/pandas-docs/stable/whatsnew/index.html"
distfiles="https://github.com/pandas-dev/pandas/archive/v${version}.tar.gz"
checksum=ab23595e2105e2595b14c37f5e88a24d065eb60432e9f45c78f8613ba956eacd
# Try to avoid an intermittent i686 build failure
# https://build.voidlinux.org/builders/i686_builder/builds/39813/steps/shell_3/logs/stdio
case "$XBPS_TARGET_MACHINE" in
i686*) disable_parallel_build=yes ;;
esac
# Builds seem to sometimes have missing symbol problems;
# the intermittent nature suggests this might be a race
disable_parallel_build=yes
pre_build() {
# Try to avoid the aforementioned intermittent i686 build failure
# Try to avoid i686 build failure
case "$XBPS_TARGET_MACHINE" in
i686*)
CFLAGS="${CFLAGS// -g/ -g1}"
CXXFLAGS="${CXXFLAGS// -g/ -g1}"
;;
esac
# setup.py allows a -j argument to parallelize builds
make_build_args+=" ${makejobs}"
}
do_check() {