You are not logged in.
Pages: 1
I was trying to build git from ABS and right after
==> Starting check()..., without explanation, I get
==> ERROR: A failure occurred in check().and makepkg aborts.
I looked at the check function in the PKGBUILD but couldn't recognize anything that should be causing errors.
check() {
export PYTHON_PATH='/usr/bin/python2'
cd "$srcdir/$pkgname-$pkgver"
local jobs
jobs=$(expr "$MAKEFLAGS" : '.*\(-j[0-9]*\).*')
# build failures with multiple jobs in check, not ideal...
jobs='-j1'
mkdir -p /dev/shm/git-test
# We used to use this, but silly git regressions:
#GIT_TEST_OPTS="--root=/dev/shm/" \
# [url]http://comments.gmane.org/gmane.comp.version-control.git/202020[/url]
make prefix=/usr gitexecdir=/usr/lib/git-core \
CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" \
USE_LIBPCRE=1 \
NO_CROSS_DIRECTORY_HARDLINKS=1 \
MAN_BOLD_LITERAL=1 \
NO_SVN_TESTS=y \
DEFAULT_TEST_TARGET=prove \
GIT_PROVE_OPTS="$jobs -Q" \
GIT_TEST_OPTS="--root=/dev/shm/git-test" \
test
}Why didn't makepkg give me more info?
How should I proceed?
edit: It seems strange to me that jobs is given an initial value and then immediately overwritten with '-j1'.
edit: put code and output in code tags
Last edited by Neven (2014-05-11 01:44:53)
Offline
Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code
Offline
Offline
If MAKEFLAGS has no value set in /etc/makepkg.conf, then the 'expr' call (the first assignment to 'jobs') returns non-zero and causes makepkg to error out before anything in the function does anything that writes to the terminal.
Thank you very much. I've set MAKEFLAGS to '-j1' in my makepkg.conf and I think it should finish without errors now. And more importantly you've taught me about this.
edit: yeah it built fine, im marking this as solved
Last edited by Neven (2014-05-11 01:44:18)
Offline
Pages: 1