You are not logged in.

#1 2014-05-10 23:24:44

Neven
Member
Registered: 2014-05-02
Posts: 76

[SOLVED] unknown failure in makepkg check

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

#2 2014-05-10 23:49:26

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [SOLVED] unknown failure in makepkg check

Please use code tags when pasting to the boards: https://wiki.archlinux.org/index.php/Fo … s_and_Code


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2014-05-11 00:11:16

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [SOLVED] unknown failure in makepkg check

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.

Offline

#4 2014-05-11 00:30:16

Neven
Member
Registered: 2014-05-02
Posts: 76

Re: [SOLVED] unknown failure in makepkg check

falconindy wrote:

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

Board footer

Powered by FluxBB