Stream: contributing

Topic: arch nightly package


view this post on Zulip Brendan Hansknecht (Dec 11 2024 at 07:46):

So from watching the roc aoc stream from @Scally recently, arch package versioning come up as a bit of a problem when it came to updating the aur package for nightlies. They said that the aur package often requires removal and reinstall to actually update roc.

I think since roc reports a version now, we should be able to do something better. If I understand aur packaging correctly, I think we should be able to:

  1. use prepare to download the lasest nightly
  2. use pkgver run roc version to get a version for arch to compare to.
  3. use package just to copy over the source.

I think that should make it correctly check for new updates. That said, I don't really know aur packaging that well and have not run arch in a while (so couldn't test rn). But sounds like there might be some room for improved experience here.

All this said, it looks like it currently uses the date for the package version, so feels like it should update without needing reinstall.... hmm... Maybe something has to be fired off by the roc nightly job to tell it to update. The current package version claims to be 20240215-6, which is quite old. Either way, would be great to update with the changes listed above to give it proper versioning.

CC aur package maintainer @Alexander Pyattaev

view this post on Zulip Scally (Dec 11 2024 at 09:06):

Maybe as a relevant note, when having no version installed and installing the AUR package it does download and install the latest version from git, the issue is just that when there is already a version installs it doesn't update saying the current version was already up to date / newer than the 20240215 version.
Probably all that would be needed is something bumping the package version on AUR whenever a new nightly build is available.

While I don't have any experience with packaging myself, I'd gladly help with testing, feel free to ping me for that.

view this post on Zulip Alexander Pyattaev (Dec 28 2024 at 16:36):

Yeah packaging roc is not fun because the aur system is set up with the
expectation that a package would have a version. Nightlies are not really
well-supported by AUR build scripts.The best thing to do would be to make
"nightly releases" with date as version number, and have ~7 of them just
hanging out on github or something like that. Then one would indeed need to
auto-bump the AUR package every day. I can give the access to the AUR
package repo if someone wants to give it a try.

view this post on Zulip Anton (Dec 28 2024 at 16:45):

We plan to make weekly roc releases in the near future, we should come back to this after that's done

view this post on Zulip Alexander Pyattaev (Dec 28 2024 at 18:27):

Yes, that would massively simplify packaging. I can also make a package for gentoo easily enough.


Last updated: Jul 26 2025 at 12:14 UTC