Skip to content

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?

1 points6 comments
Open on Reddit
About this post
Posted
Archived
Score
1 · 100% up
Kind
Text
ID
elvccd

Author

1
posts
4
comments
0
media
View profile

8 comments

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.

3 points
unknown author5 hidden

Deleted before we saved it.

2 points

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.

1 points

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).

I don’t mind building the package, I just don’t want to run the task when I need the resources.

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).

2 points
unknown author

Deleted before we saved it.

2 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.