On 2020/05/07 10:50, Groot wrote: > I tried installing rust through ports, but couldn't > > ===> Configuring for rust-1.42.0 > Using /usr/portsdir/pobj/rust-1.42.0/config.site (generated) > datasize limit is too low - amd64 build takes approx 4GB > *** Error 1 in /usr/ports/lang/rust (Makefile:152 'pre-configure': @if [ > `ulimit -d` -lt 3145728 ]; then echo datasize limit is too low - a...) > > I should mention that I tried setting `ulimit -d unlimited` as > root user, but seems that it's doesn't affect the defaults of normal > user much. Since I set PORTS_PRIVSEP in `mk.conf`, _pbuild in my opinion > is the user we are talking about. > > After setting `ulimit -d unlimited` as root, the unprivileged user > gets a hard limit of 786433. As root user of course there is more than > enough memory. So is there a way out? >
If you are using sudo rather than doas, set "Defaults use_loginclass" in sudoers.