To something like make -j$(getconf _NPROCESSORS_ONLN).
This will enable building concurrently, there are some builds that have race conditions and fail with concurrency but it's rare.
I have some builds that take well over an hour depending on the system.
It's the first program I install from the AUR to take this long time; and I have installed much larger programs to compile. It still compiling in, do I have to shut down the terminal, or is it not recommended? Yes it is still compiling, and now it's over an hour...
If I did not use make -j it would take an ungodly amount of time to finish. very very heavy build. on the circle-ci builds it takes just over 3 hours hahaha.
23 comments
hard to say, you could try changing this line right here: https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=something-for-reddit-git#n24
To something like
make -j$(getconf _NPROCESSORS_ONLN).This will enable building concurrently, there are some builds that have race conditions and fail with concurrency but it's rare.
I have some builds that take well over an hour depending on the system.
You can also edit the make flags globally for all packages in
/etc/makepkg.conf:I believe the getconf is a bit better if I remember correctly it handled some edge cases better under certain hyovisors that might report incorrectly.
But I agree putting that in the makepkg.conf is better place. I just wonder if it's bad practice to do it in PKGBUILD.
It's the first program I install from the AUR to take this long time; and I have installed much larger programs to compile. It still compiling in, do I have to shut down the terminal, or is it not recommended? Yes it is still compiling, and now it's over an hour...
killing it now won't hurt anything. you just never know how far along it might be.I maintain this package for example https://aur.archlinux.org/packages/darling/
If I did not use
make -jit would take an ungodly amount of time to finish. very very heavy build. on the circle-ci builds it takes just over 3 hours hahaha.Well this is a non-solution but you should check out rtv. I use it daily and it's very nice
https://github.com/michael-lazar/rtv/issues/696
That's good to know. I guess I'll be on the lookout for a fork