FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bees: update to 0.11. by Wiylan · Pull Request #62214 · void-linux/void-packages · GitHub

bees: update to 0.11. - #62214

Open
Wiylan wants to merge 1 commit into
void-linux:masterfrom
Wiylan:pr/bees/0.11_1
Open

Wiylan wants to merge 1 commit into
void-linux:masterfrom
Wiylan:pr/bees/0.11_1

Conversation

Wiylan commented Aug 25, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Supersedes #61901
Add runit service for beesd.
Remove outdated patches, replace with make args.

Testing the changes

  • I tested the changes in this PR: YES

Local build testing

  • I built this PR locally for my native architecture, (x86_64-musl)
  • I built this PR locally for these architectures (if supported. mark crossbuilds):
    • x86_64
    • i686
    • aarch64-musl
    • armv6l-musl

Wiylan marked this pull request as ready for review August 25, 2026 19:47
Wiylan marked this pull request as draft August 25, 2026 20:00
Wiylan marked this pull request as ready for review August 25, 2026 20:54
Comment thread srcpkgs/bees/files/beesd/run Outdated
#!/bin/sh
exec 2>&1

[ -r /etc/bees.conf ] && . /etc/bees.conf

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This isgenerally now how we ship service configurations. The common pattern is to just ship a conf file next to the service [ -r ./conf ] && . ./conf

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Seems like the beesd does the parsing itself. So it shouldn't be sourced here and conf can be used to overwrite or pass additional flags.

https://github.com/Zygo/bees/blob/master/scripts/beesd.in#L82-L85

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

run reads a conf next to the service if you make one, but I kept sourcing the bees config for the UUID.

beesd finds its config by grepping /etc/bees/*.conf for the UUID it was passed, so it needs one on argv before it can find anything, and bails without it:
https://github.com/Zygo/bees/blob/v0.11/scripts/beesd.in#L79

Taking it from conf instead would mean setting the same value in two files. conf is still there for flags and overrides.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The systemd service is parametrized. It would probably be better to just add an example service instead instead of one "ready to use" (which actually limited to one UUID and also needs extra setup) in /etc/sv.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Fair. I'll ship it as an example under usr/share/examples/sv/beesd.

Comment on lines +6 to +10
if [ "$(uuidparse -n -o VARIANT "$UUID")" = "invalid" ]; then
echo "Set UUID in /etc/bees.conf before starting beesd"
sv down .
exit 1
fi

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

This is not generally what we do with services. I don't think there is a single other service that calls sv or takes itself down by default.
Since services are not enabled by default and a user has to enable it I don't think this should be here.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

sv does get called by other run scripts, but no other service uses down, agreed.
I went with it because beesd can't start without a UUID and there's no default that would work. The shipped config has upstream's placeholder UUID, so enabling before editing trips the guard on every restart, one line a second, forever. Taking it down once seemed better than filling the log.
If you'd rather it just loop like everything else, I'll drop it.

Comment thread srcpkgs/bees/template Outdated
revision=2
version=0.11
revision=1
archs="x86_64* i686* aarch64* armv[67]l*"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Why is there an archs pattern if it allows all architectures?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Dropped. I was being careful because bees touches the filesystem, but I can't actually back up where I drew the line.

Comment thread srcpkgs/bees/template Outdated
vconf scripts/beesd.conf.sample bees.conf
vsconf scripts/beesd.conf.sample
vmkdir etc/bees
ln -s ../bees.conf "${DESTDIR}/etc/bees/bees.conf"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Why do we need this link? Just install the config file to where its needed.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Yeah, that was working around installing it to the wrong place. Config goes straight to /etc/bees/bees.conf now and the link is gone.

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL