~tyil/rakudo-star

3058e65ec95190f7917c3a58f9624f90eea9b668 — Patrick Spek 9 days ago a794b42 master
Add warning for OpenBSD users without a class
1 files changed, 12 insertions(+), 0 deletions(-)

M lib/actions/install.bash
M lib/actions/install.bash => lib/actions/install.bash +12 -0
@@ 30,6 30,18 @@ action() {

	shift $(( OPTIND - 1 ))

	# Throw OS-specific warnings, if any
	case ${RSTAR_PLATFORM["key"]} in
		openbsd)
			# Check for userlimits
			if [[ -z "$(userinfo "$(whoami)" | awk '$1 == "class" { print $2 }')" ]]
			then
				warn "Your user does not have a class, this may limit the installer's memory"
				warn "usage, which can result in failure to compile."
			fi
			;;
	esac

	# Prepare environment for a reproducible install
	LC_ALL=C.UTF-8