Couchbase on gentoo

102 views
Skip to first unread message

Alexander Kureniov

unread,
Aug 20, 2013, 8:05:59 AM8/20/13
to couchba...@googlegroups.com
Hello. I like to use couchbase with my apps, explore it's features... But also I like gentoo/funtoo and other source-based linux distributions for theirs flexibility. And I was upset by that fact that couchbase doesn't provide ebuilds for that distributions :(. I asked people on couchbase forums and found some ebuilds, but they needed some hacks to get them work and they were based on debian binary package. But it's not gentoo-way.

So I've finally got some spare time to fix this... in gentoo-way of course. I've compiled couchbase several times before it finally start working. The main problem was that in some places couchbase uses outdated libraries and source-based distributions usally use bleeding-edge soft. 

I've created some proper ebuilds and published them here https://bitbucket.org/SkeLLLa/m03geek-overlay as and portage overlay. It has 3 types of couchbase server installations: source-based couchbase CE, binary couchbase CE and binary couchbase EE. Source-based couchbase ebuild isn't ideal, but at least it compiles :). 

If someone is interested in developing and making those ebuilds better I'll be glad to "work" together. Later I plan to add cocuhbase client libraries to that overlay and maybe some untested binary builds from couchbase buildbot (this can be useful even couchbase developers, if some of them like gentoo too :)). So contributors and testers are welcomed. 

To add that overlay to your portage and try it out:
hg clone ssh://h...@bitbucket.org/SkeLLLa/m03geek-overlay /path/to/overlay/dir

add
/path/to/overlay/dir to PORTDIR_OVERLAY variable in your make.conf

Matt Ingenthron

unread,
Aug 20, 2013, 6:12:51 PM8/20/13
to couchba...@googlegroups.com
Hi Alexander,

We love seeing ports to new platforms.  I did ebuild stuff back 6-7 years ago.  It was interesting work.  For me it was quite a challenge since I was building gcc.  More specifically, I was building the 64-bit gcc on a 32-bit OS install.  That was hairy!

I just want to mention briefly mention one thing.  What you'd built isn't really EE and I'd probably stop providing that one.

The reason it's not EE is that to be EE, it may have some additional hotfixes/patches that haven't made it to the repositories yet and it goes through substantial testing before release.  You may have found the switches to build something that says it's EE, but it's not really an EE release.

Since it could confuse people, would you consider removing that one

Cool stuff!

Matt
(ingenthr from IRC)
  
-- 
Matt Ingenthron
Couchbase, Inc.

--
Couchbase 2.0 is Here!: http://www.couchbase.com/download
Couchbase 2.0 Learn: http://www.couchbase.com/learn
Couchbase Forums: http://www.couchbase.com/forums
---
You received this message because you are subscribed to the Google Groups "Couchbase Team 8091" group.
To unsubscribe from this group and stop receiving emails from it, send an email to couchbase-809...@googlegroups.com.
To post to this group, send email to couchba...@googlegroups.com.
Visit this group at http://groups.google.com/group/couchbase-8091.
To view this discussion on the web visit https://groups.google.com/d/msgid/couchbase-8091/c56f2690-c6c2-4310-8bff-c1b93e5f3b8f%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Alexander Kureniov

