Set-ups for long-running AUR package builds
Specifically I'm having a problem with linux-ck package. I'm thinking about doing a nightly job to check whether there's a new version available, setting _subarch to whatever I need for a hands-free build, and then I'll have a package ready for install in the morning.
I know you can speed up the build of linux kernels considerably if you only build drivers you actually use, but kernel is just an example in this case, it could be anything.
So do you schedule nightly jobs, have a self-hosted repo somewhere, start it manually whenever you go afk for a while, or maybe there's a well-known solution already that I'm completely ignorant of?
About this post
- Posted
- Archived
- Score
- 1 · 100% up
- Kind
- Text
- ID
- elvccd
8 comments
or use chaotic-aur.
they have a build with the ck patchset IIRC.
no need to compile yourself .
You know CK has a pacman repo so you don't have to build the kernel or install from AUR?
You can also create a custom repo on a local disk quite easily, then make a script to remove old packages, and run git and makepkg during the night.
Deleted before we saved it.
So checking the updates in AUR is not the issue. The issue is that of there are updates to linux-ck, amongst other AUR packages, it takes a long time to build. I don’t mind building the package, I just don’t want to run the task when I need the resources.
Maybe my approach is wrong and I shouldn’t update the system when I need to use it, but I never had issues doing it that way.
You should be aware that an unattended AUR build server basically means giving shell access to whoever happens to be the packages' maintainer. There has been malware in the AUR in the past (albeit just a few rare times, and it had been quickly purged again).
Start the build with
schedtool -D -e makepkg(substitute makepkg for your build tool of choice). That sets it to SCHED_IDLEPRIO, a feature of MuQSS, which implements the most aggressive backgrounding strategy possible: if there is anything else that wants to use the CPU, the build will not get any CPU time at all, period. You can literally play triple-A games while building and not notice any FPS drops (assuming that RAM doesn't become an issue). Vanilla doesn't have anything comparable, because even if you set it to SCHED_BATCH nice +20 it'll still get scheduled eventually (just less often than normal).Deleted before we saved it.