-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meson: Correct capability check for SunRPC on *BSD #1768
Conversation
b161247
to
cb02a80
Compare
Two comments: I wonder if there should be a have_libquota meson selector, capturing support for the NetBSD libquota(3) / FreeBSD quotafile(3) API, instead of conditionalizing on the OS. The quota.c |
Easily done! I actually had that in an earlier revision, if you look at the force push diff. The way you do this in Meson, is to define a boolean variable somewhere in the global scope, i.e. It's recommended to define the flag early and in the global scope first to avoid errors for certain branches.
I think we need a new capability check, either to replace or supplement the current libquota check. The current libquota check is false positive for NetBSD. Do you have an idea? |
@hfath Scratch the above. You were right. It builds cleanly on all OSes now. |
ccbdbdf
to
e9b6ea1
Compare
Quality Gate passedIssues Measures |
I have a related patch which
-- builds and runs here. I still need to set up a test bed for the actual quota functionality, though, both local and on nfs volumes. |
(github's import filter sucks boulders through a straw...) |
Thanks for the patch! Do you have any interest whatsoever to file a GitHub PR for this? A PR would give you proper credits in the commit log and the next release notes. :) |
Eye candy primarily, with the added benefit of informing ignorant netatalk maintainers which library was detected on which OS. |
@pr -- I should get some practice, I guess... give me a couple of days, too many balls in the air right now |
BTW, you can define a code block delineated by a pair of three backticks like this:
Just in case you weren’t aware. It’s a handy way to share code snippets or patches. |
For the SunRPC / libquota check, look for
quota_open()
instead of the obsoletegetfsquota()
Don't compile the bundled nfsquota module when using libquota.