makechrootpkg: Prevent collecting coredumps

Coredumps from build chroots are not generally useful. Prevent
them from being generated.

Avoids a lot of annoyance from the GCC testsuite spawning lots of
systemd-coredump processes.

Just set the soft limit so the user can still raise it in the PKGBUILD
if they insist.
This commit is contained in:
Jan Alexander Steffens (heftig) 2017-09-14 22:21:47 +02:00
parent 6b55282bd7
commit 0f3778c3d3
No known key found for this signature in database
GPG Key ID: A5E9288C4FA415FA
1 changed files with 4 additions and 0 deletions

View File

@ -241,8 +241,12 @@ EOF
# These functions aren't run in makechrootpkg,
# so no global variables
_chrootbuild() {
# No coredumps
ulimit -c 0
# shellcheck source=/dev/null
. /etc/profile
# Beware, there are some stupid arbitrary rules on how you can
# use "$" in arguments to commands with "sudo -i". ${foo} or
# ${1} is OK, but $foo or $1 isn't.