Skip to content

Conversation

@bigsaltyfishes
Copy link
Contributor

Add initial support for FreeBSD.

@bigsaltyfishes bigsaltyfishes force-pushed the master branch 3 times, most recently from 1b2d54f to 4c97caa Compare December 16, 2025 03:54
@outfoxxed
Copy link
Member

This is still marked as draft, is it ready for review?

@bigsaltyfishes
Copy link
Contributor Author

Sorry for my late reply, i finished the test just now, should work on freebsd now.
image

@bigsaltyfishes bigsaltyfishes marked this pull request as ready for review December 22, 2025 11:00
Comment on lines +90 to +94
#ifdef __FreeBSD__
auto result = pam_start(config, user, &conv, &handle);
#else
auto result = pam_start_confdir(config, user, &conv, configDir, &handle);
#endif
Copy link
Member

Choose a reason for hiding this comment

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

If pam can't be configured on bsd a note of that should be made on the configdir property

Q_PROPERTY(QString configDirectory READ configDirectory WRITE setConfigDirectory NOTIFY configDirectoryChanged);

- Added FreeBSD CI.
- Use `copy_file_range(2)` over `sendfile(2)` which has wider
compatibility.
- Special case pam on freebsd and document `configDirectory`
incompatibility.
- Disable jemalloc for FreeBSD by default as it is the system allocator.
- Disable breakpad by default on FreeBSD as breakpad is not supported.
@outfoxxed
Copy link
Member

Dropped the link dirs, which I am not opposed to re-adding if it is actually the convention. Usually those paths are configured via the system and I haven't seen other packages do that. Otherwise LGTM

@outfoxxed outfoxxed merged commit 354d962 into quickshell-mirror:master Jan 6, 2026
34 of 35 checks passed
@outfoxxed
Copy link
Member

CI setup also failed on merge, so I've currently excluded it.

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