Skip to content

feat(bsd): add FreeBSD support to Meson build#6458

Merged
blackboxsw merged 1 commit into
canonical:mainfrom
blackboxsw:freebsd-tools-meson
Oct 1, 2025
Merged

feat(bsd): add FreeBSD support to Meson build#6458
blackboxsw merged 1 commit into
canonical:mainfrom
blackboxsw:freebsd-tools-meson

Conversation

@blackboxsw
Copy link
Copy Markdown
Collaborator

Proposed Commit Message

feat(bsd): add FreeBSD support to Meson build

Add sysvinit_freebsd support to meson.build to enable generating
rc.d scripts from templates and installing into the proper
/usr/local/etc/rc.d directory.

Update meson_options.txt to limit init_system choices to
sysvinit_openrc, systemd or sysvinit_freebsd.
Also, update tools/build-on-freebsd to use meson build operations.

Update tools/read-dependencies and pkg-deps.json for freebsd support.

Additional Context

Test Steps

Merge type

  • Squash merge using "Proposed Commit Message"
  • Rebase and merge unique commits. Requires commit messages per-commit each referencing the pull request number (#<PR_NUM>)

@github-actions github-actions Bot added the documentation This Pull Request changes documentation label Sep 7, 2025
Comment thread tools/build-on-freebsd Outdated
Add sysvinit_freebsd support to meson.build to enable generating
rc.d scripts from templates and installing into the proper
/usr/local/etc/rc.d directory.

Update meson_options.txt to limit init_system choices to
sysvinit_openrc, systemd or sysvinit_freebsd.
Also, update tools/build-on-freebsd to use meson build operations.

Update tools/read-dependencies and pkg-deps.json for freebsd support.
@github-actions github-actions Bot added the stale-pr Pull request is stale; will be auto-closed soon label Sep 23, 2025
@github-actions github-actions Bot closed this Sep 30, 2025
@canonical canonical deleted a comment from github-actions Bot Sep 30, 2025
@blackboxsw
Copy link
Copy Markdown
Collaborator Author

Re-opening for FreeBSD review and inclusion in milestone 25.4

@blackboxsw blackboxsw reopened this Sep 30, 2025
@blackboxsw blackboxsw removed the stale-pr Pull request is stale; will be auto-closed soon label Sep 30, 2025
@blackboxsw blackboxsw requested a review from aciba90 September 30, 2025 22:36
Copy link
Copy Markdown
Contributor

@aciba90 aciba90 left a comment

Choose a reason for hiding this comment

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

LGTM, I didn't test it on freebsd vm but I trust you did, thanks!

Comment thread tools/build-on-freebsd
${PYTHON} setup.py build
${PYTHON} setup.py install -O1 --skip-build --prefix /usr/local/ --init-system sysvinit_freebsd

# Enable cloud-init in /etc/rc.conf:
Copy link
Copy Markdown
Contributor

@aciba90 aciba90 Oct 1, 2025

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@aciba90 correct I updated your link as it truncated the trailing 6. The enablement in FreeBSD is done by the command sysrc cloudinit_enable=YES

@blackboxsw
Copy link
Copy Markdown
Collaborator Author

Just FYI @dermotbradley since you also added sysvinit_openrc. Shouldn't affect Alpine other than the meson_options.txt choices now permit -Dinit_system=sysvinit_openrc without warnings.

@blackboxsw blackboxsw merged commit da47f5f into canonical:main Oct 1, 2025
41 checks passed
blackboxsw added a commit to blackboxsw/cloud-init that referenced this pull request Dec 12, 2025
Add sysvinit_freebsd support to meson.build to enable generating
rc.d scripts from templates and installing into the proper
/usr/local/etc/rc.d directory.

Update meson_options.txt to limit init_system choices to
sysvinit_openrc, systemd or sysvinit_freebsd.
Also, update tools/build-on-freebsd to use meson build operations.

Update tools/read-dependencies and pkg-deps.json for freebsd support.
holmanb pushed a commit that referenced this pull request Dec 18, 2025
Add sysvinit_freebsd support to meson.build to enable generating
rc.d scripts from templates and installing into the proper
/usr/local/etc/rc.d directory.

Update meson_options.txt to limit init_system choices to
sysvinit_openrc, systemd or sysvinit_freebsd.
Also, update tools/build-on-freebsd to use meson build operations.

Update tools/read-dependencies and pkg-deps.json for freebsd support.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation This Pull Request changes documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants