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

View file

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