GNU bug report logs - #39881
Add couchdb

Previous Next

Package: guix-patches;

Reported by: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>

Date: Tue, 3 Mar 2020 09:51:02 UTC

Severity: normal

Done: Leo Famulari <leo <at> famulari.name>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 39881 in the body.
You can then email your comments to 39881 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#39881; Package guix-patches. (Tue, 03 Mar 2020 09:51:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Lars-Dominik Braun <ldb <at> leibniz-psychology.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 03 Mar 2020 09:51:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
To: guix-patches <at> gnu.org
Subject: Add couchdb
Date: Tue, 3 Mar 2020 10:50:49 +0100
[Message part 1 (text/plain, inline)]
Hi,

these two patches add couchdb. First, an upgrade to erlang is essential, since
our version is quite outdated and has known issues with couchdb. I’m only
bumping to a newer maintenance release of 21.x for now. `guix refresh
--list-dependent` lists only elixir, which builds fine with the new version and
emacs-erlang, build from the same sources, seems to work too.

The second patch adds couchdb. I’ve got almost the entire test suite up and
running. It is very extensive and takes a lot of time (compared to
compilation). Some patching is required to unbundle Erlangs ERTS, so an update
to Erlang in the future might break 'install due to the hard-coded version. Any
thoughts?

Future work: Shepherd service.

Cheers,
Lars

[0001-gnu-erlang-Update-to-21.3.8.13.patch (text/x-diff, attachment)]
[0002-gnu-Add-couchdb.patch (text/x-diff, attachment)]

Information forwarded to guix-patches <at> gnu.org:
bug#39881; Package guix-patches. (Tue, 03 Mar 2020 12:10:02 GMT) Full text and rfc822 format available.

Message #8 received at 39881 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Cc: 39881 <at> debbugs.gnu.org
Subject: Re: [bug#39881] Add couchdb
Date: Tue, 3 Mar 2020 14:09:13 +0200
[Message part 1 (text/plain, inline)]
I've pushed the erlang update for now. I haven't taken a look at the
couchdb package at all as of yet.


-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#39881; Package guix-patches. (Tue, 10 Mar 2020 11:10:02 GMT) Full text and rfc822 format available.

Message #11 received at 39881 <at> debbugs.gnu.org (full text, mbox):

From: Efraim Flashner <efraim <at> flashner.co.il>
To: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Cc: 39881 <at> debbugs.gnu.org
Subject: Re: [bug#39881] Add couchdb
Date: Tue, 10 Mar 2020 13:08:22 +0200
[Message part 1 (text/plain, inline)]
I touched up the couchdb patch a bit and there were a couple of things
that stood out to me. The test suite passed for me without any problems.

There are a couple of bundled fonts as well as bundled javascript inside
the share directory, which also makes it to the output.

Looking at %out/lib/ it looks like there are a bunch of other libraries
bundled with couchdb. I don't know much about erlang but I assume all
these libraries should be unbundled. Looking inside erlang I see there
are also a lot of what looks like bundled libraries so I'm not really
sure how that goes.

On the other hand, after talking to you on IRC and looking at how Debian
takes erlang¹ and seems to split it into dozens of package outputs I'm
far more uncertain of how it works.

Anyway, take a look at the changes I made and see if anything/everything
works :)

¹ https://sources.debian.org/src/erlang/1:23.0%7Erc1+dfsg-1/debian/patterns/


-- 
Efraim Flashner   <efraim <at> flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[0001-gnu-Add-couchdb.patch (text/plain, attachment)]
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#39881; Package guix-patches. (Thu, 12 Mar 2020 09:08:01 GMT) Full text and rfc822 format available.

Message #14 received at 39881 <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
To: Efraim Flashner <efraim <at> flashner.co.il>
Cc: 39881 <at> debbugs.gnu.org
Subject: Re: [bug#39881] Add couchdb
Date: Thu, 12 Mar 2020 10:07:26 +0100
[Message part 1 (text/plain, inline)]
Hi Efraim,

> There are a couple of bundled fonts as well as bundled javascript inside
> the share directory, which also makes it to the output.
we can probably unbundle fontawesome, but not their own font. The web frontend
(fauxton) depends on NPM and a bunch of JavaScript packages – nothing we can do
about that.

> Looking at %out/lib/ it looks like there are a bunch of other libraries
> bundled with couchdb. I don't know much about erlang but I assume all
> these libraries should be unbundled. Looking inside erlang I see there
> are also a lot of what looks like bundled libraries so I'm not really
> sure how that goes.
As far as I see there is a mix between bundled external libraries and those
internal to couchdb. External libraries in src/ are:

- bear (https://github.com/boundary/bear)
- dreyfus (https://github.com/cloudant-labs/dreyfus)
- folsom (https://github.com/boundary/folsom)
- hyper (https://github.com/GameAnalytics/hyper)
- jiffy (https://github.com/davisp/jiffy)
- meck (https://github.com/eproxus/meck)
- mochiweb (https://github.com/mochi/mochiweb/)
- proper (https://github.com/proper-testing/proper)
- rebar (https://github.com/rebar/rebar)
- recon (https://github.com/ferd/recon)
- snappy (https://github.com/skunkwerks/snappy-erlang-nif)

All modules are also mirrored by the Apache project here
https://github.com/apache?q=couchdb&type=&language=
so it might be possible to build most of them “out of tree”, i.e. create
separate packages and somehow “link” to them. I’ll look into that when I have
some time, but I’m not an Erlang guru. In the meantime I’ll be maintaining the
package over here[1], since the current state is not good enough for inclusion
into guix.

> Anyway, take a look at the changes I made and see if anything/everything
> works :)
Yep, I can confirm the server and web interface are working.

Thanks for the review,
Lars

[1] https://github.com/leibniz-psychology/guix-zpid/blob/master/zpid/packages/couchdb.scm
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#39881; Package guix-patches. (Fri, 29 May 2020 00:39:02 GMT) Full text and rfc822 format available.

Message #17 received at 39881 <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Cc: Efraim Flashner <efraim <at> flashner.co.il>, 39881 <at> debbugs.gnu.org
Subject: Re: [bug#39881] Add couchdb
Date: Thu, 28 May 2020 20:38:03 -0400
[Message part 1 (text/plain, inline)]
On Thu, Mar 12, 2020 at 10:07:26AM +0100, Lars-Dominik Braun wrote:
> Yep, I can confirm the server and web interface are working.

Alright, what is the status of this patch? Does it need more work? Or is
it ready?
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#39881; Package guix-patches. (Fri, 29 May 2020 06:29:02 GMT) Full text and rfc822 format available.

Message #20 received at 39881 <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
To: Leo Famulari <leo <at> famulari.name>
Cc: Efraim Flashner <efraim <at> flashner.co.il>, 39881 <at> debbugs.gnu.org
Subject: Re: [bug#39881] Add couchdb
Date: Fri, 29 May 2020 08:28:51 +0200
[Message part 1 (text/plain, inline)]
Hi,

> Alright, what is the status of this patch? Does it need more work? Or is
> it ready?
I don’t have time to work on this any more. The package works fine, but
probably does not satisfy guix’ requirements regarding bundled and precompiled
(JavaScript) sources.

Lars

[signature.asc (application/pgp-signature, inline)]

Reply sent to Leo Famulari <leo <at> famulari.name>:
You have taken responsibility. (Fri, 29 May 2020 17:11:02 GMT) Full text and rfc822 format available.

Notification sent to Lars-Dominik Braun <ldb <at> leibniz-psychology.org>:
bug acknowledged by developer. (Fri, 29 May 2020 17:11:02 GMT) Full text and rfc822 format available.

Message #25 received at 39881-done <at> debbugs.gnu.org (full text, mbox):

From: Leo Famulari <leo <at> famulari.name>
To: Lars-Dominik Braun <ldb <at> leibniz-psychology.org>
Cc: Efraim Flashner <efraim <at> flashner.co.il>, 39881-done <at> debbugs.gnu.org
Subject: Re: [bug#39881] Add couchdb
Date: Fri, 29 May 2020 13:10:37 -0400
[Message part 1 (text/plain, inline)]
On Fri, May 29, 2020 at 08:28:51AM +0200, Lars-Dominik Braun wrote:
> Hi,
> 
> > Alright, what is the status of this patch? Does it need more work? Or is
> > it ready?
> I don’t have time to work on this any more. The package works fine, but
> probably does not satisfy guix’ requirements regarding bundled and precompiled
> (JavaScript) sources.

Oh well, that's too bad. I'll close this ticket and anyone should feel
free to reopen it if they'd like to continue the work.
[signature.asc (application/pgp-signature, inline)]

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 27 Jun 2020 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 362 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.