]> git.ipfire.org Git - thirdparty/bind9.git/commit
Work around an OpenBSD "make" quirk
authorMichał Kępień <michal@isc.org>
Tue, 15 Oct 2019 14:38:04 +0000 (16:38 +0200)
committerMichał Kępień <michal@isc.org>
Tue, 15 Oct 2019 14:38:04 +0000 (16:38 +0200)
commit6b5426e1a7e19e4e39848a362c3dce80b40243b9
tree55ea2cd055f80f59872ce2eab8c80d2f68de67b9
parent69b023e8624bb85f1f8e9dcf8b5d12244f22166e
Work around an OpenBSD "make" quirk

Consider the following Makefile:

    foo:
     false

On OpenBSD, the following happens for this Makefile:

  - "make foo" returns 1,
  - "make -k foo" returns 0,
  - "make -k -j6 foo" returns 1.

However, if the .NOTPARALLEL pseudo-target is added to this Makefile,
"make -k -j6 foo" will return 0 as well.

Since bin/tests/Makefile contains the .NOTPARALLEL pseudo-target,
running "make -k -j6 test" from bin/tests/ on OpenBSD prevents any
errors from being reported through that command's exit code.

Work around the issue by running "make -k -j6 test" in the
bin/tests/system/ directory instead as bin/tests/system/Makefile does
not contain the .NOTPARALLEL pseudo-target and thus things work as
expected there.
.gitlab-ci.yml