unread,
Aug 21, 2013, 1:31:37 AM8/21/13
to couchba...@googlegroups.com
I have not compiled EE. All "binary" ebuilds couchbase-server-bin and couchbase-server-enterprise-bin are just deb packages from official site (i.e. http://packages.couchbase.com/releases/2.1.1/couchbase-server-enterprise_x86_64_2.1.1.deb). Ebuild just provides some needed dependencies with correct version (like openssl) and unpacks deb package, no compilation. Only couchbase community edition can be built from source. So I think it's real EE.

среда, 21 августа 2013 г., 1:12:51 UTC+3 пользователь ingenthr написал:
Hi Alexander,

We love seeing ports to new platforms.  I did ebuild stuff back 6-7 years ago.  It was interesting work.  For me it was quite a challenge since I was building gcc.  More specifically, I was building the 64-bit gcc on a 32-bit OS install.  That was hairy!

I just want to mention briefly mention one thing.  What you'd built isn't really EE and I'd probably stop providing that one.

The reason it's not EE is that to be EE, it may have some additional hotfixes/patches that haven't made it to the repositories yet and it goes through substantial testing before release.  You may have found the switches to build something that says it's EE, but it's not really an EE release.

Since it could confuse people, would you consider removing that one

Cool stuff!

Matt
(ingenthr from IRC)
  
-- 
Matt Ingenthron
Couchbase, Inc.

From: Alexander Kureniov <akur...@blacklizardsoft.com>
Reply-To: "couchba...@googlegroups.com" <couchba...@googlegroups.com>
Date: Tuesday, August 20, 2013 5:05 AM
To: "couchba...@googlegroups.com" <couchba...@googlegroups.com>
Subject: [Team 8091] Couchbase on gentoo

Hello. I like to use couchbase with my apps, explore it's features... But also I like gentoo/funtoo and other source-based linux distributions for theirs flexibility. And I was upset by that fact that couchbase doesn't provide ebuilds for that distributions :(. I asked people on couchbase forums and found some ebuilds, but they needed some hacks to get them work and they were based on debian binary package. But it's not gentoo-way.

So I've finally got some spare time to fix this... in gentoo-way of course. I've compiled couchbase several times before it finally start working. The main problem was that in some places couchbase uses outdated libraries and source-based distributions usally use bleeding-edge soft. 

I've created some proper ebuilds and published them here https://bitbucket.org/SkeLLLa/m03geek-overlay as and portage overlay. It has 3 types of couchbase server installations: source-based couchbase CE, binary couchbase CE and binary couchbase EE. Source-based couchbase ebuild isn't ideal, but at least it compiles :). 

If someone is interested in developing and making those ebuilds better I'll be glad to "work" together. Later I plan to add cocuhbase client libraries to that overlay and maybe some untested binary builds from couchbase buildbot (this can be useful even couchbase developers, if some of them like gentoo too :)). So contributors and testers are welcomed. 

To add that overlay to your portage and try it out:
hg clone ssh://...@bitbucket.org/SkeLLLa/m03geek-overlay /path/to/overlay/dir


add
/path/to/overlay/dir to PORTDIR_OVERLAY variable in your make.conf

Matt Ingenthron

unread,
Aug 21, 2013, 8:52:48 PM8/21/13
to couchba...@googlegroups.com
Ah, I see.  I've never worked with binary ebuilds.  I only ever did source.

So, it's the same compiled bits as EE, but hasn't gotten the same testing.  In that way, I still think it wouldn't be EE, but rather EE derived.  I know we're getting into the weeds here now though.  

Alexander Kureniov

unread,
Aug 22, 2013, 5:25:46 PM8/22/13
to couchba...@googlegroups.com
Oh, I agree with you that this package is just only a port of deb to gentoo-like systems and it's not tested by your QA department. And those tests are important for enterprise product. So I've added some cautions into ebuild which tell users during install that this ebuild is only a port from EE binary package built for another distro and it wasn't tested on gentoo-like distributions. 

But on the other side binary distribution provides almost all needed components and have very few external dependencies (as I know there is only one very important external lib that is required by couchbase - it's openssl), so should run without any distro-specific bugs. Also  some source-based distros (like Funtoo - getoo-based distro) can even use kernels from other distros like Ubuntu or debian, so the environment in such distros can be almost identical to environments of distros officially supported by couchbase team.

Also I can grant you acces to my bitbucket repository if you want to check something or correct that text which will appear during couchbase installation.

четверг, 22 августа 2013 г., 3:52:48 UTC+3 пользователь ingenthr написал:

Matt Ingenthron

unread,
Aug 23, 2013, 12:58:55 AM8/23/13
to couchba...@googlegroups.com
No worries at the moment, but thanks for the offer.

Matt
-- 
Matt Ingenthron - Director, Developer Solutions
Couchbase, Inc.

Reply all
Reply to author
Forward
0 new messages