Skip to content
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

Closed
wants to merge 1 commit into from
Closed

libcouchbase 2.8.4 #21919

wants to merge 1 commit into from

Conversation

avsej
Copy link
Contributor

@avsej avsej commented Dec 20, 2017

  • Have you followed the guidelines for contributing?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing brew install <formula>)?

@ilovezfs
Copy link
Contributor

@avsej why not depend on the snappy formula?

@avsej
Copy link
Contributor Author

avsej commented Dec 20, 2017

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

@ilovezfs
Copy link
Contributor

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.

@avsej
Copy link
Contributor Author

avsej commented Dec 20, 2017

snappy-1.1.7 ships broken header file

@ilovezfs
Copy link
Contributor

Have you reported this upstream? Why is it that it works for

folly.rb:26:  depends_on "snappy"
leveldb.rb:19:  depends_on "snappy"
ppsspp.rb:21:  depends_on "snappy"
redis-leveldb.rb:20:  depends_on "snappy"
rocksdb.rb:15:  depends_on "snappy"
snappystream.rb:18:  depends_on "snappy"
snzip.rb:16:  depends_on "snappy"
sparkey.rb:19:  depends_on "snappy"
wiredtiger.rb:15:  depends_on "snappy"

if that is the case?

@avsej
Copy link
Contributor Author

avsej commented Dec 20, 2017

Because these packages don't use version macros in the header.

@ilovezfs
Copy link
Contributor

We'll need to find some workaround for that then and get it reported upstream.

@avsej
Copy link
Contributor Author

avsej commented Dec 20, 2017

Workaround is to use verified snappy we have in the source package. I will report the issue to upstream.

@ilovezfs
Copy link
Contributor

I'm not comfortable using a static vendored version when we have a formula that nine other formulae are using fine.

@avsej
Copy link
Contributor Author

avsej commented Dec 20, 2017

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
Copy link
Contributor

@avsej #21925

@avsej
Copy link
Contributor Author

avsej commented Dec 20, 2017

@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.

@ilovezfs
Copy link
Contributor

@avsej #21925 is shipped so you can just depend on snappy unconditionally now.

@avsej
Copy link
Contributor Author

avsej commented Dec 20, 2017

No, I cannot depend on that snappy. I would rather make this feature optional now. In its current shape, is this formula acceptable?

@ilovezfs
Copy link
Contributor

Why not? It builds as expected now.

@avsej
Copy link
Contributor Author

avsej commented Dec 20, 2017

Because we have not tested with this snappy. I'm not actively using MacOS, so we can change formula to use external snappy later.

@ilovezfs
Copy link
Contributor

@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.

@avsej
Copy link
Contributor Author

avsej commented Dec 20, 2017

Right now compression feature is not publicly available on Couchbase Server, so I would rather stick to static optional snappy.

@ilovezfs
Copy link
Contributor

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.

@avsej
Copy link
Contributor Author

avsej commented Dec 20, 2017

What wrong with options? It will make it easier for people to opt-in for features.

@ilovezfs
Copy link
Contributor

They result in source builds instead of using the prebuilt binary, but if you want to make it

depends_on "snappy" => :optional

I'd be OK with that for now.

@avsej
Copy link
Contributor Author

avsej commented Dec 20, 2017

I removed snappy support from the formula.

@ilovezfs
Copy link
Contributor

OK.

@ilovezfs
Copy link
Contributor

Thanks for the upgrade @avsej! Shipped.

@ilovezfs ilovezfs closed this in 61b7c7e Dec 20, 2017
@Homebrew Homebrew locked and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants