Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 399831

Summary: net-misc/rabbitmq-server installation directory creates potential conflicts
Product: Gentoo Linux Reporter: Holger Hoffstätte <holger>
Component: [OLD] ServerAssignee: Benedikt Böhm (RETIRED) <hollow>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.mail-archive.com/riak-users@lists.basho.com/msg04075.html
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Patch to fix installation directory

Description Holger Hoffstätte 2012-01-23 13:43:26 UTC
RabbitMQ installs into $ERL_LIBS aka /usr/lib/erlang/lib; apparently this can create build errors with other Erlang applications. I found this while trying to build Riak (from http://basho.com/) and it failed with the same error message about a duplicate module definition.
We should probably try to change the RabbitMQ ebuild to install elsewhere, i.e. not into the system lib directory. I'll also consult with the RabbitMQ folks about alternatives and/or better fixes.


Reproducible: Always

Steps to Reproduce:
1. install RabbitMQ
2. try to build Riak (needs R14B)
3. fail

Actual Results:  
See $URL for problem & discussion
Comment 1 Sebastián Magrí 2012-03-12 01:37:49 UTC

Hi,

Did you actually talked with the RabbitMQ upstream about this issue?

I would like to get 2.7 in my system and it would be nice to fix this.
Comment 2 Holger Hoffstätte 2012-03-12 14:18:19 UTC
(In reply to comment #1)
> Did you actually talked with the RabbitMQ upstream about this issue?

Not yet, sorry - I'll try to get to it. I sort of lost interest in Riak for the time being and so this fell off the table.

> I would like to get 2.7 in my system and it would be nice to fix this.

As long as whatever else you are trying to use does not need a gen_server2 module (or whatever it was named) it should work just fine; the RabbitMQ ebuild by itself certainly works.
Comment 3 Benedikt Böhm (RETIRED) gentoo-dev 2012-03-19 09:17:36 UTC
fixed in cvs, thanks
Comment 4 Benedikt Böhm (RETIRED) gentoo-dev 2012-03-19 09:18:12 UTC
oops, wrong bug, sorry
Comment 5 Holger Hoffstätte 2012-03-22 14:18:09 UTC
Feedback from upstream at:
http://thread.gmane.org/gmane.comp.networking.rabbitmq.general/15025
Comment 6 Holger Hoffstätte 2012-04-04 14:42:46 UTC
So this turned out to be easier than expected: simply change the targetdir definition in src_install to not pollute the Erlang lib dir and bingo! Everything still works (for me).
Comment 7 Holger Hoffstätte 2012-04-04 14:46:05 UTC
Created attachment 307783 [details, diff]
Patch to fix installation directory

This patch changes the RabbitMQ target directory to point outside the Erlang lib dir to avoid potential module conflicts. I used /usr/lib/rabbitmq-server-<version>/ but that is of course just a suggestion.
Comment 8 Benedikt Böhm (RETIRED) gentoo-dev 2012-05-12 19:47:00 UTC
fixed in 2.8.1, thanks!