-
-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
libcouchbase 2.8.4 #21919
libcouchbase 2.8.4 #21919
Conversation
@avsej why not depend on the snappy formula? |
Because right now we only tested against snappy-1.1.1, and snappy-1.1.7 homebrew is shipping does not define its version correctly at least. This breaks our build right now. Also see https://bugzilla.redhat.com/show_bug.cgi?id=1527850 |
That may be because we build snappy with CMake. I'd like to use the formula regardless of whether that specific version has been tested. |
snappy-1.1.7 ships broken header file |
Have you reported this upstream? Why is it that it works for
if that is the case? |
Because these packages don't use version macros in the header. |
We'll need to find some workaround for that then and get it reported upstream. |
Workaround is to use verified snappy we have in the source package. I will report the issue to upstream. |
I'm not comfortable using a static vendored version when we have a formula that nine other formulae are using fine. |
So you would rather change this formula and likely break it, than accept it with bundled snappy? You can take this patch to fix snappy formula: https://github.com/google/snappy/pull/61.patch |
@ilovezfs I have updated the formula. Now it will compile snappy if the end user will decide to do it. And by default it will not use compression at all. |
No, I cannot depend on that snappy. I would rather make this feature optional now. In its current shape, is this formula acceptable? |
Why not? It builds as expected now. |
Because we have not tested with this snappy. I'm not actively using MacOS, so we can change formula to use external snappy later. |
@avsej The difference is in patch level. I don't think we need to worry about a problem here. I'm happy to revert it later if you identify an actual problem but we should be optimistic that it'll be fine. |
Right now compression feature is not publicly available on Couchbase Server, so I would rather stick to static optional snappy. |
I'm 👎 on adding new options here, let alone options for static libraries. So we'll need to go without compression or use the external library. |
What wrong with options? It will make it easier for people to opt-in for features. |
They result in source builds instead of using the prebuilt binary, but if you want to make it
I'd be OK with that for now. |
I removed snappy support from the formula. |
OK. |
Thanks for the upgrade @avsej! Shipped. |
brew install --build-from-source <formula>
, where<formula>
is the name of the formula you're submitting?brew audit --strict <formula>
(after doingbrew install <formula>
)?